A Paging wrapper to std::istream that is responsible for reading from a given input stream and creating Page objects and PageHandles that reference those pages for delayed reading.
More...
#include <StreamCompression.h>
A Paging wrapper to std::istream that is responsible for reading from a given input stream and creating Page objects and PageHandles that reference those pages for delayed reading.
Creates a PageHandle to access the next.
- Parameters
-
std::istream& getInputStream |
( |
| ) |
|
|
inline |
void read |
( |
PageHandle::Ptr & |
pageHandle, |
|
|
std::streamsize |
n, |
|
|
bool |
delayed = true |
|
) |
| |
Takes a pageHandle and updates the referenced page with the current stream pointer position and if delayed is false performs an immediate read of the data.
void setInputStream |
( |
std::istream & |
is | ) |
|
|
inline |
void setSizeOnly |
( |
bool |
sizeOnly | ) |
|
|
inline |
Size-only mode tags the stream as only reading size data.
The documentation for this class was generated from the following file: