Wrapper around an AutoFile& that implements a ring buffer to deserialize from. It guarantees the ability to rewind a given number of bytes.
Synopsis
Declared in <streams.h>
class BufferedFile;
Description
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).
Member Functions
Name |
Description |
|
Wrap a source file with a ring buffer of nBufSize bytes, guaranteeing nRewindIn bytes of rewind. |
search for a given byte in the stream, and remain positioned on it |
|
return the current reading position |
|
prevent reading beyond a certain position no argument removes the limit |
|
rewind to a given reading position |
|
Move the read position ahead in the stream to the given position. Use SetPos() to back up in the stream, not SkipTo(). |
|
check whether we're at the end of the source file |
|
Deserialize an object from the buffered file and return this wrapper. |
|
read a number of bytes |
Created with MrDocs