DDraceNetwork Docs
CPacker Class Reference

#include <packer.h>

Inheritance diagram for CPacker:
[legend]
Collaboration diagram for CPacker:
[legend]

Public Types

enum  { PACKER_BUFFER_SIZE = 1024 * 2 }
 

Public Member Functions

 CPacker ()
 
- Public Member Functions inherited from CAbstractPacker
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
 

Private Attributes

unsigned char m_aBuffer [PACKER_BUFFER_SIZE]
 

Additional Inherited Members

- Protected Member Functions inherited from CAbstractPacker
 CAbstractPacker (unsigned char *pBuffer, size_t Size)
 

Detailed Description

Default packer with buffer for networking.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
PACKER_BUFFER_SIZE 

Constructor & Destructor Documentation

◆ CPacker()

CPacker::CPacker ( )
inline

Member Data Documentation

◆ m_aBuffer

unsigned char CPacker::m_aBuffer[PACKER_BUFFER_SIZE]
private

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