On Jul 24, 5:01 pm, Thomas Heller [EMAIL PROTECTED] wrote:
waldekschrieb:
Hi,
I'm using C dll with py module and wanna read value (buffer of bytes)
returned in py callback as parameter passed to dll function.
The callback receives a pointer instance. You can dereference the pointer
to
waldek [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Jul 24, 5:01 pm, Thomas Heller [EMAIL PROTECTED] wrote:
waldekschrieb:
Hi,
I'm using C dll with py module and wanna read value (buffer of bytes)
returned in py callback as parameter passed to dll function.
The callback
Hi,
I'm using C dll with py module and wanna read value (buffer of bytes)
returned in py callback as parameter passed to dll function.
--
def mycallback(data, size):
# how to read data buffer here ?
return 0
cbfunc = CFUNCTYPE(c_int,
waldek schrieb:
Hi,
I'm using C dll with py module and wanna read value (buffer of bytes)
returned in py callback as parameter passed to dll function.
The callback receives a pointer instance. You can dereference the pointer
to read individual bytes in this way:
print data[0], data[5],