Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Serialization > API/Runtime/Core/Serialization/FCbAttachment > API/Runtime/Core/Serialization/FCbAttachment/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
&40;
FArchive & Ar,
FCbBufferAllocator Allocator
&41;
Remarks
Load the attachment from compact binary as written by Save.
The attachments value will be loaded into an owned buffer.
Allocated buffers will be cloned if they are not owned.
Parameters
| Name | Description |
|---|---|
| Ar | Archive to read the attachment from. An error state is set on failure. |
| Allocator | Allocator for the attachment value buffer. |