Main Page   Class Hierarchy   Compound List   File List   Compound Members  

TBuffer Class Reference

The TBuffer can be used as a storage container for arbitary data. More...

#include <TBuffer.hh>

List of all members.

Public Methods

 TBuffer ()
 Construct an empty TBuffer.

 TBuffer (const TBuffer &buf)
 Copy CTOR.

 ~TBuffer ()
 Destruct TBuffer.

void Append (const char *cs)
 Append a copy of the null terminated string cs to buffer.

void Append (const char *cs, int n)
 Append a copy of the first n bytes of cs to buffer.

char * Data () const
 Return the base pointer of the allocated memory.

void Clear ()
 Clear the buffer.

int Length () const
 Returns the length of the buffer (used memory).


Detailed Description

The TBuffer can be used as a storage container for arbitary data.

It is not immutable as the TString and does not contain the typical string operations.

Author:
Johan Bolmsjo <johan@nocrew.org>


Member Function Documentation

char* TBuffer::Data   const [inline]
 

Return the base pointer of the allocated memory.

Note that the pointer will not be vaild once the TBuffer goes out of scope. Also it can be changed by other methods in the class.


The documentation for this class was generated from the following file:
Generated on Sat Feb 15 18:37:16 2003 for Tools by doxygen1.3-rc2