@Override
  public PositionedByteRange put(int index, byte[] val) {
    if (0 == val.length) return this;
    return put(index, val, 0, val.length);
  }
Update the length of this range. {@code offset + length} should not be greater than
{@code bytes.length}. If {@code position} is greater than the new {@code length}, sets
{@code position} to {@code length}. The new length of this range.
@return this.
hbase-common/src/main/java/org/apache/hadoop/hbase/util/SimplePositionedMutableByteRange.java