DDraceNetwork Docs
CPacker Class Reference

#include <packer.h>

Inheritance diagram for CPacker:
[legend]

Public Types

enum  { PACKER_BUFFER_SIZE = 1024 * 64 }
 

Public Member Functions

void Reset ()
 
void AddInt (int i)
 
void AddString (const char *pStr, int Limit=PACKER_BUFFER_SIZE)
 
void AddRaw (const void *pData, int Size)
 
int Size () const
 
const unsigned char * Data () const
 
bool Error () const
 

Private Attributes

unsigned char m_aBuffer [PACKER_BUFFER_SIZE]
 
unsigned char * m_pCurrent
 
unsigned char * m_pEnd
 
bool m_Error
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
PACKER_BUFFER_SIZE 

Member Function Documentation

◆ AddInt()

void CPacker::AddInt ( int  i)

◆ AddRaw()

void CPacker::AddRaw ( const void *  pData,
int  Size 
)

◆ AddString()

void CPacker::AddString ( const char *  pStr,
int  Limit = PACKER_BUFFER_SIZE 
)

◆ Data()

const unsigned char * CPacker::Data ( ) const
inline

◆ Error()

bool CPacker::Error ( ) const
inline

◆ Reset()

void CPacker::Reset ( )

◆ Size()

int CPacker::Size ( ) const
inline

Member Data Documentation

◆ m_aBuffer

unsigned char CPacker::m_aBuffer[PACKER_BUFFER_SIZE]
private

◆ m_Error

bool CPacker::m_Error
private

◆ m_pCurrent

unsigned char* CPacker::m_pCurrent
private

◆ m_pEnd

unsigned char* CPacker::m_pEnd
private

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