Closed gutschein closed 3 years ago
Endian is actually bitmask that consist of byte order (LE or BE) and word order (low word first or "high word first")
If you want to set LE+LWF use:
Endian::$defaultEndian = Endian::LITTLE_ENDIAN | Endian::LOW_WORD_FIRST;
Usage wasn't clear for me in the help; i assumed that it wold work as for BIG_ENDIAN.
But with your hint: Works now as expetced! :) Thank you.
Hi Martti,
Endian::$defaultEndian = Endian::LITTLE_ENDIAN_LOW_WORD_FIRST;
I get an exception "Undefined class constant 'LITTLE_ENDIAN_LOW_WORD_FIRST'" Do I have a typo or a missunderstanding about the 4th possible endian option? The other 3 work as expected.