59 namespace Compressor {
74 Zlib(
unsigned short level = 5);
113 return MakePointer<Zlib>(*
this);
121 return MakePointer<Zlib>(std::move(*
this));
131 bool DoCompress(std::span<const std::byte> input,
Buffer::WriteOnly& output)
const noexcept override;
147 bool DoDecompress(std::span<const std::byte> input,
Buffer::WriteOnly& output)
const noexcept override;
Abstract compressor.
Definition generic.hxx:79
zlib compressor.
Definition zlib.hxx:64
~Zlib() noexcept
Destructor.
Zlib(Zlib &&other) noexcept=default
Move constructor.
Zlib(unsigned short level=5)
Construct with a compression level.
PointerType Move() noexcept override
Move this compressor into a new instance.
Definition zlib.hxx:120
Zlib(const Zlib &other)=default
Copy constructor.
ReadMode
How a source buffer is consumed.
Definition typedefs.hxx:57
Root namespace of the StormByte suite.
#define STORMBYTE_CRYPTO_PUBLIC
Definition visibility.h:53