Type Alias xmlOutputWriteCallback

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

xmlOutputWriteCallback: @context: an Output context @buffer: the buffer of data to write @len: the length of the buffer in bytes

Callback used in the I/O Output API to write to the resource

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

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.