Lines Matching refs:pObj
62 static unpacker* get_unpacker(JNIEnv *env, jobject pObj, bool noCreate=false) {
64 jlong p = env->CallLongMethod(pObj, getUnpackerPtrMID);
73 //fprintf(stderr, "get_unpacker(%p) uPtr=%p initializing\n", pObj, uPtr);
75 uPtr->jniobj = (void*) env->NewGlobalRef(pObj);
76 env->SetLongField(pObj, unpackerPtrFID, ptr2jlong(uPtr));
97 jobject pObj = env->CallStaticObjectMethod(NIclazz, currentInstMID);
98 //fprintf(stderr, "get_unpacker0() pObj=%p\n", pObj);
99 if (pObj != null) {
100 // Got pObj and env; now do it the easy way.
101 return get_unpacker(env, pObj);
109 static void free_unpacker(JNIEnv *env, jobject pObj, unpacker* uPtr) {
111 //fprintf(stderr, "free_unpacker(%p) uPtr=%p\n", pObj, uPtr);
116 env->SetLongField(pObj, unpackerPtrFID, (jlong)null);
157 Java_com_sun_java_util_jar_pack_NativeUnpack_start(JNIEnv *env, jobject pObj,
162 //fprintf(stderr, "start(%p) uPtr=%p initializing\n", pObj, uPtr);
199 Java_com_sun_java_util_jar_pack_NativeUnpack_getNextFile(JNIEnv *env, jobject pObj,
202 unpacker* uPtr = get_unpacker(env, pObj);
242 Java_com_sun_java_util_jar_pack_NativeUnpack_getUnusedInput(JNIEnv *env, jobject pObj) {
243 unpacker* uPtr = get_unpacker(env, pObj);
264 Java_com_sun_java_util_jar_pack_NativeUnpack_finish(JNIEnv *env, jobject pObj) {
265 unpacker* uPtr = get_unpacker(env, pObj, false);
268 free_unpacker(env, pObj, uPtr);
273 Java_com_sun_java_util_jar_pack_NativeUnpack_setOption(JNIEnv *env, jobject pObj,
275 unpacker* uPtr = get_unpacker(env, pObj);
285 Java_com_sun_java_util_jar_pack_NativeUnpack_getOption(JNIEnv *env, jobject pObj,
288 unpacker* uPtr = get_unpacker(env, pObj);