@Override
  public int putVLong(int index, long val) {
    int rPos = 0;
    while (true) {
      if ((val & ~0x7F) == 0) {
        bytes[offset + index + rPos] = (byte) val;
        break;
      } else {
        bytes[offset + index + rPos] = (byte) ((val & 0x7F) | 0x80);
        val >>>= 7;
      }
      rPos++;
    }
    clearHashCache();
    return rPos + 1;
  }
Create a new {@code ByteRange} over the provided {@code bytes}. The array to wrap. The offset
into {@code bytes} considered the beginning of this range. The length of this range.
hbase-common/src/main/java/org/apache/hadoop/hbase/util/SimpleMutableByteRange.java