@Override
  public PositionedByteRange set(int capacity) {
    this.position = 0;
    super.set(capacity);
    this.limit = capacity;
    return this;
  }
Create a new {@code PositionedByteRange} 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/SimplePositionedMutableByteRange.java