Function encoding_rs::mem::convert_latin1_to_utf16 [−][src]
Expand description
Converts bytes whose unsigned value is interpreted as Unicode code point (i.e. U+0000 to U+00FF, inclusive) to UTF-16.
The length of the destination buffer must be at least the length of the source buffer.
The number of u16
s written equals the length of the source buffer.
Panics
Panics if the destination buffer is shorter than stated above.