Wrap a source file with a ring buffer of nBufSize bytes, guaranteeing nRewindIn bytes of rewind.
Synopsis
Declared in <streams.h>
BufferedFile(
AutoFile& file,
uint64_t nBufSize,
uint64_t nRewindIn);
Parameters
Name |
Description |
file |
Source file to read from. |
nBufSize |
Size in bytes of the ring buffer. |
nRewindIn |
Number of bytes guaranteed to be rewindable; must be less than nBufSize. |
Created with MrDocs