You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Jul 13, 2009, at 6:47 AM, Eric Eisner wrote:
Hi,
I was working on a wrapper for a c function that took an unsigned
char* and its length (the string could have null bytes, so it needs a
specific length). I was having some trouble getting cython to compile
a simple conversion of string to unsigned char*, the way I eventually
got it to work is:
udata = <unsigned char*><char*>pydata
This was a surprising requirement that took me a while to figure out.
Is it intentional that strings cannot be directly cast to unsigned
char?
Migrated from http://trac.cython.org/ticket/359
The text was updated successfully, but these errors were encountered: