Function from_reader

Source
pub fn from_reader<R: Read>(reader: R) -> Result<NCMFile, ParseError>
Expand description

Parse the ncm file with reader. Recommended if you have an ncm file opened from File.

ยงExample

// Open file and parse it with `from_reader`
let parsed_ncm_file = ncm_parser::from_reader(std::fs::File::open("xxx.ncm").unwrap()).unwrap();