예제 #1
0
 internal unsafe void InitMethods()
 {
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallBooleanMethod, ref callBooleanMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallByteMethod, ref callByteMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallCharMethod, ref callCharMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallDoubleMethod, ref callDoubleMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallFloatMethod, ref callFloatMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallIntMethod, ref callIntMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallLongMethod, ref callLongMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallObjectMethod, ref callObjectMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallShortMethod, ref callShortMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallVoidMethod, ref callVoidMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallStaticBooleanMethod, ref callStaticBooleanMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallStaticByteMethod, ref callStaticByteMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallStaticCharMethod, ref callStaticCharMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallStaticDoubleMethod, ref callStaticDoubleMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallStaticFloatMethod, ref callStaticFloatMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallStaticIntMethod, ref callStaticIntMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallStaticLongMethod, ref callStaticLongMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallStaticObjectMethod, ref callStaticObjectMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallStaticShortMethod, ref callStaticShortMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallStaticVoidMethod, ref callStaticVoidMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetStaticObjectField, ref getStaticObjectField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetStaticBooleanField, ref getStaticBooleanField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetStaticByteField, ref getStaticByteField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetStaticCharField, ref getStaticCharField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetStaticShortField, ref getStaticShortField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetStaticIntField, ref getStaticIntField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetStaticLongField, ref getStaticLongField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetStaticFloatField, ref getStaticFloatField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetStaticDoubleField, ref getStaticDoubleField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetStaticObjectField, ref setStaticObjectField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetStaticBooleanField, ref setStaticBooleanField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetStaticByteField, ref setStaticByteField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetStaticCharField, ref setStaticCharField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetStaticShortField, ref setStaticShortField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetStaticIntField, ref setStaticIntField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetStaticLongField, ref setStaticLongField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetStaticFloatField, ref setStaticFloatField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetStaticDoubleField, ref setStaticDoubleField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetObjectField, ref getObjectField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetBooleanField, ref getBooleanField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetByteField, ref getByteField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetCharField, ref getCharField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetShortField, ref getShortField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetIntField, ref getIntField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetLongField, ref getLongField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetFloatField, ref getFloatField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetDoubleField, ref getDoubleField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetObjectField, ref setObjectField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetBooleanField, ref setBooleanField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetByteField, ref setByteField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetCharField, ref setCharField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetShortField, ref setShortField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetIntField, ref setIntField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetLongField, ref setLongField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetFloatField, ref setFloatField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetDoubleField, ref setDoubleField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.DeleteGlobalRef, ref deleteGlobalRef);
     MethodWrapper.GetDelegateForFunctionPointer(functions.DeleteLocalRef, ref deleteLocalRef);
     MethodWrapper.GetDelegateForFunctionPointer(functions.EnsureLocalCapacity, ref ensureLocalCapacity);
     MethodWrapper.GetDelegateForFunctionPointer(functions.ExceptionCheck, ref exceptionCheck);
     MethodWrapper.GetDelegateForFunctionPointer(functions.FindClass, ref findClass);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetDirectBufferAddress, ref getDirectBufferAddress);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetDirectBufferCapacity, ref getDirectBufferCapacity);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetFieldID, ref getFieldID);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetJavaVM, ref getJavaVM);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetMethodID, ref getMethodID);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetObjectClass, ref getObjectClass);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetStaticFieldID, ref getStaticFieldID);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetStaticMethodID, ref getStaticMethodID);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetStringChars, ref getStringChars);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetVersion, ref getVersion);
     MethodWrapper.GetDelegateForFunctionPointer(functions.IsSameObject, ref isSameObject);
     MethodWrapper.GetDelegateForFunctionPointer(functions.NewDirectByteBuffer, ref newDirectByteBuffer);
     MethodWrapper.GetDelegateForFunctionPointer(functions.NewGlobalRef, ref newGlobalRef);
     MethodWrapper.GetDelegateForFunctionPointer(functions.NewLocalRef, ref newLocalRef);
     MethodWrapper.GetDelegateForFunctionPointer(functions.NewString, ref newString);
     MethodWrapper.GetDelegateForFunctionPointer(functions.PopLocalFrame, ref popLocalFrame);
     MethodWrapper.GetDelegateForFunctionPointer(functions.PushLocalFrame, ref pushLocalFrame);
     MethodWrapper.GetDelegateForFunctionPointer(functions.RegisterNatives, ref registerNatives);
     MethodWrapper.GetDelegateForFunctionPointer(functions.UnregisterNatives, ref unregisterNatives);
     MethodWrapper.GetDelegateForFunctionPointer(functions.ReleaseStringChars, ref releaseStringChars);
     MethodWrapper.GetDelegateForFunctionPointer(functions.ToReflectedField, ref toReflectedField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.ToReflectedMethod, ref toReflectedMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.FromReflectedMethod, ref fromReflectedMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.FromReflectedField, ref fromReflectedField);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetArrayLength, ref getArrayLength);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetObjectArrayElement, ref getObjectArrayElement);
     MethodWrapper.GetDelegateForFunctionPointer(functions.NewBooleanArray, ref newBooleanArray);
     MethodWrapper.GetDelegateForFunctionPointer(functions.NewByteArray, ref newByteArray);
     MethodWrapper.GetDelegateForFunctionPointer(functions.NewCharArray, ref newCharArray);
     MethodWrapper.GetDelegateForFunctionPointer(functions.NewDoubleArray, ref newDoubleArray);
     MethodWrapper.GetDelegateForFunctionPointer(functions.NewFloatArray, ref newFloatArray);
     MethodWrapper.GetDelegateForFunctionPointer(functions.NewIntArray, ref newIntArray);
     MethodWrapper.GetDelegateForFunctionPointer(functions.NewLongArray, ref newLongArray);
     MethodWrapper.GetDelegateForFunctionPointer(functions.NewObjectArray, ref newObjectArray);
     MethodWrapper.GetDelegateForFunctionPointer(functions.NewShortArray, ref newShortArray);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetObjectArrayElement, ref setObjectArrayElement);
     MethodWrapper.GetDelegateForFunctionPointer(functions.AllocObject, ref allocObject);
     MethodWrapper.GetDelegateForFunctionPointer(functions.NewObject, ref newObject);
     MethodWrapper.GetDelegateForFunctionPointer(functions.Throw, ref @throw);
     MethodWrapper.GetDelegateForFunctionPointer(functions.ThrowNew, ref throwNew);
     MethodWrapper.GetDelegateForFunctionPointer(functions.ExceptionOccurred, ref exceptionOccurred);
     MethodWrapper.GetDelegateForFunctionPointer(functions.ExceptionDescribe, ref exceptionDescribe);
     MethodWrapper.GetDelegateForFunctionPointer(functions.ExceptionClear, ref exceptionClear);
     MethodWrapper.GetDelegateForFunctionPointer(functions.FatalError, ref fatalError);
     MethodWrapper.GetDelegateForFunctionPointer(functions.DefineClass, ref defineClass);
     MethodWrapper.GetDelegateForFunctionPointer(functions.MonitorEnter, ref monitorEnter);
     MethodWrapper.GetDelegateForFunctionPointer(functions.MonitorExit, ref monitorExit);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetStringRegion, ref getStringRegion);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetStringUTFRegion, ref getStringUTFRegion);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetPrimitiveArrayCritical,
                                                 ref getPrimitiveArrayCritical);
     MethodWrapper.GetDelegateForFunctionPointer(functions.ReleasePrimitiveArrayCritical,
                                                 ref releasePrimitiveArrayCritical);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetStringCritical, ref getStringCritical);
     MethodWrapper.GetDelegateForFunctionPointer(functions.ReleaseStringCritical, ref releaseStringCritical);
     MethodWrapper.GetDelegateForFunctionPointer(functions.NewWeakGlobalRef, ref newWeakGlobalRef);
     MethodWrapper.GetDelegateForFunctionPointer(functions.DeleteWeakGlobalRef, ref deleteWeakGlobalRef);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallNonvirtualObjectMethod,
                                                 ref callNonvirtualObjectMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallNonvirtualBooleanMethod,
                                                 ref callNonvirtualBooleanMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallNonvirtualByteMethod, ref callNonvirtualByteMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallNonvirtualCharMethod, ref callNonvirtualCharMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallNonvirtualShortMethod,
                                                 ref callNonvirtualShortMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallNonvirtualIntMethod, ref callNonvirtualIntMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallNonvirtualLongMethod, ref callNonvirtualLongMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallNonvirtualFloatMethod,
                                                 ref callNonvirtualFloatMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallNonvirtualDoubleMethod,
                                                 ref callNonvirtualDoubleMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.CallNonvirtualVoidMethod, ref callNonvirtualVoidMethod);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetStringLength, ref getStringLength);
     MethodWrapper.GetDelegateForFunctionPointer(functions.NewStringUTF, ref newStringUTF);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetStringUTFLength, ref getStringUTFLength);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetStringUTFChars, ref getStringUTFChars);
     MethodWrapper.GetDelegateForFunctionPointer(functions.ReleaseStringUTFChars, ref releaseStringUTFChars);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetBooleanArrayElements, ref getBooleanArrayElements);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetByteArrayElements, ref getByteArrayElements);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetCharArrayElements, ref getCharArrayElements);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetShortArrayElements, ref getShortArrayElements);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetIntArrayElements, ref getIntArrayElements);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetLongArrayElements, ref getLongArrayElements);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetFloatArrayElements, ref getFloatArrayElements);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetDoubleArrayElements, ref getDoubleArrayElements);
     MethodWrapper.GetDelegateForFunctionPointer(functions.ReleaseBooleanArrayElements,
                                                 ref releaseBooleanArrayElements);
     MethodWrapper.GetDelegateForFunctionPointer(functions.ReleaseByteArrayElements, ref releaseByteArrayElements);
     MethodWrapper.GetDelegateForFunctionPointer(functions.ReleaseCharArrayElements, ref releaseCharArrayElements);
     MethodWrapper.GetDelegateForFunctionPointer(functions.ReleaseShortArrayElements,
                                                 ref releaseShortArrayElements);
     MethodWrapper.GetDelegateForFunctionPointer(functions.ReleaseIntArrayElements, ref releaseIntArrayElements);
     MethodWrapper.GetDelegateForFunctionPointer(functions.ReleaseLongArrayElements, ref releaseLongArrayElements);
     MethodWrapper.GetDelegateForFunctionPointer(functions.ReleaseFloatArrayElements,
                                                 ref releaseFloatArrayElements);
     MethodWrapper.GetDelegateForFunctionPointer(functions.ReleaseDoubleArrayElements,
                                                 ref releaseDoubleArrayElements);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetBooleanArrayRegion, ref getBooleanArrayRegion);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetByteArrayRegion, ref getByteArrayRegion);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetCharArrayRegion, ref getCharArrayRegion);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetShortArrayRegion, ref getShortArrayRegion);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetIntArrayRegion, ref getIntArrayRegion);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetLongArrayRegion, ref getLongArrayRegion);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetFloatArrayRegion, ref getFloatArrayRegion);
     MethodWrapper.GetDelegateForFunctionPointer(functions.GetDoubleArrayRegion, ref getDoubleArrayRegion);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetBooleanArrayRegion, ref setBooleanArrayRegion);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetByteArrayRegion, ref setByteArrayRegion);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetCharArrayRegion, ref setCharArrayRegion);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetShortArrayRegion, ref setShortArrayRegion);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetIntArrayRegion, ref setIntArrayRegion);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetLongArrayRegion, ref setLongArrayRegion);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetFloatArrayRegion, ref setFloatArrayRegion);
     MethodWrapper.GetDelegateForFunctionPointer(functions.SetDoubleArrayRegion, ref setDoubleArrayRegion);
 }