public void writeTo(ByteBuffer buffer) {
        assert (buffer.hasArray());
        byte[] target = buffer.array();
        int offset = buffer.arrayOffset();
        int pos = buffer.position();
        writeToMemory(target, Platform.BYTE_ARRAY_OFFSET + offset + pos);
        buffer.position(pos + sizeInBytes);
    }
Writes the content of this row into a memory address, identified by an object and an offset.
The target memory address must already been allocated, and have enough space to hold all the
bytes in this string.
indexr-query-opt/src/main/java/io/indexr/query/row/UnsafeRow.java