public byte[] getBytes() {
        if (baseObject instanceof byte[] && baseOffset == Platform.BYTE_ARRAY_OFFSET
                && (((byte[]) baseObject).length == sizeInBytes)) {
            return (byte[]) baseObject;
        } else {
            byte[] bytes = new byte[sizeInBytes];
            Platform.copyMemory(baseObject, baseOffset, bytes, Platform.BYTE_ARRAY_OFFSET, sizeInBytes);
            return bytes;
        }
    }
Returns the underlying bytes for this UnsafeRow.
indexr-query-opt/src/main/java/io/indexr/query/row/UnsafeRow.java