@Override
  public long getVLong(int index) {
    int shift = 0;
    long result = 0;
    while (shift < 64) {
      final byte b = get(index++);
      result |= (long) (b & 0x7F) << shift;
      if ((b & 0x80) == 0) {
        break;
      }
      shift += 7;
    }
    return result;
  }
Returns true when {@code range} is of zero length, false otherwise.
hbase-common/src/main/java/org/apache/hadoop/hbase/util/AbstractByteRange.java