8#ifndef GALAXY_MATH_ZLIB_HPP_
9#define GALAXY_MATH_ZLIB_HPP_
11#define MINIZ_HEADER_FILE_ONLY
64 std::string
compressor(
const std::string& input);
#define GALAXY_ZLIB_COMPLETE_CHUNK
ZLib inflate/deflate chunk size.
Compressor and Decompressor.
z_stream m_stream
Stream object.
ZLib(const Mode mode)
Constructor.
std::string decompressor(const std::string &input)
Decompresses a zlib string.
std::string compressor(const std::string &input)
Compresses string.
std::string finish()
Completes the compression.
char m_out[GALAXY_ZLIB_COMPLETE_CHUNK]
Output buffer.
bool m_finished
Has the compression finished.
Mode
ZLib mode to start in.
@ COMPRESS
ZLib deflation.
@ DECOMPRESS
ZLib inflation.
char m_in[GALAXY_ZLIB_COMPLETE_CHUNK]
Input buffer.
std::string encode_zlib(const std::string &input)
Compresses string into ZLib.
std::string decode_zlib(const std::string &input)
Decompresses string into ZLib.