![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <streams.h>
Public Member Functions | |
CBufferedFile (FILE *fileIn, uint64_t nBufSize, uint64_t nRewindIn, int nTypeIn, int nVersionIn) | |
~CBufferedFile () | |
void | fclose () |
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) |
Protected Member Functions | |
bool | Fill () |
Private Member Functions | |
CBufferedFile (const CBufferedFile &) | |
CBufferedFile & | operator= (const CBufferedFile &) |
Private Attributes | |
int | nType |
int | nVersion |
FILE * | src |
uint64_t | nSrcPos |
uint64_t | nReadPos |
uint64_t | nReadLimit |
uint64_t | nRewind |
std::vector< char > | vchBuf |
Non-refcounted RAII wrapper around a FILE* that implements a ring buffer to deserialize from. It guarantees the ability to rewind a given number of bytes.
Will automatically close the file when it goes out of scope if not null. If you need to close the file early, use file.fclose() instead of fclose(file).
|
private |
|
inline |
|
inline |
Definition at line 516 of file streams.h.
Referenced by LoadExternalBlockFile().
|
inline |
Definition at line 507 of file streams.h.
Referenced by ~CBufferedFile().
|
inlineprotected |
Definition at line 476 of file streams.h.
Referenced by FindByte(), and read().
|
inline |
Definition at line 591 of file streams.h.
Referenced by LoadExternalBlockFile().
|
inline |
Definition at line 544 of file streams.h.
Referenced by LoadExternalBlockFile().
|
private |
|
inline |
|
inline |
|
inline |
Definition at line 576 of file streams.h.
Referenced by LoadExternalBlockFile().
|
inline |
Definition at line 549 of file streams.h.
Referenced by LoadExternalBlockFile().
|
private |
Definition at line 470 of file streams.h.
Referenced by read(), and SetLimit().
|
private |
Definition at line 469 of file streams.h.
Referenced by eof(), Fill(), FindByte(), GetPos(), read(), Seek(), SetLimit(), and SetPos().
|
private |
|
private |
|
private |
Definition at line 464 of file streams.h.
Referenced by CBufferedFile(), and operator>>().
|
private |
Definition at line 465 of file streams.h.
Referenced by CBufferedFile(), and operator>>().
|
private |
|
private |
Definition at line 472 of file streams.h.
Referenced by Fill(), FindByte(), and read().