public int decodeVarBits2() throws IOException {
        int range = 0;
        while (!decodeBit()) {
            range = 2 * range + 1;
        }
        return range + decodeBounded(range);
    }
DataInputStream for decoding fast-compact encoded number sequences

@author ab
main/src/main/java/cgeo/geocaching/brouter/util/MixCoderDataInputStream.java