NCL Library
Public Member Functions | Protected Attributes | Static Protected Attributes
CNetBuffer Class Reference

#include <NetBuffer.hpp>

List of all members.

Public Member Functions

 CNetBuffer ()
 ~CNetBuffer ()
bool Empty () const
size_t Size () const
size_t Capacity () const
const void * Ptr () const
size_t Append (const void *pBuffer, size_t nBufSize)
size_t Discard (size_t nCount)
void Clear ()

Protected Attributes

CBuffer m_oBuffer
size_t m_nDataSize
size_t m_nMinCapacity

Static Protected Attributes

static const size_t DEF_MIN_CAPACITY = 4096

Constructor & Destructor Documentation


Member Function Documentation

bool CNetBuffer::Empty ( ) const [inline]
size_t CNetBuffer::Size ( ) const [inline]
size_t CNetBuffer::Capacity ( ) const [inline]
const void * CNetBuffer::Ptr ( ) const [inline]
size_t CNetBuffer::Append ( const void *  pBuffer,
size_t  nBufSize 
)
size_t CNetBuffer::Discard ( size_t  nCount)

Member Data Documentation

CBuffer CNetBuffer::m_oBuffer [protected]
size_t CNetBuffer::m_nDataSize [protected]
size_t CNetBuffer::m_nMinCapacity [protected]
const size_t CNetBuffer::DEF_MIN_CAPACITY = 4096 [static, protected]

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