| 101 | bool HasException(JNIEnv *env) { return env->ExceptionCheck() != JNI_FALSE; } |
| 102 | |
| 103 | bool ClearException(JNIEnv *env) { |
| 104 | if(!HasException(env)) |
| 105 | return false; |
| 106 | env->ExceptionDescribe(); |
| 107 | env->ExceptionClear(); |
| 108 | return true; |
| 109 | } |
| 110 | |
| 111 | static int getutf8Length(char header) { |
| 112 | int len = 0; |
no test coverage detected