@Override
        void underflow() throws IOException {
            code = (code & TOP_MASK) | ((code << 1) & (MASK >>> 1)) | readCodeBit();
        }
Must be called at the end of the stream of input symbols, otherwise the output data
cannot be decoded properly.
indexr-segment/src/main/java/io/indexr/compress/ArthmeticCoder.java