3#ifndef ENGINE_SHARED_PACKER_H
4#define ENGINE_SHARED_PACKER_H
46 void Reset(
const void *pData,
int Size);
52 const unsigned char *
GetRaw(
int Size);
const unsigned char * Data() const
Definition: packer.h:27
@ PACKER_BUFFER_SIZE
Definition: packer.h:11
unsigned char * m_pEnd
Definition: packer.h:17
void AddInt(int i)
Definition: packer.cpp:15
unsigned char m_aBuffer[PACKER_BUFFER_SIZE]
Definition: packer.h:15
void AddString(const char *pStr, int Limit=PACKER_BUFFER_SIZE)
Definition: packer.cpp:29
bool Error() const
Definition: packer.h:28
void Reset()
Definition: packer.cpp:8
int Size() const
Definition: packer.h:26
unsigned char * m_pCurrent
Definition: packer.h:16
void AddRaw(const void *pData, int Size)
Definition: packer.cpp:64
bool m_Error
Definition: packer.h:18
int GetInt()
Definition: packer.cpp:87
bool m_Error
Definition: packer.h:36
const unsigned char * m_pEnd
Definition: packer.h:35
const unsigned char * GetRaw(int Size)
Definition: packer.cpp:189
int GetUncompressedInt()
Definition: packer.cpp:122
void Reset(const void *pData, int Size)
Definition: packer.cpp:79
@ SANITIZE
Definition: packer.h:41
@ SANITIZE_CC
Definition: packer.h:42
@ SKIP_START_WHITESPACES
Definition: packer.h:43
const unsigned char * m_pCurrent
Definition: packer.h:34
int GetUncompressedIntOrDefault(int Default)
Definition: packer.cpp:139
int CompleteSize() const
Definition: packer.h:55
const char * GetString(int SanitizeType=SANITIZE)
Definition: packer.cpp:152
const unsigned char * CompleteData() const
Definition: packer.h:56
int GetIntOrDefault(int Default)
Definition: packer.cpp:109
bool Error() const
Definition: packer.h:53
const unsigned char * m_pStart
Definition: packer.h:33