Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Non-refcounted RAII wrapper around a FILE* that implements a ring buffer to deserialize from.
More...
#include <streams.h>
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).
Definition at line 519 of file streams.h.
◆ CBufferedFile() [1/2]
CBufferedFile::CBufferedFile |
( |
FILE * |
fileIn, |
|
|
uint64_t |
nBufSize, |
|
|
uint64_t |
nRewindIn, |
|
|
int |
nTypeIn, |
|
|
int |
nVersionIn |
|
) |
| |
|
inline |
◆ ~CBufferedFile()
CBufferedFile::~CBufferedFile |
( |
| ) |
|
|
inline |
◆ CBufferedFile() [2/2]
◆ eof()
bool CBufferedFile::eof |
( |
| ) |
const |
|
inline |
◆ fclose()
void CBufferedFile::fclose |
( |
| ) |
|
|
inline |
◆ Fill()
bool CBufferedFile::Fill |
( |
| ) |
|
|
inlineprotected |
◆ FindByte()
void CBufferedFile::FindByte |
( |
char |
ch | ) |
|
|
inline |
◆ GetPos()
uint64_t CBufferedFile::GetPos |
( |
| ) |
const |
|
inline |
◆ GetType()
int CBufferedFile::GetType |
( |
| ) |
const |
|
inline |
◆ GetVersion()
int CBufferedFile::GetVersion |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ operator>>()
◆ read()
void CBufferedFile::read |
( |
char * |
pch, |
|
|
size_t |
nSize |
|
) |
| |
|
inline |
◆ Seek()
bool CBufferedFile::Seek |
( |
uint64_t |
nPos | ) |
|
|
inline |
◆ SetLimit()
bool CBufferedFile::SetLimit |
( |
uint64_t |
nPos = (uint64_t)(-1) | ) |
|
|
inline |
◆ SetPos()
bool CBufferedFile::SetPos |
( |
uint64_t |
nPos | ) |
|
|
inline |
◆ nReadLimit
uint64_t CBufferedFile::nReadLimit |
|
private |
◆ nReadPos
uint64_t CBufferedFile::nReadPos |
|
private |
◆ nRewind
uint64_t CBufferedFile::nRewind |
|
private |
◆ nSrcPos
uint64_t CBufferedFile::nSrcPos |
|
private |
◆ nType
const int CBufferedFile::nType |
|
private |
◆ nVersion
const int CBufferedFile::nVersion |
|
private |
◆ src
◆ vchBuf
std::vector<char> CBufferedFile::vchBuf |
|
private |
The documentation for this class was generated from the following file: