pub fn convert_latin1_to_str(src: &[u8], dst: &mut str) -> usize
Expand description

Converts bytes whose unsigned value is interpreted as Unicode code point (i.e. U+0000 to U+00FF, inclusive) to UTF-8 such that the validity of the output is signaled using the Rust type system.

The length of the destination buffer must be at least the length of the source buffer times two.

Returns the number of bytes written.


Panics if the destination buffer is shorter than stated above.