Ncmdump.rs

Credit

Origin

Binary Usage

Simple usage

shell ncmdump -f [files ...]

More options

``` USAGE: ncmdump [FLAGS] [OPTIONS]

FLAGS: -h, --help Prints help information -i, --info Only show the information of files -V, --version Prints version information -v, --verbose Verbosely list files processing

OPTIONS: -f, --files ... Specified the files -o, --output Specified the output directory ```

Library Usage

Install

You can add this to your Cargo.toml:

toml ncmdump = "0.3.0"

Also, you can use this command to install this crate, if you installed cargo-edit

shell cargo add ncmdump

Simple Usage

```rust use std::fs::File; use std::path::Path;

use anyhow::Result; use ncmdump::Ncmdump;

fn main() -> Result<()> { use std::io::Write; let file = File::open("tests/test.ncm")?; let mut ncm = Ncmdump::fromreader(file)?; let music = ncm.getdata()?; let mut target = File::options() .create(true) .write(true) .open("tests/test.flac")?; target.write_all(&music)?; Ok(()) } ```

For more usage, please check the document.