| 134 | |
| 135 | template<typename T> |
| 136 | inline jobject BuildJEnum(JNIEnv * env, const char* ociotype, T val) |
| 137 | { |
| 138 | jclass cls = env->FindClass(ociotype); |
| 139 | jmethodID mid = env->GetMethodID(cls, "<init>", "(I)V"); |
| 140 | return env->NewObject(cls, mid, (int)val); |
| 141 | } |
| 142 | |
| 143 | template<typename T> |
| 144 | inline void CheckArrayLength(JNIEnv * env, const char* name, T ptr, int32_t length) { |
no outgoing calls
no test coverage detected