FUniqueBuffer::TakeOwnership

Make an owned buffer by taking ownership of the input.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Memory/SharedBuffer.h

Include

#include "Memory/SharedBuffer.h"

Syntax

template<typename DeleteFunctionType, decltype(Invoke, std::declval< void * >(), std::declval< uint64 >()))*>
static FUniqueBuffer TakeOwnership
(
    void * Data,
    uint64 Size,
    DeleteFunctionType && DeleteFunction
)

Remarks

Make an owned buffer by taking ownership of the input.

Parameters

Parameter

Description

DeleteFunction

Called with (Data, Size) to free memory when the last shared reference is released.