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

Protected Types

typedef int ZEXPORT(* ZLibFunc) (z_streamp strm, int flush)
 

Protected Member Functions

 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)
 
- Protected Member Functions inherited from Codec_ZLib
u32 InitializeChecksum ()
 

Static Protected Member Functions

static Status LibError_from_zlib (int zlib_ret)
 
static void WarnIfZLibError (int zlib_ret)
 

Protected Attributes

z_stream m_zs
 
u32 m_checksum
 

Additional Inherited Members

- Public Member Functions inherited from Codec_ZLib
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...
 

Member Typedef Documentation

◆ ZLibFunc

typedef int ZEXPORT(* CodecZLibStream::ZLibFunc) (z_streamp strm, int flush)
protected

Constructor & Destructor Documentation

◆ CodecZLibStream()

CodecZLibStream::CodecZLibStream ( )
inlineprotected

Member Function Documentation

◆ CallStreamFunc()

Status CodecZLibStream::CallStreamFunc ( ZLibFunc  func,
int  flush,
const u8 in,
const size_t  inSize,
u8 out,
const size_t  outSize,
size_t &  inConsumed,
size_t &  outProduced 
)
inlineprotected

◆ LibError_from_zlib()

static Status CodecZLibStream::LibError_from_zlib ( int  zlib_ret)
inlinestaticprotected

◆ WarnIfZLibError()

static void CodecZLibStream::WarnIfZLibError ( int  zlib_ret)
inlinestaticprotected

Member Data Documentation

◆ m_checksum

u32 CodecZLibStream::m_checksum
mutableprotected

◆ m_zs

z_stream CodecZLibStream::m_zs
mutableprotected

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