Skip to content

Why forcing little endian? #81

@ziyuang

Description

@ziyuang

At https://github.com/rogersce/cnpy/blob/master/cnpy.cpp#L94, I can see

loc1 = header.find("descr")+9;
bool littleEndian = (header[loc1] == '<' || header[loc1] == '|' ? true : false);
assert(littleEndian);

Why is there a constraint?

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