OpenVDB
12.0.0
|
A Paging wrapper to std::ostream that is responsible for writing from a given output stream at intervals set by the PageSize. As Pages are variable in size, they are flushed to disk as soon as sufficiently large. More...
#include <openvdb/points/StreamCompression.h>
Public Types | |
using | Ptr = std::shared_ptr< PagedOutputStream > |
Public Member Functions | |
PagedOutputStream () | |
PagedOutputStream (std::ostream &os) | |
void | setSizeOnly (bool sizeOnly) |
Size-only mode tags the stream as only writing size data. More... | |
bool | sizeOnly () const |
std::ostream & | getOutputStream () |
Set and get the output stream. More... | |
void | setOutputStream (std::ostream &os) |
PagedOutputStream & | write (const char *str, std::streamsize n) |
Writes the given. More... | |
void | flush () |
Manually flushes the current page to disk if non-zero. More... | |
A Paging wrapper to std::ostream that is responsible for writing from a given output stream at intervals set by the PageSize. As Pages are variable in size, they are flushed to disk as soon as sufficiently large.
using Ptr = std::shared_ptr<PagedOutputStream> |
|
explicit |
void flush | ( | ) |
Manually flushes the current page to disk if non-zero.
|
inline |
Set and get the output stream.
|
inline |
|
inline |
Size-only mode tags the stream as only writing size data.
|
inline |
PagedOutputStream& write | ( | const char * | str, |
std::streamsize | n | ||
) |
Writes the given.
str | buffer of size |
n |