pub unsafe extern "C" fn fz_new_asciihex_output(
    ctx: *mut fz_context,
    chain: *mut fz_output
) -> *mut fz_output
Expand description

Compression and other filtering outputs.

These outputs write encoded data to another output. Create a filter output with the destination, write to the filter, then close and drop it when you’re done. These can also be chained together, for example to write ASCII Hex encoded, Deflate compressed, and RC4 encrypted data to a buffer output.

Output streams don’t use reference counting, so make sure to close all of the filters in the reverse order of creation so that data is flushed properly.

Accordingly, ownership of ‘chain’ is never passed into the following functions, but remains with the caller, whose responsibility it is to ensure they exist at least until the returned fz_output is dropped.