iff_rs is a simple IFF reader library made in Rust. It reads IFF files, skips the FORM at the beginning, and returns:
- The amount of chunks
- A vector with all of the chunks
This is an example on how to use iff_rs, the iff file in this example has 2 chunks.
- The FORM chunk, which is 8 bytes long, and
- The DATA chunk, which is 4 bytes long and contains the string 'abcd'
The data in the chunks is stored as a Vec
use parse_iff;
use String;
This code will output 'abcd'.