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 |
FCbField LoadCompactBinary
(
FArchive & Ar,
FCbBufferAllocator Allocator
)
Remarks
Load a compact binary field from an archive.
The field may be an array or an object, which the caller can convert to by using AsArray or AsObject as appropriate. The buffer allocator is called to provide the buffer for the field to load into once its size has been determined. A field with a reference to the allocated buffer, or a default field on failure.
Parameters
| Name | Description |
|---|---|
| Ar | Archive to read the field from. An error state is set on failure. |
| Allocator | Allocator for the buffer that the field is loaded into. |