Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray::StrBuilderAlloc Class Reference

#include <StrBuilder.h>

Inheritance diagram for Gray::StrBuilderAlloc:
Gray::StrBuilder Gray::cMemBlock

Public Member Functions

 StrBuilderAlloc (size_t nSizeStart=1024)
 
- Public Member Functions inherited from Gray::StrBuilder
 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)
 
- Public Member Functions inherited from Gray::cMemBlock
 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
 

Additional Inherited Members

- Static Public Member Functions inherited from Gray::cMemBlock
static COMPARE_t __stdcall Compare (const void *pData1, size_t iLen1, const void *pData2, size_t iLen2)
 
- Public Attributes inherited from Gray::StrBuilder
char * m_pCur
 
StrLen_t m_nLenLeft
 
- Protected Member Functions inherited from Gray::StrBuilder
void Advance (StrLen_t nLen)
 
- Protected Attributes inherited from Gray::cMemBlock
size_t m_nSize
 size_t of m_pData in bytes. May be determined at runtime. More...
 
void * m_pData
 

Detailed Description

Grow string on demand.

Constructor & Destructor Documentation

◆ StrBuilderAlloc()

Gray::StrBuilderAlloc::StrBuilderAlloc ( size_t  nSizeStart = 1024)
inline

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