Inherited by CompressionLZ4::CompressorLZ4.
◆ CompressBlock()
virtual CompressionResultData Compression::ICompressionInterface::CompressBlock |
( |
AZStd::span< AZStd::byte > |
compressionBuffer, |
|
|
const AZStd::span< const AZStd::byte > & |
uncompressedData, |
|
|
const CompressionOptions & |
compressionOptions = {} |
|
) |
| const |
|
pure virtual |
Compresses the uncompressed data into the compressed buffer
- Parameters
-
compressedBuffer | destination buffer where compressed output will be stored to |
uncompressedData | source buffer containing uncompressed content |
compressOptions | that can be provided to the Compressor |
- Returns
- a CompressionResultData instance to indicate if compression operation has succeeded
Implemented in CompressionLZ4::CompressorLZ4.
◆ CompressBound()
virtual size_t Compression::ICompressionInterface::CompressBound |
( |
size_t |
uncompressedBufferSize | ) |
const |
|
pure virtual |
Returns the upper bound on compressed size given the uncompressed buffer size Can be used to allocate a destination buffer that can fit the compressed content
- Parameters
-
uncompressedBufferSize | size of uncompressed data |
- Returns
- worst case(upper bound) size that is needed to store compressed data for a given uncompressed size
Implemented in CompressionLZ4::CompressorLZ4.
◆ GetCompressionAlgorithmId()
virtual CompressionAlgorithmId Compression::ICompressionInterface::GetCompressionAlgorithmId |
( |
| ) |
const |
|
pure virtual |
◆ GetCompressionAlgorithmName()
virtual AZStd::string_view Compression::ICompressionInterface::GetCompressionAlgorithmName |
( |
| ) |
const |
|
pure virtual |
The documentation for this struct was generated from the following file:
- Gems/Compression/Code/Include/Compression/CompressionInterfaceAPI.h