@Override
  public ByteRange putShort(int index, short val) {
    // This writing is same as BB's putShort. When byte[] is wrapped in a BB and
    // call putShort(),
    // one can get the same result.
    bytes[offset + index + 1] = (byte) val;
    val >>= 8;
    bytes[offset + index] = (byte) val;
    clearHashCache();
    return this;
  }
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