Accessing System.Reflection.Pointer from python
I'm using pythonnet to access functions from a managed dll. One of the functions in the dll should return a float pointer (float*). When i call this function with pythonnet, it returns a System.Reflection.Pointer. Anyone an idea how I could get the actual data (an array of floats) from this pointer in python? Loading dll: import clr clr.AddReference(r"C:\Program Files\Thorlabs\Thorlabs OSA\ThorlabsOSAWrapper.dll") from ThorlabsOSAWrapper import * Calling function from dll: # x_values should be a float* but i get a System.Reflection.Pointer x_values = spectrum.GetXArray() 来源: https:/