Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Memory/SharedBuffer.h |
Include |
#include "Memory/SharedBuffer.h" |
class FUniqueBuffer
A reference to a single-ownership mutable buffer.
Ownership can be transferred by moving to FUniqueBuffer or it can be converted to an immutable shared buffer with MoveToShared().
Name | Description | |
---|---|---|
|
FUniqueBuffer() |
Construct a null unique buffer. |
|
FUniqueBuffer ( |
Construct a unique buffer from a new unreferenced buffer owner. |
|
FUniqueBuffer ( |
|
|
FUniqueBuffer ( |
Name | Description | ||
---|---|---|---|
|
FUniqueBuffe... |
Alloc ( |
Make an uninitialized owned buffer of the specified size. |
|
FUniqueBuffe... |
Clone ( |
Make an owned clone of the input. |
|
FUniqueBuffe... |
Clone |
Make an owned clone of the input. |
|
const void &... |
GetData() |
|
|
void * |
GetData() |
Returns a pointer to the start of the buffer. |
|
GetSize() |
Returns the size of the buffer in bytes. |
|
|
GetView() |
||
|
FMutableMemo... |
GetView() |
Returns a view of the buffer. |
|
IsMaterialized() |
Returns true if the referenced buffer has been materialized. |
|
|
IsNull() |
Returns true if this does not point to a buffer owner. |
|
|
IsOwned() |
Returns true if this keeps the referenced buffer alive. |
|
|
FUniqueBuffe... |
MakeOwned() |
Returns a buffer that is owned, by cloning if not owned. |
|
FUniqueBuffe... |
MakeView ( |
Make a non-owned view of the input. |
|
FUniqueBuffe... |
MakeView |
Make a non-owned view of the input. |
|
Materialize() |
Materialize the buffer by making its data and size available. |
|
|
FSharedBuffe... |
MoveToShared() |
Convert this to an immutable shared buffer, leaving this null. |
|
Reset() |
Reset this to null. |
|
|
FUniqueBuffe... |
TakeOwnership |
Make an owned buffer by taking ownership of the input. |
|
FUniqueBuffe... |
TakeOwnership |
Make an owned buffer by taking ownership of the input. |
Name | Description | ||
---|---|---|---|
|
operator bool() |
Returns true if this points to a buffer owner. |
|
|
operator FMemoryView() |
||
|
operator FMutableMemoryView() |
||
|
FUniqueBuffe... |
operator= ( |
|
|
FUniqueBuffe... |
operator= ( |
Name |
Description |
---|---|
FOwnerPtrType |