Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Memory/SharedBuffer.h |
Include |
#include "Memory/SharedBuffer.h" |
class FSharedBuffer
A reference to a shared-ownership immutable buffer.
Name | Description | |
---|---|---|
|
FSharedBuffer() |
Construct a null shared buffer. |
|
FSharedBuffer ( |
Construct a shared buffer from a new unreferenced buffer owner. |
Name | Description | ||
---|---|---|---|
|
FSharedBuffe... |
Clone |
Make an owned clone of the input. |
|
FSharedBuffe... |
Clone ( |
Make an owned clone of the input. |
|
const void &... |
GetData() |
Returns a pointer to the start of the buffer. |
|
GetSize() |
Returns the size of the buffer in bytes. |
|
|
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. |
|
|
FSharedBuffe... |
MakeOwned() |
Returns a buffer that is owned, by cloning if not owned. |
|
FSharedBuffe... |
MakeOwned() |
|
|
FSharedBuffe... |
MakeView ( |
Make a non-owned view of the input. |
|
FSharedBuffe... |
MakeView |
Make a non-owned view of the input. |
|
FSharedBuffe... |
MakeView ( |
Make a view of the input within its outer buffer. Ownership matches OuterBuffer. |
|
FSharedBuffe... |
MakeView ( |
Make a non-owned view of the input. |
|
FSharedBuffe... |
MakeView ( |
Make a non-owned view of the input. |
|
FSharedBuffe... |
MakeView ( |
Make a non-owned view of the input. |
|
Materialize() |
Materialize the buffer by making its data and size available. |
|
|
FUniqueBuffe... |
MoveToUnique() |
Convert this to a unique buffer, leaving this null. |
|
Reset() |
Reset this to null. |
|
|
FSharedBuffe... |
TakeOwnership |
Make an owned buffer by taking ownership of the input. |
|
FSharedBuffe... |
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() |
Name |
Description |
---|---|
FOwnerPtrType |
|
FWeakOwnerPtrType |