Function mupdf_sys::fz_new_output

source ·
pub unsafe extern "C" fn fz_new_output(
    ctx: *mut fz_context,
    bufsiz: c_int,
    state: *mut c_void,
    write: fz_output_write_fn,
    close: fz_output_close_fn,
    drop: fz_output_drop_fn
) -> *mut fz_output
Expand description

Create a new output object with the given internal state and function pointers.

state: Internal state (opaque to everything but implementation).

write: Function to output a given buffer.

close: Cleanup function to destroy state when output closed. May permissibly be null.