public final int decodeBitsReverse(int count) {
        fillBuffer();
        int value = 0;
        while (count > 8) {
            value = (value << 8) | reverse_byte[b & 0xff];
            b >>= 8;
            count -= 8;
            bits -= 8;
            fillBuffer();
        }
        value = (value << count) | reverse_byte[b & 0xff] >> (8 - count);
        bits -= count;
        b >>= count;
        return value;
    }
decode an integer in the range 0..max (inclusive).

@see #encodeBounded
main/src/main/java/cgeo/geocaching/brouter/util/BitCoderContext.java