CSIAccumString Class Reference

This string class is optimized to accumulate bytes at the end efficiently. More...

#include <SIBCString.h>

List of all members.

Public Member Functions

  CSIAccumString ()
void  Clear ()
void  ConcatByte (SI_Byte in_Byte)
SI_Int  GetLength () const
SI_Char *  GetText () const


Detailed Description

This string class is optimized to accumulate bytes at the end efficiently.

When used below to read unsupported templates, it makes a BIG difference in performance since we simply dont recalculate the string length every time. CSIBCString will do up to three runs through the whole buffer when resizing, which gets extremely time consuming on long runs.


Constructor & Destructor Documentation

CSIAccumString (  )  [inline]

Default constructor. Allocates an initial block of memory for string storage, and sets the string data empty.


Member Function Documentation

void Clear (  )  [inline]

Deletes the internal character buffer of the string, and resets the allocated size to a default initial buffer size.

void ConcatByte ( SI_Byte  in_Byte  )  [inline]

Contenates an SI_Byte to the current string.

Parameters:
in_Byte  SI_Byte to concatenate to the current string.

SI_Int GetLength (  )  const [inline]

Returns the length of the string.

Returns:
SI_Int The length of the string.

SI_Char* GetText (  )  const [inline]

Returns a character buffer with the contents of the string. This buffer should not be modified, and does not need to be freed after use. This function is generally used to output the text contained within the string. (See SIBCString::GetText).

Returns:
SI_Char Pointer to a character buffer containing the string text.


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