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