@Override
  public void write(ByteBuffer src, long offset) throws IOException {
    bufferArray.write(offset, ByteBuff.wrap(src));
  }
Transfers data from the given {@link ByteBuffer} to the buffer array. Position of source will
be advanced by the {@link ByteBuffer#remaining()}.
@param src    the given byte buffer from which bytes are to be read.
@param offset The offset in the ByteBufferArray of the first byte to be written
@throws IOException throws IOException if writing to the array throws exception
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/ByteBufferIOEngine.java