public byte[] copyBytes() {
    return Arrays.copyOfRange(bytes, offset, offset + length);
  }
Returns a copy of the bytes referred to by this writable
hbase-common/src/main/java/org/apache/hadoop/hbase/util/Bytes.java