Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Compression/CompressedBuffer.h |
Include |
#include "Compression/CompressedBuffer.h" |
class FCompressedBuffer
A compressed buffer stores compressed data in a self-contained format.
A buffer is self-contained in the sense that it can be decompressed without external knowledge of the compression format or the size of the raw data.
The buffer may be partially decompressed using FCompressedBufferReader.
Name | Description | ||
---|---|---|---|
|
FCompressedB... |
Compress ( |
Compress the buffer using the specified compressor and compression level. |
|
FCompressedB... |
Compress ( |
Compress the buffer using a balanced level of compression. |
|
FCompressedB... |
Compress ( |
Compress the buffer using a balanced level of compression. |
|
FCompressedB... |
Compress ( |
|
|
FSharedBuffe... |
Decompress() |
Decompress into an owned buffer. |
|
FCompositeBu... |
DecompressToComposite() |
Decompress into an owned buffer. |
|
FCompressedB... |
FromCompressed ( |
Construct from a compressed buffer previously created by Compress(). |
|
FCompressedB... |
FromCompressed ( |
Construct from a compressed buffer previously created by Compress(). |
|
FCompressedB... |
FromCompressed ( |
Construct from a compressed buffer previously created by Compress(). |
|
FCompressedB... |
FromCompressed ( |
Construct from a compressed buffer previously created by Compress(). |
|
const FCompo... |
GetCompressed() |
Returns a composite buffer containing the compressed data. May be null. May not be owned. |
|
FCompositeBu... |
GetCompressed() |
|
|
GetCompressedSize() |
Returns the size of the compressed data. Zero on error or if this is null. |
|
|
GetRawHash() |
Returns the hash of the raw data. Zero on error or if this is null. |
|
|
GetRawSize() |
Returns the size of the raw data. Zero on error or if this is empty or null. |
|
|
IsNull() |
Returns true if the compressed buffer is null. |
|
|
IsOwned() |
Returns true if the composite buffer is owned. |
|
|
FCompressedB... |
Load ( |
Load a compressed buffer from an archive, as saved by Save(). |
|
FCompressedB... |
MakeOwned() |
|
|
FCompressedB... |
MakeOwned() |
Returns a copy of the compressed buffer that owns its underlying memory. |
|
Reset() |
Reset this to null. |
|
|
Save ( |
Save the compressed buffer to an archive. |
|
|
TryDecompressTo ( |
Decompress into a memory view that is exactly equal to the raw size. |
|
|
TryGetCompressParameters ( |
Returns the compressor and compression level used by this buffer. |
Name | Description | ||
---|---|---|---|
|
operator bool() |
Returns true if the compressed buffer is not null. |
Name |
Description |
---|---|
Null |
A null compressed buffer. |