Is this the correct was to test for endianness? I’m running Ubuntu on a Surface Pro 3, which is little endian, however VSTGUI reports that it’s big endian.
if constexpr(ByteOrder::kNativeByteOrder == ByteOrder::kLittleEndianByteOrder) {
// System using litttle endian
}
else {
// System using big endian
}
rjonkman@rjonkman-Surface-Pro-3:~/coding/VST_3.7.5/build$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian