![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <CompactBinary.h>
Inheritance diagram for FCbArrayView:Public Member Functions | |
| CORE_API | FCbArrayView () |
| CORE_API uint64 | Num () const |
| FCbFieldView | AsFieldView () const |
| operator bool () const | |
| CORE_API uint64 | GetSize () const |
| CORE_API FIoHash | GetHash () const |
| CORE_API void | AppendHash (FIoHashBuilder &Builder) const |
| CORE_API bool | Equals (const FCbArrayView &Other) const |
| CORE_API void | CopyTo (FMutableMemoryView Buffer) const |
| CORE_API void | CopyTo (FArchive &Ar) const |
| void | IterateAttachments (FCbFieldVisitor Visitor) const |
| bool | TryGetView (FMemoryView &OutView) const |
| constexpr | FCbFieldView ()=default |
| CORE_API | FCbFieldView (const void *Data, ECbFieldType Type=ECbFieldType::HasFieldType) |
| FCbFieldView (const FCbValue &Value) | |
| CORE_API FCbFieldViewIterator | CreateViewIterator () const |
| FCbFieldViewIterator | begin () const |
| constexpr FCbIteratorSentinel | end () const |
Static Public Member Functions | |
| static FCbArrayView | FromFieldNoCheck (const FCbFieldView &Field) |
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.
| FCbArrayView::FCbArrayView | ( | ) |
Construct an array with no fields.
| void FCbArrayView::AppendHash | ( | FIoHashBuilder & | Builder | ) | const |
Append the hash of the array if serialized by itself with no name.
|
inline |
Access the array as an array field.
|
inline |
DO NOT USE DIRECTLY. These functions enable range-based for loop support.
Copy the array into an archive. This will write GetSize() bytes, with no name.
| void FCbArrayView::CopyTo | ( | FMutableMemoryView | Buffer | ) | const |
Copy the array into a buffer of exactly GetSize() bytes, with no name.
| FCbFieldViewIterator FCbFieldView::CreateViewIterator | ( | ) | const |
|
inlineconstexpr |
| bool FCbArrayView::Equals | ( | const FCbArrayView & | Other | ) | const |
Whether this array is identical to the other array.
Performs a deep comparison of any contained arrays or objects and their fields. Comparison assumes that both fields are valid and are written in the canonical format. Fields must be written in the same order in arrays and objects, and name comparison is case sensitive. If these assumptions do not hold, this may return false for equivalent inputs. Validation can be done with the All mode to check these assumptions about the format of the inputs.
|
constexprdefault |
|
inlineexplicit |
|
explicit |
|
inlinestatic |
Construct an array from an array field. No type check is performed!
| FIoHash FCbArrayView::GetHash | ( | ) | const |
Calculate the hash of the array if serialized by itself with no name.
| uint64 FCbArrayView::GetSize | ( | ) | const |
Returns the size of the array in bytes if serialized by itself with no name.
|
inline |
Invoke the visitor for every attachment in the array.
| uint64 FCbArrayView::Num | ( | ) | const |
Returns the number of items in the array.
|
inlineexplicit |
Whether the array has any fields.
|
inline |
Try to get a view of the array as it would be serialized, such as by CopyTo.
A view is available if the array contains its type and has no name. Access the equivalent for other arrays through FCbArray::GetBuffer, FCbArray::Clone, or CopyTo.