Function encoding_rs::mem::convert_latin1_to_str [−][src]
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
Panics if the destination buffer is shorter than stated above.