Type Alias xmlInputReadCallback

Source
pub type xmlInputReadCallback = Option<unsafe extern "C" fn(context: *mut c_void, buffer: *mut c_char, len: c_int) -> c_int>;
Expand description

xmlInputReadCallback: @context: an Input context @buffer: the buffer to store data read @len: the length of the buffer in bytes

Callback used in the I/O Input API to read the resource

Returns the number of bytes read or -1 in case of error

Aliased Type§

enum xmlInputReadCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut i8, _: i32) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: *mut i8, _: i32) -> i32)

Some value of type T.