BazisLib::CBuffer Class Reference

#include <bzsbuf.h>

Inherited by BazisLib::ACMemoryFile [protected], and BazisLib::CMultiReadBuffer [protected].

List of all members.

Public Member Functions

 CBuffer (size_t initialSize=0)
 CBuffer (const char *pszString, size_t length=-1)
 ~CBuffer ()
void Reset ()
bool EnsureSize (size_t size)
bool reserve (size_t size)
bool Valid () const
size_t GetSize () const
size_t GetAllocated () const
const void * GetConstData () const
void * GetData (size_t offset)
void * GetData ()
bool SetData (const void *pData, size_t size)
void SetSize (size_t newSize)
void * DetachBuffer ()
bool AppendData (const void *pData, size_t Size)
bool append (const void *pData, size_t Size)

Private Member Functions

 CBuffer (const CBuffer &buf)

Private Attributes

void * m_pBuffer
size_t m_AllocatedSize
size_t m_UsedSize


Constructor & Destructor Documentation

BazisLib::CBuffer::CBuffer ( const CBuffer buf  )  [inline, private]

BazisLib::CBuffer::CBuffer ( size_t  initialSize = 0  )  [inline]

Here is the call graph for this function:

BazisLib::CBuffer::CBuffer ( const char *  pszString,
size_t  length = -1 
) [inline]

Here is the call graph for this function:

BazisLib::CBuffer::~CBuffer (  )  [inline]

Here is the call graph for this function:


Member Function Documentation

bool BazisLib::CBuffer::append ( const void *  pData,
size_t  Size 
) [inline]

Here is the call graph for this function:

bool BazisLib::CBuffer::AppendData ( const void *  pData,
size_t  Size 
) [inline]

Here is the call graph for this function:

void* BazisLib::CBuffer::DetachBuffer (  )  [inline]

Reimplemented in BazisLib::CMultiReadBuffer.

bool BazisLib::CBuffer::EnsureSize ( size_t  size  )  [inline]

Here is the call graph for this function:

size_t BazisLib::CBuffer::GetAllocated (  )  const [inline]

const void* BazisLib::CBuffer::GetConstData (  )  const [inline]

void* BazisLib::CBuffer::GetData (  )  [inline]

void* BazisLib::CBuffer::GetData ( size_t  offset  )  [inline]

size_t BazisLib::CBuffer::GetSize (  )  const [inline]

Reimplemented in BazisLib::CMultiReadBuffer.

bool BazisLib::CBuffer::reserve ( size_t  size  )  [inline]

Here is the call graph for this function:

void BazisLib::CBuffer::Reset (  )  [inline]

Reimplemented in BazisLib::CMultiReadBuffer.

Here is the call graph for this function:

bool BazisLib::CBuffer::SetData ( const void *  pData,
size_t  size 
) [inline]

Reimplemented in BazisLib::ACMemoryFile.

Here is the call graph for this function:

void BazisLib::CBuffer::SetSize ( size_t  newSize  )  [inline]

Here is the call graph for this function:

bool BazisLib::CBuffer::Valid (  )  const [inline]


Member Data Documentation


The documentation for this class was generated from the following file:
SourceForge.net Logo