fpzip icon indicating copy to clipboard operation
fpzip copied to clipboard

Endianness documentation and support

Open michaeleisel opened this issue 2 years ago • 1 comments

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.

michaeleisel avatar Jun 06 '23 18:06 michaeleisel

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.

lindstro avatar Jun 06 '23 18:06 lindstro