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

Return List Of New Custom-class Objects In Python C Api

I need to create a new list via the python C API containing new copies of objects of a Quaternion c… Read more Return List Of New Custom-class Objects In Python C Api

How To Pass Pointer Back In Ctypes?

Don't know much about ctypes, just recently began working with it. I have a simple function in … Read more How To Pass Pointer Back In Ctypes?

Python Ctypes Passing In Pointer And Getting Struct Back

This is a simple example of something I'm trying to get working before tackling an actual usefu… Read more Python Ctypes Passing In Pointer And Getting Struct Back

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?

What Is The Correct Pointer Type To Return From A Ctypes Callback?

I have a ctypes callback that takes a pointer to two doubles from the dll and returns a pointer to … Read more What Is The Correct Pointer Type To Return From A Ctypes Callback?

How Do I Wrap This C Function, With Multiple Arguments, With Ctypes?

I have the function prototype here: extern 'C' void __stdcall__declspec(dllexport) ReturnPu… Read more How Do I Wrap This C Function, With Multiple Arguments, With Ctypes?