Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
take data out of a stream
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="frank dot nielsen at rocketmail dot com, post: 1489755"] Hi there I have a std:istrstream full of data and i want to take this data out to a void* . I have to send the data back through jni (java) so i can't use any streams to extract data... Something like: std::istrstream os; .. stuff data is os... void* dataptr = os.getptr(); ???? HOW TO DO ???? int datalen = is.pcount(); // send back thought jni.... byteArray outdata = env->NewByteArray( datalen ); env->SetByteArrayRegion( outdata, 0, datalen, (jbyte *)(char*)dataptr ); Thanks in advance [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
take data out of a stream
Top