Open 3D Engine Compression Gem API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
CompressionLZ4::CompressorLZ4 Class Reference

Inherits Compression::ICompressionInterface.

Public Member Functions

Compression::CompressionAlgorithmId GetCompressionAlgorithmId () const override
 Retrieves the 32-bit compression algorithm ID associated with this interface.
 
AZStd::string_view GetCompressionAlgorithmName () const override
 Retrieves the human readable associated with the LZ4 compressor.
 
Compression::CompressionResultData CompressBlock (AZStd::span< AZStd::byte > compressionBuffer, const AZStd::span< const AZStd::byte > &uncompressedData, const Compression::CompressionOptions &compressionOptions={}) const override
 
size_t CompressBound ([[maybe_unused]] size_t uncompressedBufferSize) const override
 
- Public Member Functions inherited from Compression::ICompressionInterface
virtual size_t CompressBound (size_t uncompressedBufferSize) const =0
 

Member Function Documentation

◆ CompressBlock()

Compression::CompressionResultData CompressionLZ4::CompressorLZ4::CompressBlock ( AZStd::span< AZStd::byte >  compressionBuffer,
const AZStd::span< const AZStd::byte > &  uncompressedData,
const Compression::CompressionOptions compressionOptions = {} 
) const
overridevirtual

Compresses the uncompressed data into the compressed buffer

Returns
a CompressionResultData instance to indicate if compression operation has succeeded

Implements Compression::ICompressionInterface.


The documentation for this class was generated from the following file: