Skip to main content

encode_string

Function encode_string 

Source
pub fn encode_string(s: &str) -> Vec<u8> 
Expand description

Encode a UTF-8 string as a length-prefixed byte sequence.

Format: [length: u32 LE][UTF-8 bytes]