![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <StrBuilder.h>
Public Member Functions | |
StrBuilder (void *p, StrLen_t nSize) | |
StrBuilder (cMemBlock &m) | |
void | ResetStr () |
StrLen_t | get_Length () const |
const char * | get_Str () const noexcept |
StrLen_t | get_LenLeft () const |
bool | isOverflow () const |
StrLen_t _cdecl | AddFormat (const char *pszFormat,...) |
StrLen_t | AddStr (const char *pszStr) |
void | AddCRLF () |
void | AddChar (char ch) |
void | AddCharRepeat (char ch, int iRepeat) |
void | AddBytesRaw (const void *p, size_t nSize) |
void | AddBytes (const void *p, size_t nSize) |
![]() | |
cMemBlock () noexcept | |
cMemBlock (const void *pData, size_t nSize) noexcept | |
cMemBlock (const cMemBlock &block) noexcept | |
cMemBlock (const cMemBlock *pBlock) noexcept | |
size_t | get_DataSize () const noexcept |
void * | get_Data () const noexcept |
BYTE * | get_DataBytes () const noexcept |
char * | get_DataA () const noexcept |
operator const BYTE * () const noexcept | |
bool | isValidPtr () const noexcept |
bool | IsValidIndex (size_t i) const noexcept |
bool | IsValidIndex2 (size_t i) const noexcept |
bool | IsValidPtr (const void *p) const noexcept |
bool | IsValidPtr2 (const void *p) const noexcept |
bool | IsZeros () const noexcept |
bool | IsEqualData (const void *pData, size_t nSize) const noexcept |
bool | IsEqualData (const cMemBlock *pData) const noexcept |
bool | IsEqualData (const cMemBlock &data) const noexcept |
BYTE * | GetOffset (size_t nOffset) const |
const void * | get_DataEnd () const noexcept |
void | put_DataPtr (void *pStart) noexcept |
void | put_Size (size_t nSize) noexcept |
void | SetBlock (void *pData, size_t nSize) noexcept |
void | SetEmptyBlock () noexcept |
void | InitZeros () noexcept |
StrLen_t | ConvertToString (char *pszDst, StrLen_t iDstSizeMax) const |
Public Attributes | |
char * | m_pCur |
StrLen_t | m_nLenLeft |
Protected Member Functions | |
void | Advance (StrLen_t nLen) |
Additional Inherited Members | |
![]() | |
static COMPARE_t __stdcall | Compare (const void *pData1, size_t iLen1, const void *pData2, size_t iLen2) |
![]() | |
size_t | m_nSize |
size_t of m_pData in bytes. May be determined at runtime. More... | |
void * | m_pData |
Similar to .NET StringBuilder Fill a buffer with stuff. Track how much space is left.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
get Length used.
|
inline |
|
inlinenoexcept |
|
inline |
Assume truncation occurred. DISP_E_BUFFERTOOSMALL
|
inline |
StrLen_t Gray::StrBuilder::m_nLenLeft |
char* Gray::StrBuilder::m_pCur |