Function blosc_sys::blosc_cbuffer_metainfo
[−]
[src]
pub unsafe extern "C" fn blosc_cbuffer_metainfo(
cbuffer: *const c_void,
typesize: *mut usize,
flags: *mut c_int
)
Return meta-information about a compressed buffer, namely the type size
(typesize
), as well as some internal flags
.
The flags
is a set of bits, where the used ones are:
bit 0: whether the shuffle filter has been applied or not
bit 1: whether the internal buffer is a pure memcpy or not
bit 2: whether the bit shuffle filter has been applied or not
You can use the BLOSC_DOSHUFFLE
, BLOSC_DOBITSHUFFLE
and
BLOSC_MEMCPYED
symbols for extracting the interesting bits
(e.g. flags & BLOSC_DOSHUFFLE
says whether the buffer is
byte-shuffled or not).
You only need to pass the first BLOSC_MIN_HEADER_LENGTH bytes of a compressed buffer for this call to work.
If the format is not supported by the library, all output arguments will be filled with zeros.