blosc2_schunk_get_slice_buffer

Function blosc2_schunk_get_slice_buffer 

Source
pub unsafe extern "C" fn blosc2_schunk_get_slice_buffer(
    schunk: *mut blosc2_schunk,
    start: i64,
    stop: i64,
    buffer: *mut c_void,
) -> c_int
Expand description

@brief Fill buffer with a schunk slice.

@param schunk The super-chunk from where to extract a slice. @param start Index (0-based) where the slice begins. @param stop The first index (0-based) that is not in the selected slice. @param buffer The buffer where the data will be stored.

@warning You must make sure that you have enough space in buffer to store the uncompressed data.

@return An error code.