Re:Have you ever hurt yourself from your own code?
by AnIdiotOnTheNet on Wednesday May 26, 2021 @10:06PM
(#27298548)
But they could have just as easily said the integer value for "WAVE" was 0x45564157 in LE and been perfectly consistent.
The fields the diagram in the article marks as “big endian” are ASCII text— four-byte strings with specific content (“RIFF” for the first ChunkID, “WAVE” for the Format, etc.). If you wanted to treat those as integers in your code, you’d need to treat them as big-endian so their byte order doesn’t get reversed, but they’re really four-byte sequences, not numbers.