| 142 | |
| 143 | template<typename T> |
| 144 | inline void CheckArrayLength(JNIEnv * env, const char* name, T ptr, int32_t length) { |
| 145 | if(ptr == NULL) return; |
| 146 | if(env->GetArrayLength(ptr) < length) { |
| 147 | std::ostringstream err; |
| 148 | err << name << " needs to have " << length; |
| 149 | err << " elements but found only " << env->GetArrayLength(ptr); |
| 150 | throw Exception(err.str().c_str()); |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | class GetJFloatArrayValue |
| 155 | { |
no outgoing calls
no test coverage detected