public unsafe EncogCLPlatform(global::Org.Jocl.Cl_platform_id p0) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); if (GetType() != typeof(EncogCLPlatform)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/jocl/cl_platform_id;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/jocl/cl_platform_id;)V", __args); return; } if (id_ctor_Lorg_jocl_cl_platform_id_ == IntPtr.Zero) { id_ctor_Lorg_jocl_cl_platform_id_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/jocl/cl_platform_id;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_jocl_cl_platform_id_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_jocl_cl_platform_id_, __args); } finally { } }
public unsafe void AddProperty(long p0, global::Org.Jocl.Cl_platform_id p1) { if (id_addProperty_JLorg_jocl_cl_platform_id_ == IntPtr.Zero) { id_addProperty_JLorg_jocl_cl_platform_id_ = JNIEnv.GetMethodID(class_ref, "addProperty", "(JLorg/jocl/cl_platform_id;)V"); } try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_addProperty_JLorg_jocl_cl_platform_id_, __args); } finally { } }