summaryrefslogtreecommitdiffstats
path: root/test/cdata.test
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2017-01-18 21:18:58 +0100
committerGravatar Nikias Bassen2017-01-18 21:18:58 +0100
commit82501db7920d231d763e7a263f2678f494dc754f (patch)
tree9bfaeba745317301951ffd043a623b2d1cc50a38 /test/cdata.test
parentb32194d96ee4a54f07d98042bd204e52774a6a51 (diff)
downloadlibplist-82501db7920d231d763e7a263f2678f494dc754f.tar.gz
libplist-82501db7920d231d763e7a263f2678f494dc754f.tar.bz2
bplist: Improve UINT_TO_HOST macro, remove uint24_from_be function
The uint24_from_be function used memcpy and a call to byte_convert. Instead the macro now shifts the data appropriately with a new beNtoh macro that eventually uses be64toh. This commit also fixes the problem where binary plist data with other non-power-of-2 sizes (like 5,6, or 7) where not handled correctly, and actually supports sizes larger than 8 bytes though only the last 8 bytes are actually converted (nobody will come up with such a large plist anyway).
Diffstat (limited to 'test/cdata.test')
0 files changed, 0 insertions, 0 deletions