F
frank dot nielsen at rocketmail dot com
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
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