fpzip
fpzip copied to clipboard
Endianness documentation and support
I don't see any mention of endianness in the docs or fpzip -h, and I'm trying to understand if it supports either endianness and if so how to toggle it. I tried it on both little-endian and big-endian versions of my data and got a much better compression ratio for big-endian data, so perhaps it only supports big-endian? Curious to understand better.
The command-line utility and API assume the file/memory buffer to compress is in native byte order. If it isn't, then you need to byte swap the data. The data returned by the decompressor also will be in native byte order.