Trying to make https://github.com/kaitai-io/kaitai_struct_cpp_stl_runtime/pull/48 work - would be great to have access to #OpenBSD or #DragonFly box to test, ideally with various byte order configurations

Currently it seems to be completely broken i.e. tests do not pass even if the bswap16/bswap32/bswap64 functions are used for #FreeBSD and #NetBSD.

After rebasing,

/home/saper/src/kaitai_struct_cpp_stl_runtime/tests/unittest.cpp:36: Failure
Expected equality of these values:
ks.read_f4le()
Which is: -9.6157696e+09
3.14159f
Which is: 3.1415901

#DragonFlyBSD #gtest #byteorder

Make it compile on *BSD by reezer · Pull Request #48 · kaitai-io/kaitai_struct_cpp_stl_runtime

With this change compilation on the BSDs will work.

GitHub
On Endianness

Byte Endianness in computers has been a constant source of conflict for decades. But is there really a clear advantage to one over the other?