6#include "Containers/Array.h"
53 inline explicit FBinaryValue(BufferType&&
InBuffer)
68 struct FCompressedBinaryValue
74 inline explicit FCompressedBinaryValue(BufferType&&
InBuffer)
92 if (Value.
Get<FBinaryValue>().Buffer.IsNull())
124 if (Value.
Get<FCompressedBinaryValue>().Buffer.IsNull())
133 if (Value.
Get<FCompressedBinaryValue>().Buffer.IsNull())
142 if (Value.
Get<FCompressedBinaryValue>().Buffer.IsNull())
151 if (Value.
Get<FCompressedBinaryValue>().Buffer.IsNull())
456 if (
const FObjectValue* ObjectValue = Value.
TryGet<FObjectValue>())
458 return ObjectValue->Object;
483 if (
const FCompressedBinaryValue* CompressedBuffer = Value.
TryGet<FCompressedBinaryValue>())
485 return CompressedBuffer->Buffer;
#define checkSlow(expr)
Definition AssertionMacros.h:332
uint32 GetTypeHash(const FCbAttachment &Attachment)
Definition CompactBinaryPackage.h:226
#define UE_INTERNAL
Definition CoreMiscDefines.h:345
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
const bool
Definition NetworkReplayStreaming.h:178
UE_INTRINSIC_CAST UE_REWRITE constexpr std::remove_reference_t< T > && MoveTemp(T &&Obj) noexcept
Definition UnrealTemplate.h:520
Definition Archive.h:1208
Definition CompactBinaryPackage.h:38
UE_INTERNAL FCbAttachment(FCompressedBuffer &&InValue, const FIoHash &Hash)
Definition CompactBinaryPackage.h:148
FCbAttachment(FCompressedBuffer &&InValue)
Definition CompactBinaryPackage.h:139
FCbAttachment(const FCbObject &InValue, const FIoHash &Hash)
Definition CompactBinaryPackage.h:107
const FCompositeBuffer & AsCompositeBinary() const
Definition CompactBinaryPackage.h:472
void Reset()
Definition CompactBinaryPackage.h:158
bool operator==(const FCbAttachment &Attachment) const
Definition CompactBinaryPackage.h:191
bool IsNull() const
Definition CompactBinaryPackage.h:176
const FCompressedBuffer & AsCompressedBinary() const
Definition CompactBinaryPackage.h:481
bool IsBinary() const
Definition CompactBinaryPackage.h:182
FCbAttachment(FCbObject &&InValue)
Definition CompactBinaryPackage.h:105
FCbObject AsObject() const
Definition CompactBinaryPackage.h:454
bool operator<(const FCbAttachment &Attachment) const
Definition CompactBinaryPackage.h:193
CORE_API FIoHash GetHash() const
Definition CompactBinaryPackage.cpp:89
FSharedBuffer AsBinary() const
Definition CompactBinaryPackage.h:463
UE_INTERNAL FCbAttachment(const FCompressedBuffer &InValue, const FIoHash &Hash)
Definition CompactBinaryPackage.h:130
CORE_API bool TryLoad(FCbFieldIterator &Fields)
Definition CompactBinaryPackage.cpp:109
bool operator!=(const FCbAttachment &Attachment) const
Definition CompactBinaryPackage.h:192
FCbAttachment(const FCompressedBuffer &InValue)
Definition CompactBinaryPackage.h:121
FCbAttachment(BufferType &&InValue, const FIoHash &InHash)
Definition CompactBinaryPackage.h:117
FCbAttachment(const FCbObject &InValue)
Definition CompactBinaryPackage.h:103
FCbAttachment(BufferType &&InValue)
Definition CompactBinaryPackage.h:114
bool IsCompressedBinary() const
Definition CompactBinaryPackage.h:185
bool IsObject() const
Definition CompactBinaryPackage.h:179
FCbAttachment(FCbObject &&InValue, const FIoHash &Hash)
Definition CompactBinaryPackage.h:109
Definition CompactBinary.h:1288
Definition CompactBinary.h:1392
Definition CompactBinaryPackage.h:256
FCbPackage(FCbObject InObject, FAttachmentResolver InResolver)
Definition CompactBinaryPackage.h:284
CORE_API bool TryLoad(FCbFieldIterator &Fields)
Definition CompactBinaryPackage.cpp:295
bool operator==(const FCbPackage &Package) const
Definition CompactBinaryPackage.h:410
int32 RemoveAttachment(const FCbAttachment &Attachment)
Definition CompactBinaryPackage.h:406
const FCbAttachment * FindAttachment(const FCbAttachment &Attachment) const
Definition CompactBinaryPackage.h:383
void SetObject(FCbObject InObject, const FIoHash &InObjectHash)
Definition CompactBinaryPackage.h:354
const FCbObject & GetObject() const
Definition CompactBinaryPackage.h:322
FCbPackage(FCbObject InObject)
Definition CompactBinaryPackage.h:273
FCbPackage(FCbObject InObject, const FIoHash &InObjectHash)
Definition CompactBinaryPackage.h:295
TFunctionRef< FSharedBuffer(const FIoHash &Hash)> FAttachmentResolver
Definition CompactBinaryPackage.h:263
void Reset()
Definition CompactBinaryPackage.h:313
bool IsNull() const
Definition CompactBinaryPackage.h:319
void SetObject(FCbObject InObject)
Definition CompactBinaryPackage.h:332
TConstArrayView< FCbAttachment > GetAttachments() const
Definition CompactBinaryPackage.h:372
void SetObject(FCbObject InObject, const FIoHash &InObjectHash, FAttachmentResolver InResolver)
Definition CompactBinaryPackage.h:366
const FIoHash & GetObjectHash() const
Definition CompactBinaryPackage.h:325
CORE_API int32 RemoveAttachment(const FIoHash &Hash)
Definition CompactBinaryPackage.cpp:254
CORE_API const FCbAttachment * FindAttachment(const FIoHash &Hash) const
Definition CompactBinaryPackage.cpp:270
FCbPackage(FCbObject InObject, const FIoHash &InObjectHash, FAttachmentResolver InResolver)
Definition CompactBinaryPackage.h:307
bool operator!=(const FCbPackage &Package) const
Definition CompactBinaryPackage.h:411
void AddAttachment(const FCbAttachment &Attachment)
Definition CompactBinaryPackage.h:389
void SetObject(FCbObject InObject, FAttachmentResolver InResolver)
Definition CompactBinaryPackage.h:343
void AddAttachment(const FCbAttachment &Attachment, FAttachmentResolver Resolver)
Definition CompactBinaryPackage.h:395
Definition CompactBinaryWriter.h:68
Definition CompositeBuffer.h:27
static CORE_API const FCompositeBuffer Null
Definition CompositeBuffer.h:128
Definition CompressedBuffer.h:50
static CORE_API const FCompressedBuffer Null
Definition CompressedBuffer.h:168
Definition SharedBuffer.h:341
static CORE_API FUniqueBuffer Alloc(uint64 Size)
Definition SharedBuffer.cpp:103
UE_REWRITE bool IsEmpty() const
Definition Array.h:1133
Definition AssetRegistryState.h:50
void Emplace(ArgTypes &&... Args)
Definition TVariant.h:211
U & Get() UE_LIFETIMEBOUND
Definition TVariant.h:146
U * TryGet() UE_LIFETIMEBOUND
Definition TVariant.h:174
bool IsType() const
Definition TVariant.h:138
static FIoHash HashBuffer(FMemoryView View)
Definition IoHash.h:156