Choose your operating system:
Windows
macOS
Linux
| FCbFieldView
|
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Serialization/CompactBinary.h |
Include |
#include "Serialization/CompactBinary.h" |
class FCbObjectView : protected FCbFieldView
Array of FCbField[View] that have unique names.
Accessing the fields of an object is always a safe operation, even if the requested field does not exist. Fields may be accessed by name or through iteration. When a field is requested that is not found in the object, the field that it returns has no value (evaluates to false) though attempting to access the empty field is also safe, as described by FCbFieldView.
This type only provides a view into memory and does not perform any memory management itself. Use FCbObject to hold a reference to the underlying memory when necessary.
Name | Description | |
---|---|---|
|
FCbObjectView() |
Construct an object with no fields. |
Name | Description | ||
---|---|---|---|
|
AppendHash ( |
Append the hash of the object if serialized by itself with no name. |
|
|
AsFieldView() |
Access the object as an object field. |
|
|
CopyTo ( |
Copy the object into a buffer of exactly GetSize() bytes, with no name. |
|
|
CopyTo ( |
Copy the object into an archive. |
|
|
Equals ( |
Whether this object is identical to the other object. |
|
|
FindView ( |
Find a field by case-sensitive name comparison. |
|
|
FindViewIgnoreCase ( |
Find a field by case-insensitive name comparison. |
|
|
FCbObjectVie... |
FromFieldNoCheck ( |
Construct an object from an object field. No type check is performed! |
|
GetHash() |
Calculate the hash of the object if serialized by itself with no name. |
|
|
GetSize() |
Returns the size of the object in bytes if serialized by itself with no name. |
|
|
IterateAttachments ( |
Invoke the visitor for every attachment in the object. |
|
|
TryGetView ( |
Try to get a view of the object as it would be serialized, such as by CopyTo. |
Name | Description | ||
---|---|---|---|
|
operator bool() |
Whether the object has any fields. |
|
|
operator[] ( |
Find a field by case-sensitive name comparison. |