Exemple #1
0
        public virtual unsafe void Add(global::Org.Jcodec.Common.IO.IAutoResource p0)
        {
            if (id_add_Lorg_jcodec_common_io_AutoResource_ == IntPtr.Zero)
            {
                id_add_Lorg_jcodec_common_io_AutoResource_ = JNIEnv.GetMethodID(class_ref, "add", "(Lorg/jcodec/common/io/AutoResource;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_add_Lorg_jcodec_common_io_AutoResource_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "add", "(Lorg/jcodec/common/io/AutoResource;)V"), __args);
                }
            } finally {
            }
        }
 static void n_SetCurTime_J(IntPtr jnienv, IntPtr native__this, long p0)
 {
     global::Org.Jcodec.Common.IO.IAutoResource __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.IO.IAutoResource> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.SetCurTime(p0);
 }
Exemple #3
0
 static void n_Add_Lorg_jcodec_common_io_AutoResource_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Org.Jcodec.Common.IO.AutoPool      __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.IO.AutoPool> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Org.Jcodec.Common.IO.IAutoResource p0     = (global::Org.Jcodec.Common.IO.IAutoResource)global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.IO.IAutoResource> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.Add(p0);
 }