@Override
  public void write(final DataOutput out) throws IOException {
    out.writeInt(this.length);
    out.write(this.bytes, this.offset, this.length);
  }
Return the offset into the buffer.
hbase-common/src/main/java/org/apache/hadoop/hbase/io/ImmutableBytesWritable.java