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.