Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FUniqueBuffer
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FUniqueBuffer TakeOwnership
(
void* Data, |
Make an owned buffer by taking ownership of the input. | Memory/SharedBuffer.h | |
static FUniqueBuffer TakeOwnership
(
void* Data, |
Make an owned buffer by taking ownership of the input. | Memory/SharedBuffer.h |
TakeOwnership(void *, uint64, DeleteFunctionType &&)
Description
Make an owned buffer by taking ownership of the input.
| Name | TakeOwnership |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Memory/SharedBuffer.h |
| Include Path | #include "Memory/SharedBuffer.h" |
template<typename DeleteFunctionType, decltype(Invoke(std::declval< DeleteFunctionType >(), std::declval< void * >())) *>
static FUniqueBuffer TakeOwnership
(
void * Data,
uint64 Size,
DeleteFunctionType && DeleteFunction
)
Parameters
| Name | Remarks |
|---|---|
| DeleteFunction | Called with Data to free memory when the last shared reference is released. |
TakeOwnership(void *, uint64, DeleteFunctionType &&)
Description
Make an owned buffer by taking ownership of the input.
| Name | TakeOwnership |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Memory/SharedBuffer.h |
| Include Path | #include "Memory/SharedBuffer.h" |
template<typename DeleteFunctionType, decltype(Invoke(std::declval< DeleteFunctionType >(), std::declval< void * >(), std::declval< uint64 >())) *>
static FUniqueBuffer TakeOwnership
(
void * Data,
uint64 Size,
DeleteFunctionType && DeleteFunction
)
Parameters
| Name | Remarks |
|---|---|
| DeleteFunction | Called with (Data, Size) to free memory when the last shared reference is released. |