Pyrogenesis
13997
|
Public Member Functions | |
Decompressor_ZLib () | |
virtual | ~Decompressor_ZLib () |
virtual size_t | MaxOutputSize (size_t inSize) const |
virtual Status | Reset () |
clear all previous state and prepare for reuse. More... | |
virtual Status | Process (const u8 *in, size_t inSize, u8 *out, size_t outSize, size_t &inConsumed, size_t &outProduced) |
process (i.e. More... | |
virtual Status | Finish (u32 &checksum, size_t &outProduced) |
Flush buffers and make sure all output has been produced. More... | |
![]() | |
u32 | UpdateChecksum (u32 checksum, const u8 *in, size_t inSize) const |
update a checksum to reflect the contents of a buffer. More... | |
![]() | |
virtual | ~ICodec () |
note: the implementation should not check whether any data remains - codecs are sometimes destroyed without completing a transfer. More... | |
Additional Inherited Members | |
![]() | |
typedef int ZEXPORT(* | ZLibFunc )(z_streamp strm, int flush) |
![]() | |
CodecZLibStream () | |
Status | CallStreamFunc (ZLibFunc func, int flush, const u8 *in, const size_t inSize, u8 *out, const size_t outSize, size_t &inConsumed, size_t &outProduced) |
![]() | |
u32 | InitializeChecksum () |
![]() | |
static Status | LibError_from_zlib (int zlib_ret) |
static void | WarnIfZLibError (int zlib_ret) |
![]() | |
z_stream | m_zs |
u32 | m_checksum |
Definition at line 240 of file codec_zlib.cpp.
|
inline |
Definition at line 243 of file codec_zlib.cpp.
|
inlinevirtual |
Definition at line 250 of file codec_zlib.cpp.
Flush buffers and make sure all output has been produced.
checksum | Checksum over all input data. |
outProduced |
Implements ICodec.
Definition at line 280 of file codec_zlib.cpp.
|
inlinevirtual |
Implements ICodec.
Definition at line 256 of file codec_zlib.cpp.
|
inlinevirtual |
process (i.e.
compress or decompress) data.
in | |
inSize | |
out | |
outSize | Bytes remaining in the output buffer; shall not be zero. |
inConsumed,outProduced | How many bytes in the input and output buffers were used. either or both of these can be zero if the input size is small or there's not enough output space. |
Implements ICodec.
Definition at line 273 of file codec_zlib.cpp.
|
inlinevirtual |
clear all previous state and prepare for reuse.
this is as if the object were destroyed and re-created, but more efficient since it avoids reallocating a considerable amount of memory (about 200KB for LZ).
Implements ICodec.
Definition at line 266 of file codec_zlib.cpp.