Skip to main content

decode

Function decode 

Source
pub fn decode(bytes: &[u8]) -> String
Expand description

Decodes Mac OS Roman bytes.

The encoding has a mapping for all 256 bytes. Thus this function never writes a replacement character. Encoding::defines_every_byte gives the same data for all encodings. The test every_byte_is_defined checks it.