[−][src]Crate ncmdump
This is a simple way to decrypt the ncm file.
Install
You can add this to your Cargo.toml
:
ncmdump = "0.1.0"
Also, you can use this command to install this crate, if you installed cargo-edit
cargo add ncmdump
Usage
extern crate ncmdump; use std::error::Error; use std::fs::{read, write}; use std::path::Path; fn main() -> Result<(), Box<dyn Error>> { let input_path = Path::new("tests/test.ncm"); let output_path = Path::new("tests/test.flac"); let buffer = read(&input_path)?; let data = ncmdump::convert(&buffer)?; write(&output_path, data)?; Ok(()) }
Modules
error |
Structs
Modify |
Functions
convert | Decode the buffer of ncm file.
Return a Result containing a Vec |
get_info | Get modify information from a buffer of ncm file. Return a Result containing a Modify struct. |