Skip to main content

mat_version

Function mat_version 

Source
pub fn mat_version(bytes: &[u8]) -> Result<MatVersion, ErrorsJSL>
Expand description

Tells the version of a MAT-file (SciPy’s get_matfile_version): a level-5 file starts with a 128-byte text header ending in a version and an endian indicator; otherwise the first four bytes are tried as the MOPT of a level-4 variable in each byte order.