#include <TBuffer.hh>
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). |
It is not immutable as the TString and does not contain the typical string operations.
|
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. |