#include <BufferedReader.hxx>
Definition at line 31 of file BufferedReader.hxx.
BufferedReader::BufferedReader |
( |
Reader & |
_reader | ) |
|
|
inlineexplicit |
void BufferedReader::Consume |
( |
size_t |
n | ) |
|
|
inline |
bool BufferedReader::Fill |
( |
bool |
need_more | ) |
|
unsigned BufferedReader::GetLineNumber |
( |
| ) |
const |
|
inline |
Read (and consume) data from the input buffer into the given buffer.
Does not attempt to refill the buffer.
gcc_pure void* BufferedReader::ReadFull |
( |
size_t |
size | ) |
|
Read a buffer of exactly the given size (without consuming it).
Throws std::runtime_error if not enough data is available.
Read data into the given buffer and consume it from our buffer.
Throw an exception if the request cannot be forfilled.
char* BufferedReader::ReadLine |
( |
| ) |
|
void BufferedReader::Reset |
( |
| ) |
|
|
inline |
Reset the internal state.
Should be called after rewinding the underlying Reader.
Definition at line 50 of file BufferedReader.hxx.
The documentation for this class was generated from the following file: