DDraceNetwork Docs
|
#include <packer.h>
Public Member Functions | |
void | Reset () |
void | AddInt (int i) |
void | AddString (const char *pStr, int Limit=0, bool AllowTruncation=true) |
void | AddRaw (const void *pData, int Size) |
int | Size () const |
const unsigned char * | Data () const |
bool | Error () const |
Protected Member Functions | |
CAbstractPacker (unsigned char *pBuffer, size_t Size) | |
Private Attributes | |
unsigned char *const | m_pBuffer |
const size_t | m_BufferSize |
unsigned char * | m_pCurrent |
unsigned char * | m_pEnd |
bool | m_Error |
Abstract packer implementation. Subclasses must supply the buffer.
|
protected |
void CAbstractPacker::AddInt | ( | int | i | ) |
void CAbstractPacker::AddRaw | ( | const void * | pData, |
int | Size | ||
) |
void CAbstractPacker::AddString | ( | const char * | pStr, |
int | Limit = 0 , |
||
bool | AllowTruncation = true |
||
) |
|
inline |
|
inline |
void CAbstractPacker::Reset | ( | ) |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |