asammdf
Read and write ASAM MDF file, simply and efficiently. Currently under development, and not ready for production use.
Features
- Fast, use rust & mmap(todo) to boost parsing and writing speed.
- Support MDFv3(up to 3.3), and MDFv4(up to 4.1).
- For MDF v4.1, support DZ block which compress data using deflate or transpose method.
- Easy to use with multi-thread program.
Examples
Read a MDFv3 file, and then write data which recordindex=0 to console.
use ;
let mut file = new;
file.open.unwrap;
let idblock = file..unwrap;
// MDF file's magic header is "MDF "
assert_eq!;
assert_eq!;
// get all channel blocks out of MDF file
let iter = file..unwrap.into_iter;
// get all record data with recordindex=0 of these channel blocks
let _: = iter.map
.collect;