Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
Stream Class Reference

#include <stream.h>

Collaboration diagram for Stream:

Public Member Functions

 Stream (const PICodec &codec)
 
void SetOutputBuffer (u8 *out, size_t outSize)
 
void AllocateOutputBuffer (size_t outSizeMax)
 
Status Feed (const u8 *in, size_t inSize)
 'feed' the codec with a data block. More...
 
Status Finish ()
 
size_t OutSize () const
 
u32 Checksum () const
 

Private Attributes

PICodec m_codec
 
OutputBufferManager m_outputBufferManager
 
size_t m_inConsumed
 
size_t m_outProduced
 
u32 m_checksum
 

Constructor & Destructor Documentation

◆ Stream()

Stream::Stream ( const PICodec codec)

Member Function Documentation

◆ AllocateOutputBuffer()

void Stream::AllocateOutputBuffer ( size_t  outSizeMax)

◆ Checksum()

u32 Stream::Checksum ( ) const
inline

◆ Feed()

Status Stream::Feed ( const u8 in,
size_t  inSize 
)

'feed' the codec with a data block.

◆ Finish()

Status Stream::Finish ( )

◆ OutSize()

size_t Stream::OutSize ( ) const
inline

◆ SetOutputBuffer()

void Stream::SetOutputBuffer ( u8 out,
size_t  outSize 
)

Member Data Documentation

◆ m_checksum

u32 Stream::m_checksum
private

◆ m_codec

PICodec Stream::m_codec
private

◆ m_inConsumed

size_t Stream::m_inConsumed
private

◆ m_outProduced

size_t Stream::m_outProduced
private

◆ m_outputBufferManager

OutputBufferManager Stream::m_outputBufferManager
private

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