pub fn encode_codepoint(out: &mut Vec<u8>, cp: u32, order: ByteOrder)
Encode a scalar (including a surrogate) as one or two UTF-16 units.