pub type tamp_callback_t = Option<unsafe extern "C" fn(user_data: *mut c_void, bytes_processed: usize, total_bytes: usize) -> c_int>;Expand description
User-provied callback to be invoked after each compression cycle in the higher-level API. @param[in,out] user_data Arbitrary user-provided data. @param[in] bytes_processed Number of input bytes consumed so far. @param[in] total_bytes Total number of input bytes.
@return Some error code. If non-zero, abort current compression and return the value. For clarity, is is recommend to avoid already-used tamp_res values. e.g. start custom error codes at 100.
Aliased Type§
pub enum tamp_callback_t {
None,
Some(unsafe extern "C" fn(*mut c_void, usize, usize) -> i32),
}