8#ifndef GALAXY_MATH_ZLIB_HPP_
9#define GALAXY_MATH_ZLIB_HPP_
11#define MINIZ_HEADER_FILE_ONLY
56 static std::string
encode(
const std::string& input);
66 static std::string
decode(
const std::string& input);
84 std::string
compressor(
const std::string& input);
char m_out[ZLib::ChunkSize]
Output buffer.
static std::string decode(const std::string &input)
Decompresses string into ZLib.
std::string finish()
Completes the compression.
std::string compressor(const std::string &input)
Compresses string.
char m_in[ZLib::ChunkSize]
Input buffer.
std::string decompressor(const std::string &input)
Decompresses a zlib string.
Mode
ZLib mode to start in.
@ COMPRESS
ZLib deflation.
@ DECOMPRESS
ZLib inflation.
z_stream m_stream
Stream object.
bool m_finished
Has the compression finished.
ZLib(const Mode mode)
Constructor.
static std::string encode(const std::string &input)
Compresses string into ZLib.
static constexpr const auto ChunkSize
ZLib parsing chunk size.