Function rsvg::util::utf8_cstr_len

source ·
pub unsafe fn utf8_cstr_len<'a>(start: *const c_char, len: usize) -> &'a str
Expand description

Gets a known-to-be valid UTF-8 string given a pointer to its start and a length.

Safety: start must be a valid pointer, and len bytes starting from it must be valid UTF-8.