Skip to content Skip to sidebar Skip to footer
Showing posts with the label Pointers

Ctypes: Get A Pointer To A Struct Field

I need to get a pointer with the address of a struct field. Important: I'm builduing a serializ… Read more Ctypes: Get A Pointer To A Struct Field

Swig Function With Pointer Struct

Im new using SWIG to wrapped C shared library. I have problem to call a C function with Struct poin… Read more Swig Function With Pointer Struct

Pointer-type Mismatch With Pyarray_simplenew

I am creating a module for Python with Numpy using the C API and encounter weird incompatibilities … Read more Pointer-type Mismatch With Pyarray_simplenew

How Do I Convert A Pointer Returned By A C Function Invoked Using Ctypes Into A Numpy Array?

I have a function in C which returns an array of data and its length. Everything compiles and works… Read more How Do I Convert A Pointer Returned By A C Function Invoked Using Ctypes Into A Numpy Array?

How To Pass A 2d Array From Python To C?

I'm trying to pass a 2d array from Python to C, using ctypes. The array dtype is uint16. I wrot… Read more How To Pass A 2d Array From Python To C?

Cython Implementation No Faster Than Pure Python

For an exercise I've written a XOR doubly-linked list %%cython from cpython.object cimport PyO… Read more Cython Implementation No Faster Than Pure Python