slice_buffer_to_str

Function slice_buffer_to_str 

Source
pub(crate) unsafe fn slice_buffer_to_str(
    buf: &[MaybeUninit<u8>],
    offset: usize,
) -> &str
Expand description

This function converts a slice of ascii characters into a &str starting from offset.

ยงSafety

buf content starting from offset index MUST BE initialized and MUST BE ascii characters.