Navigation
Unreal Engine C++ API Reference > Runtime > Core > Serialization
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Serialization/CompactBinaryValue.h |
Include | #include "Serialization/CompactBinaryValue.h" |
Syntax
class FCbValue
Remarks
A type that provides unchecked access to compact binary values.
The main purpose of the type is to efficiently switch on field type. For every other use case, prefer to use the field, array, and object types directly. The accessors here do not check the type before reading the value, which means they can read out of bounds even on a valid compact binary value if the wrong accessor is used.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FCbValue
(
ECbFieldType Type, |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FCbArrayView | AsArrayView () |
|
![]() ![]() |
FIoHash | AsAttachment () |
|
![]() ![]() |
FMemoryView | AsBinary () |
|
![]() ![]() |
FIoHash | ||
![]() ![]() |
bool | AsBool () |
|
![]() ![]() |
FCbCustomById | AsCustomById () |
|
![]() ![]() |
FCbCustomByName | ||
![]() ![]() |
int64 | ||
![]() ![]() |
float | AsFloat32 () |
|
![]() ![]() |
double | AsFloat64 () |
|
![]() ![]() |
FIoHash | AsHash () |
|
![]() ![]() |
uint64 | AsInteger
(
UE::CompactBinary::Private::FIntegerParams Params, |
Access as an integer, with both positive and negative values returned as unsigned. |
![]() ![]() |
int64 | ||
![]() ![]() |
uint64 | ||
![]() ![]() |
FIoHash | ||
![]() ![]() |
FCbObjectId | AsObjectId () |
|
![]() ![]() |
FCbObjectView | AsObjectView () |
|
![]() ![]() |
FUtf8StringView | AsString
(
ECbFieldError* OutError, |
Access as a string. Checks for range errors and uses the default if OutError is not null. |
![]() ![]() |
int64 | ||
![]() ![]() |
FGuid | AsUuid () |
|
![]() ![]() |
const void * | GetData () |
|
![]() ![]() |
ECbFieldType | GetType () |