Skip to content

suggestion: disallowing users to change endianness and validating data when using write method #2

@ehgus

Description

@ehgus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions