I have a C function that allocates a buffer and returns a pointer to it
as follows:
  
int foo(char **buf, int *n , ...)

The function allocates a buffer and fills with data. Fills in the 
pointer to it and its length before returning.

Can someone tell me or point me to a reference showing how to 
wrap this with perlxs? I'm new to perlxs but can follow the perlxs 
tutorials.

ok.

I'm flexible concerning what type of structure holds the data at the perl 
end, as long as I can process it byte by byte.

int &len obviously works for the length but
char * &buf   doesn't work as for the buffer as it contains zeros.

Thanks,
Rob Clark.

-- 
 /------------------------------------------------------------\
|   __  __ ___  __    | Rob Clark <[EMAIL PROTECTED]>       |
|  /_/ /_/  /  /      | Centre for Speech Technology Research, |
| / \./ /._/. /__lark | University of Edinburgh.               |
 \------------------------------------------------------------/
                                   Information is not knowledge.
                                                -- Frank Zappa



Reply via email to