KVIrc  4.9.2
DeveloperAPIs
Public Member Functions | Private Attributes | List of all members
KviDataBuffer Class Reference

#include <KviDataBuffer.h>

+ Inheritance diagram for KviDataBuffer:

Public Member Functions

void addSize (int uSize)
 
void append (const unsigned char *data, int uSize)
 
void append (const KviDataBuffer &b)
 
void clear ()
 
unsigned char * data () const
 
int find (unsigned char c)
 
int find (const unsigned char *block, int uSize)
 
 KviDataBuffer (int uSize, const unsigned char *data=0)
 
 KviDataBuffer ()
 
void remove (int uSize)
 
void resize (int uSize)
 
int size () const
 
 ~KviDataBuffer ()
 

Private Attributes

unsigned char * m_pData
 
int m_uSize
 

Constructor & Destructor Documentation

KviDataBuffer::KviDataBuffer ( int  uSize,
const unsigned char *  data = 0 
)
KviDataBuffer::KviDataBuffer ( )

References m_pData, and m_uSize.

KviDataBuffer::~KviDataBuffer ( )

Member Function Documentation

void KviDataBuffer::addSize ( int  uSize)
inline
void KviDataBuffer::append ( const unsigned char *  data,
int  uSize 
)
void KviDataBuffer::append ( const KviDataBuffer b)
inline

References append(), data(), and size().

Referenced by append().

void KviDataBuffer::clear ( )
inline
unsigned char* KviDataBuffer::data ( ) const
inline
int KviDataBuffer::find ( unsigned char  c)
int KviDataBuffer::find ( const unsigned char *  block,
int  uSize 
)

References i, j, m_pData, and m_uSize.

void KviDataBuffer::remove ( int  uSize)
void KviDataBuffer::resize ( int  uSize)
int KviDataBuffer::size ( ) const
inline

Member Data Documentation

unsigned char* KviDataBuffer::m_pData
private
int KviDataBuffer::m_uSize
private

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