Function blosc_sys::blosc_cbuffer_metainfo
[−]
[src]
pub unsafe extern "C" fn blosc_cbuffer_metainfo(
cbuffer: *const c_void,
typesize: *mut size_t,
flags: *mut c_int
)
Return 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 currently 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
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).
This function should always succeed.