zipios::BackBuffer(3) | Library Functions Manual | zipios::BackBuffer(3) |
zipios::BackBuffer - A BackBuffer instance is useful for reading the last part of a file in an efficient manner, when it is not known exactly how far back (towards the front!) to go, to find the start of the desired data block.
#include <backbuffer.h>
Inherits vector< unsigned char >.
BackBuffer (istream &is, VirtualSeeker
vs=VirtualSeeker(), int chunk_size=1024)
BackBuffer constructor. int readChunk (int &read_pointer)
Reads another chunk and returns the size of the chunk that has been read.
A BackBuffer instance is useful for reading the last part of a file in an efficient manner, when it is not known exactly how far back (towards the front!) to go, to find the start of the desired data block.
BackBuffer is a vector< unsigned char > that fills itself with data from a file by reading chunks from the end of the file progressing towards the start. Upon construction the BackBuffer instance is associated with a file and a chunksize can be specified. To read a chunk of the file into the BackBuffer call readChunk().
Definition at line 32 of file backbuffer.h.
BackBuffer constructor.
Parameters
Exceptions
Definition at line 61 of file backbuffer.h.
Reads another chunk and returns the size of the chunk that has been read. Returns 0 on I/O failure.
Parameters
Definition at line 75 of file backbuffer.h.
Generated automatically by Doxygen for Zipios++ from the source code.
Zipios++ |