Windows C++ Library
|
#include <Buffer.hpp>
Public Member Functions | |
CBuffer () | |
CBuffer (size_t nSize) | |
CBuffer (const void *pData, size_t nSize) | |
CBuffer (HGLOBAL hGlobal) | |
CBuffer (const CBuffer &oRHS) | |
~CBuffer () | |
size_t | Size () const |
const void * | Buffer () const |
void | Get (void *pData, size_t nSize, size_t nOffset=0) const |
void | Size (size_t nSize) |
void * | Buffer () |
void | Set (const void *pData, size_t nSize, size_t nOffset=0) |
CBuffer & | operator= (const CBuffer &oRHS) |
bool | operator== (const CBuffer &oRHS) const |
bool | operator!= (const CBuffer &oRHS) const |
HGLOBAL | ToGlobal () const |
CString | ToString (TextFormat eFormat) const |
Convert the entire buffer to a string. | |
void | FromString (const CString &str, TextFormat eFormat, bool bIncNull=true) |
Fill the buffer with the contents of a string. | |
Protected Attributes | |
size_t | m_nSize |
void * | m_pBuffer |
Friends | |
void | operator>> (WCL::IInputStream &rStream, CBuffer &rBuffer) |
void | operator<< (WCL::IOutputStream &rStream, const CBuffer &rBuffer) |
CBuffer::CBuffer | ( | ) |
CBuffer::CBuffer | ( | size_t | nSize | ) |
CBuffer::CBuffer | ( | const void * | pData, |
size_t | nSize | ||
) |
CBuffer::CBuffer | ( | HGLOBAL | hGlobal | ) | [explicit] |
CBuffer::CBuffer | ( | const CBuffer & | oRHS | ) |
size_t CBuffer::Size | ( | ) | const [inline] |
const void * CBuffer::Buffer | ( | ) | const [inline] |
void CBuffer::Get | ( | void * | pData, |
size_t | nSize, | ||
size_t | nOffset = 0 |
||
) | const |
void CBuffer::Size | ( | size_t | nSize | ) |
void * CBuffer::Buffer | ( | ) | [inline] |
void CBuffer::Set | ( | const void * | pData, |
size_t | nSize, | ||
size_t | nOffset = 0 |
||
) |
bool CBuffer::operator== | ( | const CBuffer & | oRHS | ) | const |
bool CBuffer::operator!= | ( | const CBuffer & | oRHS | ) | const [inline] |
HGLOBAL CBuffer::ToGlobal | ( | ) | const |
CString CBuffer::ToString | ( | TextFormat | eFormat | ) | const |
Convert the entire buffer to a string.
void CBuffer::FromString | ( | const CString & | str, |
TextFormat | eFormat, | ||
bool | bIncNull = true |
||
) |
Fill the buffer with the contents of a string.
void operator>> | ( | WCL::IInputStream & | rStream, |
CBuffer & | rBuffer | ||
) | [friend] |
void operator<< | ( | WCL::IOutputStream & | rStream, |
const CBuffer & | rBuffer | ||
) | [friend] |
size_t CBuffer::m_nSize [protected] |
void* CBuffer::m_pBuffer [protected] |