Skip to main content

read_str_unchecked

Function read_str_unchecked 

Source
pub unsafe fn read_str_unchecked(
    data: &[u8],
    offset: usize,
) -> Option<(&str, usize)>
Expand description

ยงSafety

Caller must ensure the 4-byte length prefix is readable and, when present, the following bytes are valid UTF-8.