// Try switching byte order during parsing. [[prefix]] 0: // Read as a number and written in big endian order. // 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 0x0102030405060708090a0b0c0d0e0f/16 [[little_endian]] // Read as a number and written in little endian order. // 0f 0e 0d 0c 0b 0a 09 08 07 06 05 04 03 02 01 00 0x0102030405060708090a0b0c0d0e0f/16 [[big_endian]] // Read as a number and written in big endian order. // 00 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff 0x112233445566778899aabbccddeeff/16 [[little_endian]] // Read as a number and written in little endian order. // ff ee dd cc bb aa 99 88 77 66 55 44 33 22 11 00 0x112233445566778899aabbccddeeff/16 [[no-prefix]] // Without prefixes, we assume the bytes are given in the default byte order. This is the same // as the prefixed digits if big endian is used, but is opposite if little endian is used. [[big_endian]] // We assume byte groups are written in big endian order, so this is read as the following sequence. // 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f // The bytes are then written out in that order. 000102030405060708090a0b0c0d0e0f [[little_endian]] // We assume byte groups are written in little endian order, so this is read as the following sequence. // 0f 0e 0d 0c 0b 0a 09 08 07 06 05 04 03 02 01 00 // The bytes are then written out in that order. 000102030405060708090a0b0c0d0e0f [[big_endian]] // We assume byte groups are written in big endian order, so this is read as the following sequence. // 00 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff // The bytes are then written out in that order. 00112233445566778899aabbccddeeff [[little_endian]] // We assume byte groups are written in little endian order, so this is read as the following sequence. // ff ee dd cc bb aa 99 88 77 66 55 44 33 22 11 00 // The bytes are then written out in that order. 00112233445566778899aabbccddeeff // Expected byte sequence (in 16 byte chunks) // 00000000: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f // ................ // 00000010: 0f 0e 0d 0c 0b 0a 09 08 07 06 05 04 03 02 01 00 // ................ // 00000020: 00 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff // .."3DUfw........ // 00000030: ff ee dd cc bb aa 99 88 77 66 55 44 33 22 11 00 // ........wfUD3".. // 00000040: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f // ................ // 00000050: 0f 0e 0d 0c 0b 0a 09 08 07 06 05 04 03 02 01 00 // ................ // 00000060: 00 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff // .."3DUfw........ // 00000070: ff ee dd cc bb aa 99 88 77 66 55 44 33 22 11 00 // ........wfUD3"..