Helper class to compress data blocks in the ROOT compression frame format.
Definition at line 40 of file RNTupleZip.hxx.
|
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.
|
|
|
using | Buffer_t = std::array< unsigned char, kMAXZIPBUF > |
|
#include <ROOT/RNTupleZip.hxx>
◆ Buffer_t
◆ Writer_t
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.
◆ RNTupleCompressor() [1/3]
ROOT::Experimental::Detail::RNTupleCompressor::RNTupleCompressor |
( |
| ) |
|
|
inline |
◆ RNTupleCompressor() [2/3]
ROOT::Experimental::Detail::RNTupleCompressor::RNTupleCompressor |
( |
const RNTupleCompressor & |
other | ) |
|
|
delete |
◆ RNTupleCompressor() [3/3]
ROOT::Experimental::Detail::RNTupleCompressor::RNTupleCompressor |
( |
RNTupleCompressor && |
other | ) |
|
|
default |
◆ GetZipBuffer()
const void * ROOT::Experimental::Detail::RNTupleCompressor::GetZipBuffer |
( |
| ) |
|
|
inline |
◆ operator()() [1/2]
size_t ROOT::Experimental::Detail::RNTupleCompressor::operator() |
( |
const void * |
from, |
|
|
size_t |
nbytes, |
|
|
int |
compression |
|
) |
| |
|
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 98 of file RNTupleZip.hxx.
◆ operator()() [2/2]
size_t ROOT::Experimental::Detail::RNTupleCompressor::operator() |
( |
const void * |
from, |
|
|
size_t |
nbytes, |
|
|
int |
compression, |
|
|
Writer_t |
fnWriter |
|
) |
| |
|
inline |
Returns the size of the compressed data.
Data is compressed in 16MB blocks and written piecewise using the provided writer
Definition at line 59 of file RNTupleZip.hxx.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ fZipBuffer
std::unique_ptr<Buffer_t> ROOT::Experimental::Detail::RNTupleCompressor::fZipBuffer |
|
private |
◆ kMaxSingleBlock
constexpr size_t ROOT::Experimental::Detail::RNTupleCompressor::kMaxSingleBlock = kMAXZIPBUF |
|
staticconstexpr |
The documentation for this class was generated from the following file: