mirror of
https://github.com/odin-lang/Odin.git
synced 2026-07-22 15:32:35 +00:00
The decoder already detects endianness from the magic word and byte-swaps each word; strings are read from word values, so both endiannesses decode. Lock it in: the round-trip helper now also byte-swaps every word to big-endian, decodes, and asserts the re-encoding reproduces the original little-endian bytes -- across all 5 cases.