Helper class to compress data blocks in the ROOT compression frame format.
Definition at line 40 of file RNTupleZip.hxx.
Public Types | |
using | Writer_t = std::function< void(const void *buffer, size_t nbytes, size_t offset)> |
Data might be overwritten, if a zipped block in the middle of a large input data stream turns out to be uncompressible. More... | |
Public Member Functions | |
RNTupleCompressor () | |
RNTupleCompressor (const RNTupleCompressor &other)=delete | |
const void * | GetZipBuffer () |
size_t | operator() (const void *from, size_t nbytes, int compression) |
Returns the size of the compressed data block. More... | |
size_t | operator() (const void *from, size_t nbytes, int compression, Writer_t fnWriter) |
Returns the size of the compressed data. More... | |
RNTupleCompressor & | operator= (const RNTupleCompressor &other)=delete |
Static Public Attributes | |
static constexpr size_t | kMaxSingleBlock = kMAXZIPBUF |
Private Types | |
using | Buffer_t = std::array< unsigned char, kMAXZIPBUF > |
Private Attributes | |
std::unique_ptr< Buffer_t > | fZipBuffer |
#include <ROOT/RNTupleZip.hxx>
|
private |
Definition at line 42 of file RNTupleZip.hxx.
using ROOT::Experimental::Detail::RNTupleCompressor::Writer_t = std::function<void(const void *buffer, size_t nbytes, size_t offset)> |
Data might be overwritten, if a zipped block in the middle of a large input data stream turns out to be uncompressible.
Definition at line 48 of file RNTupleZip.hxx.
|
inline |
Definition at line 51 of file RNTupleZip.hxx.
|
delete |
|
inline |
Definition at line 121 of file RNTupleZip.hxx.
|
inline |
Returns the size of the compressed data block.
The data is written into the zip buffer. This works only for small input buffer up to 16MB
Definition at line 96 of file RNTupleZip.hxx.
|
inline |
Returns the size of the compressed data.
Data is compressed in 16MB blocks and written piecewise using the provided writer
Definition at line 57 of file RNTupleZip.hxx.
|
delete |
|
private |
Definition at line 43 of file RNTupleZip.hxx.
|
staticconstexpr |
Definition at line 49 of file RNTupleZip.hxx.