Lines Matching refs:env

41 #define ThrowDataFormatException(env, msg) \
42 JNU_ThrowByName(env, "java/util/zip/DataFormatException", msg)
49 Java_java_util_zip_Inflater_initIDs(JNIEnv *env, jclass cls)
51 needDictID = (*env)->GetFieldID(env, cls, "needDict", "Z");
52 finishedID = (*env)->GetFieldID(env, cls, "finished", "Z");
53 bufID = (*env)->GetFieldID(env, cls, "buf", "[B");
54 offID = (*env)->GetFieldID(env, cls, "off", "I");
55 lenID = (*env)->GetFieldID(env, cls, "len", "I");
59 Java_java_util_zip_Inflater_init(JNIEnv *env, jclass cls, jboolean nowrap)
64 JNU_ThrowOutOfMemoryError(env, 0);
73 JNU_ThrowOutOfMemoryError(env, 0);
78 JNU_ThrowInternalError(env, msg);
85 Java_java_util_zip_Inflater_setDictionary(JNIEnv *env, jclass cls, jlong addr,
88 Bytef *buf = (*env)->GetPrimitiveArrayCritical(env, b, 0);
93 (*env)->ReleasePrimitiveArrayCritical(env, b, buf, 0);
99 JNU_ThrowIllegalArgumentException(env, ((z_stream *)jlong_to_ptr(addr))->msg);
102 JNU_ThrowInternalError(env, ((z_stream *)jlong_to_ptr(addr))->msg);
108 Java_java_util_zip_Inflater_inflateBytes(JNIEnv *env, jobject this, jlong addr,
112 jarray this_buf = (jarray)(*env)->GetObjectField(env, this, bufID);
113 jint this_off = (*env)->GetIntField(env, this, offID);
114 jint this_len = (*env)->GetIntField(env, this, lenID);
120 in_buf = (*env)->GetPrimitiveArrayCritical(env, this_buf, 0);
123 JNU_ThrowOutOfMemoryError(env, 0);
126 out_buf = (*env)->GetPrimitiveArrayCritical(env, b, 0);
128 (*env)->ReleasePrimitiveArrayCritical(env, this_buf, in_buf, 0);
130 JNU_ThrowOutOfMemoryError(env, 0);
138 (*env)->ReleasePrimitiveArrayCritical(env, b, out_buf, 0);
139 (*env)->ReleasePrimitiveArrayCritical(env, this_buf, in_buf, 0);
143 (*env)->SetBooleanField(env, this, finishedID, JNI_TRUE);
147 (*env)->SetIntField(env, this, offID, this_off);
148 (*env)->SetIntField(env, this, lenID, strm->avail_in);
151 (*env)->SetBooleanField(env, this, needDictID, JNI_TRUE);
154 (*env)->SetIntField(env, this, offID, this_off);
155 (*env)->SetIntField(env, this, lenID, strm->avail_in);
160 ThrowDataFormatException(env, strm->msg);
163 JNU_ThrowOutOfMemoryError(env, 0);
166 JNU_ThrowInternalError(env, strm->msg);
172 Java_java_util_zip_Inflater_getAdler(JNIEnv *env, jclass cls, jlong addr)
178 Java_java_util_zip_Inflater_reset(JNIEnv *env, jclass cls, jlong addr)
181 JNU_ThrowInternalError(env, 0);
186 Java_java_util_zip_Inflater_end(JNIEnv *env, jclass cls, jlong addr)
189 JNU_ThrowInternalError(env, 0);