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

#include <LZ4Compressor.h>

Inherits AzNetworking::ICompressor.

Public Member Functions

 AZ_CLASS_ALLOCATOR (LZ4Compressor, AZ::SystemAllocator)
 
const char * GetName () const
 
AzNetworking::CompressorType GetType () const override
 
bool Init () override
 
size_t GetMaxChunkSize (size_t maxCompSize) const override
 
size_t GetMaxCompressedBufferSize (size_t uncompSize) const override
 
AzNetworking::CompressorError Compress (const void *uncompData, size_t uncompSize, void *compData, size_t compDataSize, size_t &compSize) override
 
AzNetworking::CompressorError Decompress (const void *compData, size_t compDataSize, void *uncompData, size_t uncompDataSize, size_t &consumedSize, size_t &uncompSize) override
 

Detailed Description

Implements an LZ4 Compressor against Multiplayer's Compressor interface for use with AzNetworking. Handles edge and error cases specific to LZ4 that are otherwise not covered in AzNetworking (where a Compressor is applied).


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