Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Contains routines for data compression. More...
#include <StringCompression.h>
Public Member Functions | |
template<auto Algorithm> | |
Compression::Result | Compress (const void *const Input, const size_t Size) |
Result | CompressGZip (ContiguousByteBufferView Input) |
Compressor (int CompressionFactor=6) | |
Creates a new compressor instance with a compression factor [0-12]. More... | |
Result | CompressZLib (const void *Input, size_t Size) |
Result | CompressZLib (ContiguousByteBufferView Input) |
~Compressor () | |
Private Member Functions | |
template<auto Algorithm> | |
Result | Compress (const void *Input, size_t Size) |
Private Attributes | |
libdeflate_compressor * | m_Handle |
Contains routines for data compression.
Definition at line 43 of file StringCompression.h.
Compression::Compressor::Compressor | ( | int | CompressionFactor = 6 | ) |
Creates a new compressor instance with a compression factor [0-12].
Definition at line 51 of file StringCompression.cpp.
Compression::Compressor::~Compressor | ( | ) |
Definition at line 65 of file StringCompression.cpp.
Compression::Result Compression::Compressor::Compress | ( | const void *const | Input, |
const size_t | Size | ||
) |
Definition at line 75 of file StringCompression.cpp.
|
private |
Compression::Result Compression::Compressor::CompressGZip | ( | ContiguousByteBufferView | Input | ) |
Definition at line 110 of file StringCompression.cpp.
Compression::Result Compression::Compressor::CompressZLib | ( | const void * | Input, |
size_t | Size | ||
) |
Definition at line 128 of file StringCompression.cpp.
Compression::Result Compression::Compressor::CompressZLib | ( | ContiguousByteBufferView | Input | ) |
Definition at line 119 of file StringCompression.cpp.
|
private |
Definition at line 60 of file StringCompression.h.