public byte[] getBytesCopy() throws IOException {
    lazyDecompress();
    byte[] bb = new byte[length];
    System.arraycopy(bytes, start, bb, 0, length);
    return bb;
  }
Returns a copy of the underlying bytes referenced by this instance.

@return a new copied byte array
@throws IOException
serde/src/java/org/apache/hadoop/hive/serde2/columnar/BytesRefWritable.java