Skip to main content

write_string

Function write_string 

Source
pub fn write_string<K: Sink, P: CountPrefix>(
    s: &str,
    w: &mut K,
) -> Result<(), BitError>
Expand description

Writes the P byte-length prefix, then the string’s UTF-8 bytes.

§Errors

Convert when the byte length exceeds the prefix’s range (checked — never a silently wrapped length).