Skip to main content

pack_string

Function pack_string 

Source
pub fn pack_string(payload: &str) -> Vec<u8> ⓘ
Expand description

Pack a string as a top-level STRING element (UTF-8 bytes with the same escaping as pack_bytes).