From 3ce7d9cbccabf7f94d8203a98796599cd9dd5411 Mon Sep 17 00:00:00 2001 From: fctom1215 <fctom1215@outlook.com> Date: 星期二, 11 二月 2020 17:14:27 +0800 Subject: [PATCH] 修改了上坡起步。 --- lib/src/main/cpp/native-lib.cpp | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/lib/src/main/cpp/native-lib.cpp b/lib/src/main/cpp/native-lib.cpp index 760751c..0601d0b 100644 --- a/lib/src/main/cpp/native-lib.cpp +++ b/lib/src/main/cpp/native-lib.cpp @@ -266,3 +266,16 @@ MA_MainProcMsgEntry(cmd, NULL); } } + +extern "C" +JNIEXPORT void JNICALL +Java_com_anyun_exam_lib_RemoteService_MainProcBinMsgEntry(JNIEnv *env, jobject thiz, jint cmd, + jbyteArray data, jint length) { + // TODO: implement MainProcBinMsgEntry() + jbyte *c_dat = env->GetByteArrayElements(data, NULL); + int len = env->GetArrayLength(data); + + MA_MainProcBinMsgEntry(cmd, (uint8_t *)c_dat, len); + + env->ReleaseByteArrayElements(data, c_dat, NULL); +} -- Gitblit v1.8.0