Function mupdf_sys::fz_read_all
source · pub unsafe extern "C" fn fz_read_all(
ctx: *mut fz_context,
stm: *mut fz_stream,
initial: usize
) -> *mut fz_buffer
Expand description
Read all of a stream into a buffer.
stm: The stream to read from
initial: Suggested initial size for the buffer.
Returns a buffer created from reading from the stream. May throw exceptions on failure to allocate.