Skip to main content

encode_utf8

Function encode_utf8 

Source
pub fn encode_utf8(s: &str, buf: &mut BytesMut)
Expand description

Encode a UTF-8 string.

Format: len: u16 (little-endian) + len bytes of UTF-8