Function blosc_src::blosc_decompress_ctx
source · pub unsafe extern "C" fn blosc_decompress_ctx(
src: *const c_void,
dest: *mut c_void,
destsize: usize,
numinternalthreads: c_int
) -> c_int
Expand description
Context interface to blosc decompression. This does not require a call to blosc_init() and can be called from multithreaded applications without the global lock being used, so allowing Blosc be executed simultaneously in those scenarios.
Call blosc_cbuffer_validate
to determine the size of the destination buffer.
It uses the same parameters than the blosc_decompress() function plus:
numinternalthreads
: number of threads to use internally.
Decompression is memory safe and guaranteed not to write the dest
buffer more than what is specified in destsize
.
If an error occurs, e.g. the compressed data is corrupted or the output buffer is not large enough, then 0 (zero) or a negative value will be returned instead.