GitHub - a2gs/byteOrderDetector: Return a the machine bype order: big-endian or little-endian · GitHub
Skip to content

a2gs/byteOrderDetector

Folders and files

Repository files navigation

byteOrderDetector

Return a the machine bype order: big-endian or little-endian

Big-endian:

32bit Integer:
+----+----+----+----+
| 0A | 0B | 0C | 0D |
+----+----+----+----+
Memory:
a-1 ...
a   | 0A |
a+1 | 0B |
a+2 | 0C |
a+3 | 0D |
a+4  ...

Little-endian:

32bit Integer:
+----+----+----+----+
| 0A | 0B | 0C | 0D |
+----+----+----+----+
Memory:
a-1 ...
a   | 0D |
a+1 | 0C |
a+2 | 0B |
a+3 | 0A |
a+4  ...

About

Return a the machine bype order: big-endian or little-endian

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors