@Override
    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
        this.baseOffset = Platform.BYTE_ARRAY_OFFSET;
        this.sizeInBytes = in.readInt();
        this.numFields = in.readInt();
        this.baseObject = new byte[sizeInBytes];
        in.readFully((byte[]) baseObject);
    }
Write the bytes of var-length field into ByteBuffer

Note: only work with HeapByteBuffer
indexr-query-opt/src/main/java/io/indexr/query/row/UnsafeRow.java