pub unsafe extern "C" fn blosc2_decompress(
src: *const c_void,
srcsize: i32,
dest: *mut c_void,
destsize: i32,
) -> c_intExpand description
@brief Decompress a block of compressed data in @p src, put the result in @p dest and returns the size of the decompressed block.
@warning The @p src buffer and the @p dest buffer can not overlap.
@remark Decompression is memory safe and guaranteed not to write the @p dest buffer more than what is specified in @p destsize.
@remark In case you want to keep under control the number of bytes read from source, you can call #blosc1_cbuffer_sizes first to check whether the @p nbytes (i.e. the number of bytes to be read from @p src buffer by this function) in the compressed buffer is ok with you.
@param src The buffer to be decompressed. @param srcsize The size of the buffer to be decompressed. @param dest The buffer where the decompressed data will be put. @param destsize The size of the @p dest buffer.
@return The number of bytes decompressed. If an error occurs, e.g. the compressed data is corrupted or the output buffer is not large enough, then a negative value will be returned instead.