Answer the question
In order to leave comments, you need to log in
How to convert QByteArray to jbyteArray and pass it to a function?
Greetings.
Java has a function, for example:
public int send(byte[] data)
{
....
}
QByteArray data;
....
jbyteArray buffer = data ; //???
myActivity.callMethod<int>("send", "([BI)I", buffer);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question