public int encode(PositionedByteRange dst, byte[] val, int voff, int vlen) {
    return OrderedBytes.encodeBlobVar(dst, val, voff, vlen, order);
  }
Write a subset of {@code val} to {@code dst}.
@param dst  the {@link PositionedByteRange} to write to
@param val  the value to write to {@code dst}
@param voff the offset in {@code dst} where to write {@code val} to
@param vlen the lenght of {@code val}
@return the number of bytes written
hbase-common/src/main/java/org/apache/hadoop/hbase/types/OrderedBlobVar.java