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.
Definition at line 206 of file StreamCompression.h.
openvdb::OPENVDB_VERSION_NAME::compression::PagedInputStream::PagedInputStream |
( |
| ) |
|
|
default |
openvdb::OPENVDB_VERSION_NAME::compression::PagedInputStream::PagedInputStream |
( |
std::istream & |
is | ) |
|
|
explicit |
PageHandle::Ptr openvdb::OPENVDB_VERSION_NAME::compression::PagedInputStream::createHandle |
( |
std::streamsize |
n | ) |
|
Creates a PageHandle to access the next.
- Parameters
-
std::istream& openvdb::OPENVDB_VERSION_NAME::compression::PagedInputStream::getInputStream |
( |
| ) |
|
|
inline |
void openvdb::OPENVDB_VERSION_NAME::compression::PagedInputStream::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 openvdb::OPENVDB_VERSION_NAME::compression::PagedInputStream::setInputStream |
( |
std::istream & |
is | ) |
|
|
inline |
void openvdb::OPENVDB_VERSION_NAME::compression::PagedInputStream::setSizeOnly |
( |
bool |
sizeOnly | ) |
|
|
inline |
bool openvdb::OPENVDB_VERSION_NAME::compression::PagedInputStream::sizeOnly |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: