2 Sep 2010 04:28
Re: I/O C library wrapping
THOTH <anaryusifov <at> gmail.com>
2010-09-02 02:28:23 GMT
2010-09-02 02:28:23 GMT
Hello, Everyone.
Let me repeat the question in a shorter form.
How I can access the following functions of my shared library:
1. Pointer based array get/put data:
int mylib_read(
BIN_TAG bin_tag,
void *buf,
int count)
// bin_tag, count - are input integer parameters, buf - is
the array where data will be stored after processing
2. int cdds_write(
BIN_TAG bin_tag,
const void *buf,
int count)
// now they all input parameters, but I still don't know how to pass
void buff from python to my functions and vise versa.
I use the following code (it's not copy paste so typos can appear -
sorry) with no success:
import cython
cdef extern from "cdds.h":
int mylib_read(int bin_tag, void *buf, int count)
def plib_read(int bin_tag, int count):
cdef int t
(Continue reading)
RSS Feed