Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Serialization/CompactBinaryPackage.h |
Include |
#include "Serialization/CompactBinaryPackage.h" |
class FCbAttachment
An attachment is either null, raw binary, compressed binary, or an object.
Attachments are always identified by their raw hash, even when stored compressed.
An attachment is serialized as a sequence of compact binary fields with no name. It is invalid to serialize a null attachment. A raw binary attachment is serialized as an empty Binary field when empty, and otherwise as a BinaryAttachment field containing the raw hash, followed by the raw binary data in a Binary field. A compressed binary attachment is serialized as Binary with a compressed buffer as the value. An object is serialized as an empty Object field when empty, and otherwise as an ObjectAttachment field containing the hash, followed by the object data in an Object field.
Name | Description | |
---|---|---|
|
FCbAttachment() |
Construct a null attachment. |
|
FCbAttachment ( |
An attachment is either null, raw binary, compressed binary, or an object. |
|
FCbAttachment ( |
Construct an object attachment. Value is cloned if not owned. |
|
FCbAttachment ( |
An attachment is either null, raw binary, compressed binary, or an object. |
|
FCbAttachment ( |
Construct a raw binary attachment from a shared/composite buffer. Value is cloned if not owned. |
|
FCbAttachment ( |
Construct a compressed binary attachment. Value is cloned if not owned. |
|
FCbAttachment ( |
Construct a compressed binary attachment. Value is cloned if not owned. |
|
FCbAttachment |
An attachment is either null, raw binary, compressed binary, or an object. |
|
FCbAttachment |
An attachment is either null, raw binary, compressed binary, or an object. |
Name | Description | ||
---|---|---|---|
|
FSharedBuffe... |
AsBinary() |
Access the attachment as raw binary in a single contiguous buffer. |
|
const FCompo... |
AsCompositeBinary() |
Access the attachment as raw binary. Defaults to a null buffer on error. |
|
const FCompr... |
AsCompressedBinary() |
Access the attachment as compressed binary. Defaults to a null buffer on error. |
|
AsObject() |
Access the attachment as an object. Defaults to an empty object on error. |
|
|
GetHash() |
Returns the hash of the attachment value. |
|
|
IsBinary() |
Returns whether the attachment is raw binary. |
|
|
IsCompressedBinary() |
Returns whether the attachment is compressed binary. |
|
|
IsNull() |
Whether the attachment has a null value. |
|
|
IsObject() |
Returns whether the attachment is an object. |
|
|
Reset() |
Reset this to a null attachment. |
|
|
Save ( |
Save the attachment into the writer as a stream of compact binary fields. |
|
|
Save ( |
Save the attachment into the archive as a stream of compact binary fields. |
|
|
TryLoad ( |
Load the attachment from compact binary as written by Save. |
|
|
TryLoad ( |
Load the attachment from compact binary as written by Save. |
Name | Description | ||
---|---|---|---|
|
operator bool() |
Whether the attachment has a non-null value. |
|
|
operator!= ( |
||
|
operator< ( |
||
|
operator== ( |
Compares attachments by their hash. Any discrepancy in type must be handled externally. |