How to Convert Endianness in C/C++ in 4 Different Ways
I’m going to show you 4 different ways to convert between big-endian, little endian, and vice versa, starting with the slowest because it’s also the easiest to understand. I’m also going to reveal a gotcha that can really trip you up. And, I’ll show you the best-practise for making endianness handling code work on all […]