OpenVDB  11.0.0
Functions | Variables
nanovdb::io::Internal Namespace Reference

Internal functions for compressed read/write of a NanoVDB GridHandle into a stream. More...

Functions

template<typename BufferT >
static fileSize_t write (std::ostream &os, const GridHandle< BufferT > &handle, Codec codec, uint32_t n)
 
template<typename BufferT >
static void read (std::istream &is, BufferT &buffer, Codec codec)
 
static void read (std::istream &is, char *data, fileSize_t size, Codec codec)
 read compressed grid from stream More...
 

Variables

static constexpr fileSize_t MAX_SIZE = 1UL << 30
 

Detailed Description

Internal functions for compressed read/write of a NanoVDB GridHandle into a stream.

Warning
These functions should never be called directly by client code

Function Documentation

static void nanovdb::io::Internal::read ( std::istream &  is,
BufferT &  buffer,
Codec  codec 
)
static
void read ( std::istream &  is,
char *  data,
fileSize_t  residual,
Codec  codec 
)
static

read compressed grid from stream

Parameters
isinput stream to read from
datadata buffer to write into
residualexpected size of uncompressed data
codecmode of compression
static fileSize_t nanovdb::io::Internal::write ( std::ostream &  os,
const GridHandle< BufferT > &  handle,
Codec  codec,
uint32_t  n 
)
static

Variable Documentation

constexpr fileSize_t MAX_SIZE = 1UL << 30
static