JNI convert jbytearay into std::string

后端 未结 0 1945
你的背包
你的背包 2020-12-19 10:34

I\'ve used https://stackoverflow.com/a/38769851 and adapted for C++ as follows:

    jsize num_bytes = env->GetArrayLength(message);
    char *buffer = new          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题