| 97 | } |
| 98 | |
| 99 | JNIEXPORT jfloatArray vtkJavaMakeJArrayOfFloat(JNIEnv* env, const jfloat* ptr, int size) |
| 100 | { |
| 101 | jfloatArray result = env->NewFloatArray(size); |
| 102 | if (result != nullptr) |
| 103 | { |
| 104 | env->SetFloatArrayRegion(result, 0, size, ptr); |
| 105 | } |
| 106 | |
| 107 | return result; |
| 108 | } |
| 109 | |
| 110 | // http://java.sun.com/docs/books/jni/html/pitfalls.html#12400 |
| 111 | static void JNU_ThrowByName(JNIEnv* env, const char* name, const char* msg) |
nothing calls this directly
no test coverage detected