| 96 | } |
| 97 | |
| 98 | JNIEXPORT jbyteArray NativeGetValue(JNIEnv* env, jobject jobj, jlong jresult) { |
| 99 | tera::ResultStream* result = reinterpret_cast<tera::ResultStream*>(jresult); |
| 100 | jbyteArray jvalue; |
| 101 | if (result == NULL) { |
| 102 | std::string msg = "result not initialized."; |
| 103 | SendErrorJ(env, jobj, msg); |
| 104 | return NULL; |
| 105 | } |
| 106 | std::string value = result->Value(); |
| 107 | StringToJByteArray(env, value, &jvalue); |
| 108 | return jvalue; |
| 109 | } |
| 110 | |
| 111 | JNIEXPORT void NativeDeleteResultStream(JNIEnv* env, jobject jobj, jlong jresult) { |
| 112 | tera::ResultStream* result = reinterpret_cast<tera::ResultStream*>(jresult); |
nothing calls this directly
no test coverage detected