#include <bufstr.h>
Public Member Functions | |
BufStr (int size) | |
~BufStr () | |
void | addChar (char c) |
void | addArray (const char *a, int len) |
void | skip (uint s) |
void | shrink (uint newlen) |
void | resize (uint newlen) |
char * | data () const |
char & | at (uint i) const |
bool | isEmpty () const |
operator const char * () const | |
uint | curPos () const |
This buffer is used append characters and strings. It will automatically resize itself, yet provide efficient random access to the content.
Definition at line 30 of file bufstr.h.
void BufStr::addArray | ( | const char * | a, | |
int | len | |||
) | [inline] |
void BufStr::skip | ( | uint | s | ) | [inline] |
void BufStr::shrink | ( | uint | newlen | ) | [inline] |
void BufStr::resize | ( | uint | newlen | ) | [inline] |
char* BufStr::data | ( | ) | const [inline] |
uint BufStr::curPos | ( | ) | const [inline] |