Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
Codec_ZLib Class Reference
Inheritance diagram for Codec_ZLib:
Collaboration diagram for Codec_ZLib:

Public Member Functions

u32 UpdateChecksum (u32 checksum, const u8 *in, size_t inSize) const
 update a checksum to reflect the contents of a buffer. More...
 
- Public Member Functions inherited from ICodec
virtual ~ICodec ()
 note: the implementation should not check whether any data remains - codecs are sometimes destroyed without completing a transfer. More...
 
virtual size_t MaxOutputSize (size_t inSize) const =0
 
virtual Status Reset ()=0
 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)=0
 process (i.e. More...
 
virtual Status Finish (u32 &checksum, size_t &outProduced)=0
 Flush buffers and make sure all output has been produced. More...
 
virtual u32 UpdateChecksum (u32 checksum, const u8 *in, size_t inSize) const =0
 update a checksum to reflect the contents of a buffer. More...
 

Protected Member Functions

u32 InitializeChecksum ()
 

Member Function Documentation

◆ InitializeChecksum()

u32 Codec_ZLib::InitializeChecksum ( )
inlineprotected

◆ UpdateChecksum()

u32 Codec_ZLib::UpdateChecksum ( u32  checksum,
const u8 in,
size_t  inSize 
) const
inlinevirtual

update a checksum to reflect the contents of a buffer.

Parameters
checksumthe initial value (must be 0 on first call)
in
inSize
Returns
the new checksum. note: after all data has been seen, this is identical to the what Finish would return.

Implements ICodec.


The documentation for this class was generated from the following file: