DDraceNetwork Docs
CUnpacker Class Reference

#include <packer.h>

Public Types

enum  { SANITIZE = 1 , SANITIZE_CC = 2 , SKIP_START_WHITESPACES = 4 }
 

Public Member Functions

void Reset (const void *pData, int Size)
 
int GetInt ()
 
int GetIntOrDefault (int Default)
 
int GetUncompressedInt ()
 
int GetUncompressedIntOrDefault (int Default)
 
const char * GetString (int SanitizeType=SANITIZE)
 
const unsigned char * GetRaw (int Size)
 
bool Error () const
 
int CompleteSize () const
 
const unsigned char * CompleteData () const
 

Private Attributes

const unsigned char * m_pStart
 
const unsigned char * m_pCurrent
 
const unsigned char * m_pEnd
 
bool m_Error
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
SANITIZE 
SANITIZE_CC 
SKIP_START_WHITESPACES 

Member Function Documentation

◆ CompleteData()

const unsigned char * CUnpacker::CompleteData ( ) const
inline

◆ CompleteSize()

int CUnpacker::CompleteSize ( ) const
inline

◆ Error()

bool CUnpacker::Error ( ) const
inline

◆ GetInt()

int CUnpacker::GetInt ( )

◆ GetIntOrDefault()

int CUnpacker::GetIntOrDefault ( int  Default)

◆ GetRaw()

const unsigned char * CUnpacker::GetRaw ( int  Size)

◆ GetString()

const char * CUnpacker::GetString ( int  SanitizeType = SANITIZE)

◆ GetUncompressedInt()

int CUnpacker::GetUncompressedInt ( )

◆ GetUncompressedIntOrDefault()

int CUnpacker::GetUncompressedIntOrDefault ( int  Default)

◆ Reset()

void CUnpacker::Reset ( const void *  pData,
int  Size 
)

Member Data Documentation

◆ m_Error

bool CUnpacker::m_Error
private

◆ m_pCurrent

const unsigned char* CUnpacker::m_pCurrent
private

◆ m_pEnd

const unsigned char* CUnpacker::m_pEnd
private

◆ m_pStart

const unsigned char* CUnpacker::m_pStart
private

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