encode_be_utf8_char

Function encode_be_utf8_char 

Source
pub fn encode_be_utf8_char(val: char, buf: &mut [u8; 4]) -> Result<&[u8], Error>
Expand description

Encodes the character into the provided buffer using UTF-8. A subslice of the provided buffer is returned providing the amount of buffer actually used.