Navigation
API > API/Runtime > API/Runtime/Core
A weak reference to a shared-ownership immutable buffer.
| Name | FWeakSharedBuffer |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Memory/SharedBuffer.h |
| Include Path | #include "Memory/SharedBuffer.h" |
Syntax
class FWeakSharedBuffer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Construct a null weak shared buffer. | Memory/SharedBuffer.h | ||
FWeakSharedBuffer
(
const FSharedBuffer& Buffer |
Construct a weak shared buffer from a shared buffer. | Memory/SharedBuffer.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FWeakOwnerPtrType | UE::SharedBuffer::Private::TBufferOwnerPtr< UE::SharedBuffer::Private::FWeakOps > | Memory/SharedBuffer.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Owner | FWeakOwnerPtrType | Memory/SharedBuffer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSharedBuffer Pin() |
Convert this to a shared buffer if it has any remaining shared references. | Memory/SharedBuffer.h | |
void Reset() |
Reset this to null. | Memory/SharedBuffer.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FWeakSharedBuffer& BufferB |
Memory/SharedBuffer.h | ||
FWeakSharedBuffer & operator=
(
const FSharedBuffer& Buffer |
Assign a weak shared buffer from a shared buffer. | Memory/SharedBuffer.h | |
bool operator==
(
const FWeakSharedBuffer& BufferB |
Memory/SharedBuffer.h |