#include <ReadBuffer.hpp>
Public Member Functions | |
ReadBuffer (File &file, size_t bufferSize, bool exclusiveAccess=true) | |
~ReadBuffer () | |
void | read (char *data, size_t length) |
const char * | peek (size_t length) |
const char * | read (size_t length) |
void | seekg (File::offset_type position, std::fstream::seekdir direction) |
File::offset_type | tellg () |
int | rdstate () |
void | invalidateg () |
Private Attributes | |
File::offset_type | _filePosition |
char * | _buffer |
File & | _file |
size_t | _bufferSize |
size_t | _bufferPosition |
size_t | _bufferDataLength |
bool | _gValid |
bool | _exclusiveAccess |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|