#include <CharInputBuffer.hpp>
CharInputBuffer.hpp provides an InputBuffer for plain character arrays (buffers).
◆ CharInputBuffer()
CharInputBuffer::CharInputBuffer |
( |
unsigned char * |
buf, |
|
|
size_t |
size, |
|
|
bool |
owner = false |
|
) |
| |
|
inline |
Construct a CharInputBuffer.hpp object with a char* buffer of 'size' if 'owner' is true, then the buffer will be delete[]-ed on destruction.
- Note
- it is assumed the buffer was allocated with new[]!
◆ ~CharInputBuffer()
CharInputBuffer::~CharInputBuffer |
( |
void |
| ) |
|
|
inline |
Destructor
- Note
- If you're using malloced data, then you probably need to change this destructor. Or better use this class as template for your own.
◆ getChar()
virtual int CharInputBuffer::getChar |
( |
void |
| ) |
|
|
inlinevirtual |
Override this in subclasses to get the next character
Implements InputBuffer.
◆ reset()
virtual void CharInputBuffer::reset |
( |
void |
| ) |
|
|
inlinevirtual |
◆ buffer
unsigned char* CharInputBuffer::buffer |
|
protected |
◆ delete_buffer
bool CharInputBuffer::delete_buffer |
|
protected |
flag signifying if we have to delete the buffer
◆ end
unsigned char* CharInputBuffer::end |
|
protected |
◆ ptr
unsigned char* CharInputBuffer::ptr |
|
protected |
position ptr into the buffer
The documentation for this class was generated from the following file: