Crate sane_array
source ·Expand description
Read and write SANE-encoded arrays
This is an implementation of the Simple Array of Numbers Encoding (SANE) specification at: https://github.com/considerate/sane
Traits
- To be able read SANE-encoded data we need to be able convert the
Vec<u8>
of little-endian data to the corresponding vector of values - To be able to write SANE data we need to be able to convert an element to a byte sequence
Functions
- Parse a SANE-encoded file into an array with known type and rank
- Parse a SANE-encoded file into an array with dynamic type and rank
- Write array into a SANE-encoded file