Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

CSIAccumString Class Reference

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

#include <SIBCString.h>

List of all members.

Public Methods


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::CSIAccumString   [inline]
 

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


Member Function Documentation

void CSIAccumString::Clear   [inline]
 

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

void CSIAccumString::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 CSIAccumString::GetLength   const [inline]
 

Returns the length of the string.

Returns:
SI_Int The length of the string.

SI_Char* CSIAccumString::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 files: © Copyright 2001-2003 Avid Technology, Inc. All rights reserved.

© Copyright 2001-2003 Avid Technology, Inc. All rights reserved.