CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
Raii.h
Go to the documentation of this file.
1
10
11#pragma once
12
13#include "cdc_core/Raii.h"
14
15namespace cdc::plugin_manager {
16
17using ::cdc::core::CapsFreeDeleter;
18using ::cdc::core::CStdFreeDeleter;
19
20template <typename T>
22
23template <typename T>
25
26template <typename T>
27inline PsramUniquePtr<T> psramAlloc(std::size_t count) noexcept
28{
29 return ::cdc::core::psramAlloc<T>(count);
30}
31
32} // namespace cdc::plugin_manager
Shared RAII wrappers for firmware resources.
std::unique_ptr< T, CStdFreeDeleter > CStdUniquePtr
unique_ptr for buffers allocated via realloc/malloc (e.g. esp_http_client body chunks).
Definition Raii.h:68
std::unique_ptr< T[], CapsFreeDeleter > PsramUniquePtr
Definition Raii.h:44
PsramUniquePtr< T > psramAlloc(std::size_t count) noexcept
Definition Raii.h:27
::cdc::core::PsramUniquePtr< T > PsramUniquePtr
Definition Raii.h:21
::cdc::core::CStdUniquePtr< T > CStdUniquePtr
Definition Raii.h:24