![]() |
galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
|
Compressor and Decompressor. More...
#include <ZLib.hpp>
Public Types | |
enum class | Mode : int { COMPRESS = 0 , DECOMPRESS = 1 } |
ZLib mode to start in. More... | |
Public Member Functions | |
ZLib (const Mode mode) | |
Constructor. | |
~ZLib () | |
Destructor. | |
std::string | compressor (const std::string &input) |
Compresses string. | |
std::string | finish () |
Completes the compression. | |
std::string | decompressor (const std::string &input) |
Decompresses a zlib string. | |
Private Attributes | |
Mode | m_mode |
ZLib mode. | |
z_stream | m_stream |
Stream object. | |
bool | m_finished |
Has the compression finished. | |
char | m_in [GALAXY_ZLIB_COMPLETE_CHUNK] |
Input buffer. | |
char | m_out [GALAXY_ZLIB_COMPLETE_CHUNK] |
Output buffer. | |
Compressor and Decompressor.
Do not create on stack due to class size.
|
strong |
galaxy::math::ZLib::ZLib | ( | const Mode | mode | ) |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
private |
|
private |
|
private |
|
private |