Skip to main content

decode_file

Function decode_file 

Source
pub fn decode_file(
    in_path: impl AsRef<Path>,
    out_path: impl AsRef<Path>,
    dict_path: impl AsRef<Path>,
) -> Result<usize, PreprocessError>
Expand description

Streams a big-endian u16 token file back to its original raw file using dict_path.

ยงErrors

Returns PreprocessError on I/O error, odd file length, or out-of-range symbol ID.