![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SharedBuffer.h>
Public Member Functions | |
| FSharedBuffer ()=default | |
| CORE_API | FSharedBuffer (FBufferOwner *Owner) |
| CORE_API void | Reset () |
| const void * | GetData () const |
| uint64 | GetSize () const |
| FMemoryView | GetView () const |
| operator FMemoryView () const | |
| operator bool () const | |
| bool | IsNull () const |
| bool | IsOwned () const |
| CORE_API FSharedBuffer | MakeOwned () const & |
| CORE_API FSharedBuffer | MakeOwned () && |
| bool | IsMaterialized () const |
| CORE_API void | Materialize () const |
| CORE_API FUniqueBuffer | MoveToUnique () |
| bool | operator== (const FSharedBuffer &BufferB) const |
| bool | operator!= (const FSharedBuffer &BufferB) const |
Friends | |
| class | FUniqueBuffer |
| class | FWeakSharedBuffer |
| const FOwnerPtrType & | ToPrivateOwnerPtr (const FSharedBuffer &Buffer) |
| FOwnerPtrType | ToPrivateOwnerPtr (FSharedBuffer &&Buffer) |
| uint32 | GetTypeHash (const FSharedBuffer &Buffer) |
| bool | operator== (const FSharedBuffer &BufferA, const FUniqueBuffer &BufferB) |
| bool | operator!= (const FSharedBuffer &BufferA, const FUniqueBuffer &BufferB) |
| bool | operator== (const FUniqueBuffer &BufferA, const FSharedBuffer &BufferB) |
| bool | operator!= (const FUniqueBuffer &BufferA, const FSharedBuffer &BufferB) |
A reference to a shared-ownership immutable buffer.
|
default |
Construct a null shared buffer.
|
explicit |
Construct a shared buffer from a new unreferenced buffer owner.
|
static |
|
static |
Make an owned clone of the input.
|
inline |
Returns a pointer to the start of the buffer.
|
inline |
Returns the size of the buffer in bytes.
|
inline |
Returns a view of the buffer.
|
inline |
Returns true if the referenced buffer has been materialized.
|
inline |
Returns true if this does not point to a buffer owner.
A null buffer is always owned, materialized, and empty.
|
inline |
Returns true if this keeps the referenced buffer alive.
| FSharedBuffer FSharedBuffer::MakeOwned | ( | ) | && |
| FSharedBuffer FSharedBuffer::MakeOwned | ( | ) | const & |
Returns a buffer that is owned, by cloning if not owned.
|
static |
|
static |
|
static |
|
static |
Make a non-owned view of the input.
|
static |
|
static |
Make a view of the input within its outer buffer. Ownership matches OuterBuffer.
| void FSharedBuffer::Materialize | ( | ) | const |
Materialize the buffer by making its data and size available.
The buffer is automatically materialized by GetData, GetSize, GetView.
| FUniqueBuffer FSharedBuffer::MoveToUnique | ( | ) |
Convert this to a unique buffer, leaving this null.
Steals the buffer owner from the shared buffer if this is the last reference to it, otherwise clones the shared buffer to guarantee unique ownership. A non-owned buffer is always cloned.
|
inlineexplicit |
Returns true if this points to a buffer owner.
|
inline |
|
inline |
|
inline |
| void FSharedBuffer::Reset | ( | ) |
Reset this to null.
|
inlinestatic |
Make an owned buffer by taking ownership of the input.
| DeleteFunction | Called with Data to free memory when the last shared reference is released. |
|
inlinestatic |
Make an owned buffer by taking ownership of the input.
| DeleteFunction | Called with (Data, Size) to free memory when the last shared reference is released. |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |