Simple char string buffer class for use internally by the devices. More...
#include <character_buffer.hpp>
Public Member Functions | |
long | append (const char &c) |
long | append (const char *s, unsigned long n) |
char * | c_ptr () |
CharBuffer () | |
void | clear () |
bool | full () const |
unsigned int | remaining () |
unsigned int | size () const |
virtual | ~CharBuffer () |
Static Public Attributes | |
static const unsigned int | buffer_size = 4096 |
Private Attributes | |
char | contents [buffer_size] |
unsigned int | fill_point_marker |
Simple char string buffer class for use internally by the devices.
This accommodates buffers which always reserve at least one extra byte for the end of string character.
Definition at line 51 of file character_buffer.hpp.
|
inline |
Definition at line 69 of file character_buffer.hpp.
|
inlinevirtual |
Definition at line 70 of file character_buffer.hpp.
long ecl::devices::CharBuffer::append | ( | const char & | c | ) |
Definition at line 42 of file character_buffer.cpp.
long ecl::devices::CharBuffer::append | ( | const char * | s, |
unsigned long | n | ||
) |
Definition at line 53 of file character_buffer.cpp.
|
inline |
Definition at line 78 of file character_buffer.hpp.
void ecl::devices::CharBuffer::clear | ( | ) |
Definition at line 67 of file character_buffer.cpp.
bool ecl::devices::CharBuffer::full | ( | ) | const |
Definition at line 34 of file character_buffer.cpp.
|
inline |
Definition at line 72 of file character_buffer.hpp.
|
inline |
Definition at line 73 of file character_buffer.hpp.
|
static |
Definition at line 64 of file character_buffer.hpp.
|
private |
Definition at line 85 of file character_buffer.hpp.
|
private |
Definition at line 84 of file character_buffer.hpp.