Yeah, but what I meant is actually different from endianness. The bytes are swapped, so for example 1u32 would be serialized as 00000001 00000000 00000000 0000000 (note the 1 in first b) Here it says it happens only for small values, probably they mean integer types? (at least this is my experience)