public byte[] decode(PositionedByteRange src, int length) {
    byte[] val = new byte[length];
    src.get(val);
    return val;
  }
Read a {@code byte[]} from the buffer {@code src}.
@param src    the {@link PositionedByteRange} to read the {@code byte[]} from
@param length the length to read from the buffer
@return the {@code byte[]} read from the buffer
hbase-common/src/main/java/org/apache/hadoop/hbase/types/RawBytes.java