Hello All.


I’ve been evaluating swig and gotten pretty far using just the Doc on typemaps, but now I’m stuck. I have a C function the has an unsigned char array as an out parameter, i.e. Foo(unsigned char **buf, unsigned int *bufLen);.

I’ve hit a stone wall in terms of type mapping this. I actually have a few functions that do this, with this type, and was hoping to write a generic typemap that would allow me to return this buffer, instead of special casing each one. In any case I need some guidance as to how to describe this in the type map so that at least 1 function will work. BTW the target language for my project is Java.


Thanks in advance for any help you can provide..


John D. Cooper