R-Type
R-Type project
KapMirror::Compression Class Referenceabstract
Inheritance diagram for KapMirror::Compression:
KapMirror::Experimental::GZipCompression

Public Member Functions

virtual std::shared_ptr< ArraySegment< byte > > compress (const std::shared_ptr< ArraySegment< byte >> &data)=0
 Compress data with the compression algorithm. More...
 
virtual std::shared_ptr< ArraySegment< byte > > decompress (const std::shared_ptr< ArraySegment< byte >> &data)=0
 Decompress data with the compression algorithm. More...
 

Static Public Attributes

static std::shared_ptr< CompressionactiveCompression = nullptr
 

Member Function Documentation

◆ compress()

virtual std::shared_ptr<ArraySegment<byte> > KapMirror::Compression::compress ( const std::shared_ptr< ArraySegment< byte >> &  data)
pure virtual

Compress data with the compression algorithm.

Returns
Compressed data as ArraySegment<byte>

Implemented in KapMirror::Experimental::GZipCompression.

◆ decompress()

virtual std::shared_ptr<ArraySegment<byte> > KapMirror::Compression::decompress ( const std::shared_ptr< ArraySegment< byte >> &  data)
pure virtual

Decompress data with the compression algorithm.

Returns
Decompressed data as ArraySegment<byte>

Implemented in KapMirror::Experimental::GZipCompression.


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