Navigation
API > API/Runtime > API/Runtime/Core
A wrapper that holds a reference to the buffer that contains its compact binary value.
| Name | TCbBuffer |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Serialization/CompactBinary.h |
| Include Path | #include "Serialization/CompactBinary.h" |
Syntax
template<typename ViewType>
class TCbBuffer : public ViewType
Inheritance Hierarchy
- ViewType → TCbBuffer
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TCbBuffer () |
Construct a default value. | Serialization/CompactBinary.h | |
TCbBuffer
(
FSharedBuffer ValueBuffer, |
Construct a value from a pointer to its data and an optional externally-provided type. | Serialization/CompactBinary.h | |
TCbBuffer
(
const ViewType& Value, |
Construct a value that holds a reference to the buffer that contains it. | Serialization/CompactBinary.h | |
| Construct a value that holds a reference to the buffer of the outer that contains it. | Serialization/CompactBinary.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Buffer | FSharedBuffer | Serialization/CompactBinary.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const ViewType & AsView() |
Returns the value as a view. | Serialization/CompactBinary.h | |
FCbFieldIterator begin() |
DO NOT USE DIRECTLY. These functions enable range-based for loop support. | Serialization/CompactBinary.h | |
FCbFieldIterator CreateIterator() |
Create an iterator for the fields of an array or object, otherwise an empty iterator. | Serialization/CompactBinary.h | |
FCbIteratorSentinel end() |
Serialization/CompactBinary.h | ||
const FSharedBuffer & GetOuterBuffer () |
Returns the outer buffer (if any) that contains this value. | Serialization/CompactBinary.h | |
| Serialization/CompactBinary.h | |||
bool IsOwned() |
Whether this reference has ownership of the memory in its buffer. | Serialization/CompactBinary.h | |
void MakeOwned() |
Clone the value, if necessary, to a buffer that this reference has ownership of. | Serialization/CompactBinary.h | |
void Reset() |
Reset this to a default value and null buffer. | Serialization/CompactBinary.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FCbField operator[]
(
FUtf8StringView Name |
Find a field of an object by case-sensitive name comparison, otherwise a field with no value. | Serialization/CompactBinary.h |