Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Serialization > API/Runtime/Core/Serialization/FCbPackage > API/Runtime/Core/Serialization/FCbPackage/TryLoad
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Serialization/CompactBinaryPackage.h |
| Include | #include "Serialization/CompactBinaryPackage.h" |
| Source | /Engine/Source/Runtime/Core/Private/Serialization/CompactBinaryPackage.cpp |
bool TryLoad
(
FArchive & Ar,
FCbBufferAllocator Allocator
)
Remarks
Load the object and attachments from compact binary as written by Save.
The object and attachments will be individually loaded into owned buffers.
Allocated buffers will be cloned if they are not owned.
Parameters
| Name | Description |
|---|---|
| Ar | Archive to read the package from. An error state is set on failure. |
| Allocator | Allocator for object and attachment buffers. |