![]() |
Anoncoin
0.9.4
P2P Digital Currency
|
Wrapper around a FILE* that implements a ring buffer to deserialize from. More...
#include <serialize.h>
Public Member Functions | |
CBufferedFile (FILE *fileIn, uint64_t nBufSize, uint64_t nRewindIn, int nTypeIn, int nVersionIn) | |
bool | good () const |
bool | eof () const |
CBufferedFile & | read (char *pch, size_t nSize) |
uint64_t | GetPos () |
bool | SetPos (uint64_t nPos) |
bool | Seek (uint64_t nPos) |
bool | SetLimit (uint64_t nPos=(uint64_t)(-1)) |
template<typename T > | |
CBufferedFile & | operator>> (T &obj) |
void | FindByte (char ch) |
Public Attributes | |
int | nType |
int | nVersion |
Protected Member Functions | |
void | setstate (short bits, const char *psz) |
bool | Fill () |
Private Attributes | |
FILE * | src |
uint64_t | nSrcPos |
uint64_t | nReadPos |
uint64_t | nReadLimit |
uint64_t | nRewind |
std::vector< char > | vchBuf |
short | state |
short | exceptmask |
Wrapper around a FILE* that implements a ring buffer to deserialize from.
It guarantees the ability to rewind a given number of bytes.
Definition at line 1266 of file serialize.h.
|
inline |
Definition at line 1309 of file serialize.h.
|
inline |
|
inlineprotected |
Definition at line 1287 of file serialize.h.
|
inline |
Definition at line 1396 of file serialize.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1325 of file serialize.h.
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
private |
Definition at line 1277 of file serialize.h.
|
private |
Definition at line 1272 of file serialize.h.
|
private |
Definition at line 1271 of file serialize.h.
|
private |
Definition at line 1273 of file serialize.h.
|
private |
Definition at line 1270 of file serialize.h.
int CBufferedFile::nType |
Definition at line 1306 of file serialize.h.
int CBufferedFile::nVersion |
Definition at line 1307 of file serialize.h.
|
private |
Definition at line 1269 of file serialize.h.
|
private |
Definition at line 1276 of file serialize.h.
|
private |
Definition at line 1274 of file serialize.h.