Pyrogenesis
13997
|
Public Member Functions | |
Codec_ZLibNone () | |
virtual | ~Codec_ZLibNone () |
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... | |
Private Attributes | |
u32 | m_checksum |
Additional Inherited Members | |
![]() | |
u32 | InitializeChecksum () |
Definition at line 62 of file codec_zlib.cpp.
|
inline |
Definition at line 65 of file codec_zlib.cpp.
|
inlinevirtual |
Definition at line 70 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 94 of file codec_zlib.cpp.
|
inlinevirtual |
Implements ICodec.
Definition at line 74 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 85 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 79 of file codec_zlib.cpp.
|
private |
Definition at line 102 of file codec_zlib.cpp.