pub fn encode_wtf8_single(int_value: u32) -> Result<Vec<u8>>Expand description
Encode a single Unicode codepoint as WTF-8 byte array.
Returns a Vec<u8> containing the WTF-8 encoding of the codepoint.
Surrogates and non-scalar values are encoded as WTF-8 allows.
Values higher than 0x10FFFF are not supported.