Buffer used to store strings. More...
#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) |
| int | size () const |
| char * | data () const |
| char & | at (uint i) const |
| bool | isEmpty () const |
| operator const char * () const | |
| uint | curPos () const |
| void | dropFromStart (uint bytes) |
Private Member Functions | |
| void | makeRoomFor (uint size) |
Private Attributes | |
| uint | m_size |
| uint | m_writeOffset |
| const int | m_spareRoom |
| char * | m_buf |
Buffer used to store strings.
This buffer is used append characters and strings. It will automatically resize itself, yet provide efficient random access to the content.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
1.8.11