Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Compression::Extractor Class Reference

Contains routines for data extraction. More...

#include <StringCompression.h>

Public Member Functions

template<auto Algorithm>
Compression::Result Extract (const ContiguousByteBufferView Input)
 
template<auto Algorithm>
Compression::Result Extract (const ContiguousByteBufferView Input, size_t UncompressedSize)
 
Result ExtractGZip (ContiguousByteBufferView Input)
 
 Extractor ()
 Creates a new extractor instance. More...
 
Result ExtractZLib (ContiguousByteBufferView Input)
 
Result ExtractZLib (ContiguousByteBufferView Input, size_t UncompressedSize)
 
 ~Extractor ()
 

Private Member Functions

template<auto Algorithm>
Result Extract (ContiguousByteBufferView Input)
 
template<auto Algorithm>
Result Extract (ContiguousByteBufferView Input, size_t UncompressedSize)
 

Private Attributes

libdeflate_decompressor * m_Handle
 

Detailed Description

Contains routines for data extraction.

Definition at line 64 of file StringCompression.h.

Constructor & Destructor Documentation

◆ Extractor()

Compression::Extractor::Extractor ( )

Creates a new extractor instance.

Definition at line 137 of file StringCompression.cpp.

◆ ~Extractor()

Compression::Extractor::~Extractor ( )

Definition at line 151 of file StringCompression.cpp.

Member Function Documentation

◆ Extract() [1/4]

template<auto Algorithm>
Compression::Result Compression::Extractor::Extract ( const ContiguousByteBufferView  Input)

Definition at line 188 of file StringCompression.cpp.

◆ Extract() [2/4]

template<auto Algorithm>
Compression::Result Compression::Extractor::Extract ( const ContiguousByteBufferView  Input,
size_t  UncompressedSize 
)

Definition at line 229 of file StringCompression.cpp.

◆ Extract() [3/4]

template<auto Algorithm>
Result Compression::Extractor::Extract ( ContiguousByteBufferView  Input)
private

◆ Extract() [4/4]

template<auto Algorithm>
Result Compression::Extractor::Extract ( ContiguousByteBufferView  Input,
size_t  UncompressedSize 
)
private

◆ ExtractGZip()

Compression::Result Compression::Extractor::ExtractGZip ( ContiguousByteBufferView  Input)

Definition at line 160 of file StringCompression.cpp.

◆ ExtractZLib() [1/2]

Compression::Result Compression::Extractor::ExtractZLib ( ContiguousByteBufferView  Input)

Definition at line 169 of file StringCompression.cpp.

◆ ExtractZLib() [2/2]

Compression::Result Compression::Extractor::ExtractZLib ( ContiguousByteBufferView  Input,
size_t  UncompressedSize 
)

Definition at line 178 of file StringCompression.cpp.

Member Data Documentation

◆ m_Handle

libdeflate_decompressor* Compression::Extractor::m_Handle
private

Definition at line 81 of file StringCompression.h.


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