Do you know where your variables are? | |
PerlMonks |
Re: Use a string as a FILE * stream in XS codeby dcmertens (Scribe) |
on Aug 18, 2016 at 16:33 UTC ( [id://1170007]=note: print w/replies, xml ) | Need Help?? |
I'm curious about this, too, so I read up on the internet. The best answer, on Stack Overflow, basically says that you can set the file buffer to your own pointer, using setvbuf, but the file operations are then free to do whatever they want with the contents of that memory. One of the answerers suggests that the poster should complain to the original library owner to add additional functions that take arrays. So, it seems you would do best to revise your library.
In Section
Seekers of Perl Wisdom
|
|