GDExtension And Array Allocated On Heap

Godot Version

4.3

Question

I want to use an array allocated on the heap in C/C++, such as

int *x

How do I pass/receive an array whose size is not determined at compile time?