Skip to main content

put_str

Function put_str 

Source
pub fn put_str(payload: &mut [u8], off: usize, s: &str) -> Option<()>
Expand description

Encode a UTF-8 string into payload[off..].

Returns None if the string does not fit.