Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Serialization
Inheritance Hierarchy
- FCbFieldView
- FCbArrayView
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Serialization/CompactBinary.h |
| Include | #include "Serialization/CompactBinary.h" |
Syntax
class FCbArrayView : protected FCbFieldView
Remarks
Array of FCbField[View] that have no names.
Accessing a field of the array requires iteration. Access by index is not provided because the cost of accessing an item by index scales linearly with the index.
This type only provides a view into memory and does not perform any memory management itself. Use FCbArray to hold a reference to the underlying memory when necessary.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FCbArrayView () |
Construct an array with no fields. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AppendHash
(
FIoHashBuilder& Builder |
Append the hash of the array if serialized by itself with no name. | |
| FCbFieldView | AsFieldView () |
Access the array as an array field. | |
| FCbFieldViewIterator | begin () |
DO NOT USE DIRECTLY. These functions enable range-based for loop support. | |
| void | Copy the array into an archive. | ||
| void | CopyTo
(
FMutableMemoryView Buffer |
Copy the array into a buffer of exactly GetSize() bytes, with no name. | |
| FCbFieldViewIterator | |||
| FCbIteratorSentinel | end () |
||
| bool | Equals
(
const FCbArrayView& Other |
Whether this array is identical to the other array. | |
| constexpr | FCbFieldView () |
||
FCbFieldView
(
const void* Data, |
|||
FCbFieldView
(
const FCbValue& Value |
|||
| FCbArrayView | FromFieldNoCheck
(
const FCbFieldView& Field |
Construct an array from an array field. No type check is performed! | |
| FIoHash | GetHash () |
Calculate the hash of the array if serialized by itself with no name. | |
| uint64 | GetSize () |
Returns the size of the array in bytes if serialized by itself with no name. | |
| void | IterateAttachments
(
FCbFieldVisitor Visitor |
Invoke the visitor for every attachment in the array. | |
| uint64 | Num () |
Returns the number of items in the array. | |
| bool | TryGetView
(
FMemoryView& OutView |
Try to get a view of the array as it would be serialized, such as by CopyTo. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| Whether the array has any fields. |