mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This change fixes the ExponentialGrowthAppendingBinaryByteStream tests on big endian machines. Force ExponentialGrowthAppendingBinaryByteStreams to use little- endian byte order. We always used little-endian byte order anyway and it seems very unlikely we'll need the flexibility to make the stream big-endian in the future. The benefit of this is that we can use portable APIs while still allowing the compiler to remove conditional byte swaps. Also replace writeRaw with writeInteger and make it explicitly little-endian to make the API cleaner and more portable.
6.7 KiB
6.7 KiB