aboutsummaryrefslogtreecommitdiff
path: root/src/p2p
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-05-16 14:56:20 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-09-04 14:54:00 +0000
commitc1fa4a7f8c6d30442815b095f92d1c8fb66936f3 (patch)
tree99210425bb63d69a990fba62663f57e99f83c77e /src/p2p
parentslow-hash: fix CNv2+ on big endian (diff)
downloadmonero-c1fa4a7f8c6d30442815b095f92d1c8fb66936f3.tar.xz
boost: fix little/big endian compatibility
When no little/big endian flag is given to the writer, it stores data in host endianness. When loading, if no flag is set, it also assumes host endianness. This works as long as the loading and writing are done on machines with the same endianness. We change this to default to little endian when saving. This will cause the loader to see the little endian flag, and swap endianness when loading on a big endian machine. Similarly, writing on a big endian machine will swap on save, and a little endian machine will load little endian data.
Diffstat (limited to 'src/p2p')
0 files changed, 0 insertions, 0 deletions