Moving this issue from https://github.com/HdrHistogram/HdrHistogramJS/issues/2 (I haven't quite located where the bug is here yet, or if it belongs upstream but it definitely doesn't seem to belong where I first left it). ``` virtualenv --python pypy hdrh && hdrh/bin/pip install hdrhistogram && hdrh/bin/python -c 'from hdrh.histogram import HdrHistogram; print HdrHistogram(1, 2, 3).encode()'; rm -rf hdrh ``` produces a histogram which is encoded using the wrong endianness (and therefore cannot be decoded with other HDR histogram tools.) #12 is tangentially related.