fz_string_content_with_len

Function fz_string_content_with_len 

Source
pub unsafe fn fz_string_content_with_len(
    fzstr: *mut fz_string_t,
    len_out: *mut usize,
) -> *const c_char
Expand description

Get the content of the string as a pointer and length.

This function can return any string, even one including NUL bytes or invalid UTF-8. If the FzString is the Null variant, this returns NULL and the length is set to zero.

§Safety

The returned string is “borrowed” and remains valid only until the fz_string_t is freed or passed to any other API function.

const char *fz_string_content_with_len(const struct fz_string_t *, len_out *usize);