Function blosc_sys::blosc_decompress_ctx [] [src]

pub unsafe extern "C" fn blosc_decompress_ctx(
    src: *const c_void,
    dest: *mut c_void,
    destsize: size_t,
    numinternalthreads: c_int
) -> c_int

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.

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.