This is for the purposes of testing only. Correct?
If so, then dodge the bullet. Store your test data file as ASCII.
Within your test script, load the ASCII and pack it using the various "Native format" specifiers.
This will generate your binary data correctly regardless of what platform you run it on. Supply the packed data to your test.
Result: Your tests are platform independent, and you've exercised your binary interpretation routines.
In reply to Re: Test and endianness
by BrowserUk
in thread Test and endianness
by andreas1234567
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |