blosc2_chunk_repeatval

Function blosc2_chunk_repeatval 

Source
pub unsafe extern "C" fn blosc2_chunk_repeatval(
    cparams: blosc2_cparams,
    nbytes: i32,
    dest: *mut c_void,
    destsize: i32,
    repeatval: *const c_void,
) -> c_int
Expand description

@brief Create a chunk made of repeated values.

@param cparams The compression parameters. @param nbytes The size (in bytes) of the chunk. @param dest The buffer where the data chunk will be put. @param destsize The size (in bytes) of the @p dest buffer. @param repeatval A pointer to the repeated value (little endian). The size of the value is given by @p cparams.typesize param.

@return The number of bytes compressed (BLOSC_EXTENDED_HEADER_LENGTH + typesize). If negative, there has been an error and @p dest is unusable.