Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: XSub won't write to memory file

by Anonymous Monk
on Jul 06, 2015 at 08:49 UTC ( [id://1133328]=note: print w/replies, xml ) Need Help??


in reply to XSub won't write to memory file

I see that an dI think, look at the standard typemap , which has this

FILE * T_STDIO PerlIO * T_INOUT FileHandle T_PTROBJ InputStream T_IN InOutStream T_INOUT OutputStream T_OUT

Then further down its

T_STDIO $var = PerlIO_findFILE(IoIFP(sv_2io($arg))) T_IN $var = IoIFP(sv_2io($arg)) T_INOUT $var = IoIFP(sv_2io($arg)) T_OUT $var = IoOFP(sv_2io($arg))

So I'd look into IoOFP and sv_2io,

And with that I find http://perldoc.perl.org/perlxstypemap.html#T_INOUT and http://perldoc.perl.org/perlxstut.html#EXAMPLE-9-Passing-open-files-to-XSes

And then something something sleep :P

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1133328]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-19 20:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found