Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CGGEPItem Class Reference

#include <GGEP.h>

List of all members.

Public Member Functions

 CGGEPItem (LPCTSTR pszID=NULL)
virtual ~CGGEPItem ()
BOOL IsNamed (LPCTSTR pszID)
void Read (LPVOID pData, int nLength)
BYTE ReadByte ()
void Write (LPCVOID pData, int nLength)
void WriteByte (BYTE nValue)
CString ToString ()

Public Attributes

CGGEPItemm_pNext
CString m_sID
BYTE * m_pBuffer
DWORD m_nLength
DWORD m_nPosition

Protected Member Functions

BOOL ReadFrom (CGGEPBlock *pBlock, BYTE nFlags)
void WriteTo (CPacket *pPacket)
void WriteTo (CString &str)
BOOL Encode (BOOL bIfZeros=FALSE)
BOOL Decode ()
BOOL Deflate (BOOL bIfSmaller=FALSE)
BOOL Inflate ()

Friends

class CGGEPBlock


Constructor & Destructor Documentation

CGGEPItem::CGGEPItem LPCTSTR  pszID = NULL  ) 
 

Definition at line 214 of file GGEP.cpp.

References m_nLength, m_nPosition, m_pBuffer, m_pNext, m_sID, and NULL.

CGGEPItem::~CGGEPItem  )  [virtual]
 

Definition at line 224 of file GGEP.cpp.

References m_pBuffer.


Member Function Documentation

BOOL CGGEPItem::Decode  )  [protected]
 

Definition at line 486 of file GGEP.cpp.

References m_nLength, and m_pBuffer.

Referenced by ReadFrom().

BOOL CGGEPItem::Deflate BOOL  bIfSmaller = FALSE  )  [protected]
 

Definition at line 535 of file GGEP.cpp.

References CZLib::Compress(), m_nLength, and m_pBuffer.

Referenced by WriteTo().

BOOL CGGEPItem::Encode BOOL  bIfZeros = FALSE  )  [protected]
 

Definition at line 411 of file GGEP.cpp.

References m_nLength, m_pBuffer, and NULL.

Referenced by WriteTo().

BOOL CGGEPItem::Inflate  )  [protected]
 

Definition at line 558 of file GGEP.cpp.

References CZLib::Decompress(), m_nLength, and m_pBuffer.

Referenced by ReadFrom().

BOOL CGGEPItem::IsNamed LPCTSTR  pszID  ) 
 

Definition at line 232 of file GGEP.cpp.

References m_sID.

void CGGEPItem::Read LPVOID  pData,
int  nLength
 

Definition at line 240 of file GGEP.cpp.

References m_nLength, m_nPosition, and m_pBuffer.

Referenced by ReadByte().

BYTE CGGEPItem::ReadByte  ) 
 

Definition at line 247 of file GGEP.cpp.

References Read().

BOOL CGGEPItem::ReadFrom CGGEPBlock pBlock,
BYTE  nFlags
[protected]
 

Definition at line 294 of file GGEP.cpp.

References Decode(), GGEP_HDR_COBS, GGEP_HDR_DEFLATE, GGEP_HDR_IDLEN, GGEP_LEN_LAST, GGEP_LEN_MASK, GGEP_LEN_MORE, Inflate(), m_nLength, m_pBuffer, m_sID, and NULL.

Referenced by CGGEPBlock::ReadInternal().

CString CGGEPItem::ToString  ) 
 

Definition at line 277 of file GGEP.cpp.

References m_nLength, and m_pBuffer.

void CGGEPItem::Write LPCVOID  pData,
int  nLength
 

Definition at line 254 of file GGEP.cpp.

References m_nLength, and m_pBuffer.

Referenced by WriteByte().

void CGGEPItem::WriteByte BYTE  nValue  ) 
 

Definition at line 269 of file GGEP.cpp.

References Write().

void CGGEPItem::WriteTo CString &  str  )  [protected]
 

Definition at line 380 of file GGEP.cpp.

References Deflate(), Encode(), GGEP_HDR_COBS, GGEP_HDR_DEFLATE, GGEP_HDR_IDLEN, GGEP_HDR_LAST, GGEP_LEN_LAST, GGEP_LEN_MASK, GGEP_LEN_MORE, m_nLength, m_pBuffer, m_pNext, m_sID, and NULL.

void CGGEPItem::WriteTo CPacket pPacket  )  [protected]
 

Definition at line 350 of file GGEP.cpp.

References Deflate(), Encode(), GGEP_HDR_COBS, GGEP_HDR_DEFLATE, GGEP_HDR_IDLEN, GGEP_HDR_LAST, GGEP_LEN_LAST, GGEP_LEN_MASK, GGEP_LEN_MORE, m_nLength, m_pBuffer, m_pNext, m_sID, NULL, CPacket::Write(), and CPacket::WriteByte().


Friends And Related Function Documentation

friend class CGGEPBlock [friend]
 

Definition at line 98 of file GGEP.h.


Member Data Documentation

DWORD CGGEPItem::m_nLength
 

Definition at line 77 of file GGEP.h.

Referenced by CGGEPItem(), Decode(), Deflate(), Encode(), Inflate(), Read(), ReadFrom(), ToString(), Write(), and WriteTo().

DWORD CGGEPItem::m_nPosition
 

Definition at line 78 of file GGEP.h.

Referenced by CGGEPItem(), and Read().

BYTE* CGGEPItem::m_pBuffer
 

Definition at line 76 of file GGEP.h.

Referenced by CGGEPItem(), Decode(), Deflate(), Encode(), Inflate(), Read(), ReadFrom(), ToString(), Write(), WriteTo(), and ~CGGEPItem().

CGGEPItem* CGGEPItem::m_pNext
 

Definition at line 74 of file GGEP.h.

Referenced by CGGEPItem(), CGGEPBlock::Clear(), CGGEPBlock::Find(), CGGEPBlock::Write(), and WriteTo().

CString CGGEPItem::m_sID
 

Definition at line 75 of file GGEP.h.

Referenced by CGGEPItem(), IsNamed(), ReadFrom(), and WriteTo().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:07 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2