pub unsafe extern "C" fn fz_terminate_buffer(
    ctx: *mut fz_context,
    buf: *mut fz_buffer
)
Expand description

Zero-terminate buffer in order to use as a C string.

This byte is invisible and does not affect the length of the buffer as returned by fz_buffer_storage. The zero byte is written after the data, and subsequent writes will overwrite the terminating byte.

Subsequent changes to the size of the buffer (such as by fz_buffer_trim, fz_buffer_grow, fz_resize_buffer, etc) may invalidate this.