2 ms·
> When programming, it is still important to write code that runs correctly on systems with either byte order Eh, is it? There aren't any big endian systems le
by IshKebab 7mo ago
> When programming, it is still important to write code that runs correctly on systems with either byte order
Eh, is it? There aren't any big endian systems left that matter for anyone that isn't doing super niche stuff. Unless you are writing a really foundation library that you want to work everywhere (like libc, zlib, libpng etc.) you can safely just assume everything is little endian. I usually just put a static_assert that the system is little endian for C++.