fz_slice_buffer

Function fz_slice_buffer 

Source
pub unsafe extern "C" fn fz_slice_buffer(
    ctx: *mut fz_context,
    buf: *mut fz_buffer,
    start: i64,
    end: i64,
) -> *mut fz_buffer
Expand description

Create a new buffer with a (subset of) the data from the buffer.

start: if >= 0, offset from start of buffer, if < 0 offset from end of buffer.

end: if >= 0, offset from start of buffer, if < 0 offset from end of buffer.