Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Serialization
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Serialization/CompactBinarySerialization.h |
| Include | #include "Serialization/CompactBinarySerialization.h" |
| Source | /Engine/Source/Runtime/Core/Private/Serialization/CompactBinarySerialization.cpp |
bool TryMeasureCompactBinary
(
FMemoryView InView,
ECbFieldType & OutType,
uint64 & OutSize,
ECbFieldType InType
)
Remarks
Try to determine the type and size of the compact binary field at the start of the view.
This may be called on an incomplete or invalid field, in which case it will return false, with OutSize being 0 for invalid fields, otherwise the minimum view size necessary to make progress in measuring the field on the next call to this function.
A return of true from this function does not indicate that the entire field is valid. true if the size of the field was determined, otherwise false.
Parameters
| Name | Description |
|---|---|
| InView | A memory view that may contain the start of a field. |
| OutType | The type (with flags) of the field. None is written until a value is available. |
| OutSize | The total field size for a return of true, 0 for invalid fields, or the size to make progress in measuring the field on the next call to this function. |
| InType | HasFieldType means that InView contains the type. Otherwise, use the given type. |