Function encoding_rs::mem::convert_latin1_to_str_partial
source · [−]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 with potentially insufficient output space.
Returns the number of bytes read and the number of bytes written.
If the output isn’t large enough, not all input is consumed.