I have python ctypes array. I would like to use it in cython def and cdef functions.
import ctypes
from my_cython_extention import *
class Test_Node(ctypes.Structure):
_fields_ = [
("i", ctypes.c_int),
("f", ctypes.c_float),
]
my_array = (Test_Node * 10)()
my_cython_function(my_array)
How should I define cython function my_cython_function to access my_array data? Can I get my_array C++ data pointer?