I'm calling a set of C# functions from a Python 3.10 script via the clr
module from the PythonNet
library. One of those functions returns a pointer of type System.Reflection.Pointer
, that points to an array of float
values.
I'm quite a bit confused as to how I'm exactly supposed to acquire or access the actual float
array that the System.Reflection.Pointer
variable is supposedly pointing to.
In my Visual Studio 2022 IDE, I can see that the pointer variable has a few class functions, such as ToString()
or Unbox()
, however none of those give me the desired float
array.
What is the proper way of accessing the data pointed to by a System.Reflection.Pointer
variable in Python?
Thanks for reading my post, any guidance is appreciated.