Type Alias CompressIoCallback
Source pub type CompressIoCallback = Option<unsafe extern "C" fn(context: *mut c_void, buffer: *mut u8, size: usize) -> i32>;
Expand description
I/O callback for streamed compression/decompression
§Arguments
context - user context
buffer - buffer to read/write
size - size of buffer
§Returns
number of bytes read/written, 0 on end of stream, negative on error
pub enum CompressIoCallback {
None,
Some(unsafe extern "C" fn(*mut c_void, *mut u8, usize) -> i32),
}