static void n_Function_Ljava_lang_String_Lorg_jocl_Pointer_JLjava_lang_Object_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, long p2, IntPtr native_p3)
        {
            global::Org.Jocl.ICreateContextFunction __this = global::Java.Lang.Object.GetObject <global::Org.Jocl.ICreateContextFunction> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);

            global::Org.Jocl.Pointer p1 = global::Java.Lang.Object.GetObject <global::Org.Jocl.Pointer> (native_p1, JniHandleOwnership.DoNotTransfer);
            global::Java.Lang.Object p3 = global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (native_p3, JniHandleOwnership.DoNotTransfer);
            __this.Function(p0, p1, p2, p3);
        }
Esempio n. 2
0
 public static unsafe global::Org.Jocl.Pointer To(global::Java.Nio.Buffer p0)
 {
     if (id_to_Ljava_nio_Buffer_ == IntPtr.Zero)
     {
         id_to_Ljava_nio_Buffer_ = JNIEnv.GetStaticMethodID(class_ref, "to", "(Ljava/nio/Buffer;)Lorg/jocl/Pointer;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::Org.Jocl.Pointer __ret = global::Java.Lang.Object.GetObject <global::Org.Jocl.Pointer> (JNIEnv.CallStaticObjectMethod(class_ref, id_to_Ljava_nio_Buffer_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
        public unsafe void Function(string p0, global::Org.Jocl.Pointer p1, long p2, global::Java.Lang.Object p3)
        {
            if (id_function_Ljava_lang_String_Lorg_jocl_Pointer_JLjava_lang_Object_ == IntPtr.Zero)
            {
                id_function_Ljava_lang_String_Lorg_jocl_Pointer_JLjava_lang_Object_ = JNIEnv.GetMethodID(class_ref, "function", "(Ljava/lang/String;Lorg/jocl/Pointer;JLjava/lang/Object;)V");
            }
            IntPtr  native_p0 = JNIEnv.NewString(p0);
            JValue *__args    = stackalloc JValue [4];

            __args [0] = new JValue(native_p0);
            __args [1] = new JValue(p1);
            __args [2] = new JValue(p2);
            __args [3] = new JValue(p3);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_function_Ljava_lang_String_Lorg_jocl_Pointer_JLjava_lang_Object_, __args);
            JNIEnv.DeleteLocalRef(native_p0);
        }
Esempio n. 4
0
        public static unsafe global::Org.Jocl.Pointer To(char[] p0)
        {
            if (id_to_arrayC == IntPtr.Zero)
            {
                id_to_arrayC = JNIEnv.GetStaticMethodID(class_ref, "to", "([C)Lorg/jocl/Pointer;");
            }
            IntPtr native_p0 = JNIEnv.NewArray(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);
                global::Org.Jocl.Pointer __ret = global::Java.Lang.Object.GetObject <global::Org.Jocl.Pointer> (JNIEnv.CallStaticObjectMethod(class_ref, id_to_arrayC, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                if (p0 != null)
                {
                    JNIEnv.CopyArray(native_p0, p0);
                    JNIEnv.DeleteLocalRef(native_p0);
                }
            }
        }