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

Modules§

data
read
write

Enums§

Sane
A Sane array is an array with dynamic shape and elements of one of the supported data types

Traits§

ReadSane
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
SaneData
An element type with the SaneData trait defines which of the supported data types it corresponds to
WriteSane
To be able to write SANE data we need to be able to convert an element to a byte sequence

Functions§

read_sane
Parse a SANE-encoded file into an array with known type and rank
read_sane_arrays
Parse multiple SANE-encoded arrays from a file
read_sane_arrays_dyn
Parse multiple SANE-encoded arrays each with dynamic data type and rank
read_sane_dyn
Parse a SANE-encoded file into an array with dynamic type and rank
write_sane
Write array into a SANE-encoded file
write_sane_arrays
Write multiple SANE-encoded arrays to a file
write_sane_arrays_dyn
Write multiple SANE-encoded arrays to a file, each with a dynamic shape and data type
write_sane_arrays_io
Write multiple SANE-encoded arrays to a file, returning std::io::Errors
write_sane_io
Write array into SANE-encoded file, returning std::io::Errors