You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current write method convert data endianness by looking at header.machst https://github.com/sethaxen/MRC.jl/blob/ccce338315ff59d90872f3d21a813bf4347986ea/src/io.jl#L93-L107
This looks unsafe because user manually can change header.machst to decide its store endianness format.
My suggestion is that users is meant to be not allowed to change its endianness manually and write method do validation check to prevent such manual changes.
I'd like to change the code this way if you like this alternative.