Evgeni Sergeev
2007-09-18 02:10:41 UTC
Hello,
How can I tell SWIG to accept a pointer to a java.nio.ByteBuffer, which is being passed to it by Java? Also, the size of the buffer is needed.
The aim is to have a contiguous memory space, which can be read and written by both native code and Java code, for passing a large amount of data quickly.
Evgeni
_________________________________________________________________
Win Dad the Footy Final with Cadbury Favourites!
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fbs%2Eserving%2Dsys%2Ecom%2FBurstingPipe%2FadServer%2Ebs%3Fcn%3Dtf%26c%3D20%26mc%3Dclick%26pli%3D243221%26pi%3D0%26ord%3D%25%25RANDOM%25%25&_t=765445318&_r=hotmail_email_tagline_Aug07_Cadburys&_m=EXT
How can I tell SWIG to accept a pointer to a java.nio.ByteBuffer, which is being passed to it by Java? Also, the size of the buffer is needed.
The aim is to have a contiguous memory space, which can be read and written by both native code and Java code, for passing a large amount of data quickly.
Evgeni
_________________________________________________________________
Win Dad the Footy Final with Cadbury Favourites!
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fbs%2Eserving%2Dsys%2Ecom%2FBurstingPipe%2FadServer%2Ebs%3Fcn%3Dtf%26c%3D20%26mc%3Dclick%26pli%3D243221%26pi%3D0%26ord%3D%25%25RANDOM%25%25&_t=765445318&_r=hotmail_email_tagline_Aug07_Cadburys&_m=EXT