No, you've made things worse. buf needs to always be u_char * or u_char * &. u_char & is completely different.
Try again and/or reread what I wrote. You want $buf to hold an opaque UV that gets converted to/from a u_char *. Some of your calls should pass a reference to this u_char * rather than passing the u_char * directly (that is what the "&" is for). Those routines are the ones that might change the pointer (by allocating or reallocating the memory) and are also the ones that need buf mentioned in the OUTPUT: section.
- tye (but my friends call me "Tye")In reply to (tye)Re5: XS question: typemap for a pointer to a pointer?
by tye
in thread XS question: typemap for a pointer to a pointer?
by Big Willy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |