public unsafe MPEG2VideoDescriptor(global::Org.Jcodec.Containers.Mxf.Model.UL 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(MPEG2VideoDescriptor))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/jcodec/containers/mxf/model/UL;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/jcodec/containers/mxf/model/UL;)V", __args);
                    return;
                }

                if (id_ctor_Lorg_jcodec_containers_mxf_model_UL_ == IntPtr.Zero)
                {
                    id_ctor_Lorg_jcodec_containers_mxf_model_UL_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/jcodec/containers/mxf/model/UL;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_jcodec_containers_mxf_model_UL_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_jcodec_containers_mxf_model_UL_, __args);
            } finally {
            }
        }
        static bool n_Equals_Lorg_jcodec_containers_mxf_model_UL_I(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1)
        {
            global::Org.Jcodec.Containers.Mxf.Model.UL __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Containers.Mxf.Model.UL> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Org.Jcodec.Containers.Mxf.Model.UL p0     = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Containers.Mxf.Model.UL> (native_p0, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.Equals(p0, p1);

            return(__ret);
        }
 public static unsafe global::Org.Jcodec.Containers.Mxf.Model.UL Read(global::Java.Nio.ByteBuffer p0)
 {
     if (id_read_Ljava_nio_ByteBuffer_ == IntPtr.Zero)
     {
         id_read_Ljava_nio_ByteBuffer_ = JNIEnv.GetStaticMethodID(class_ref, "read", "(Ljava/nio/ByteBuffer;)Lorg/jcodec/containers/mxf/model/UL;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::Org.Jcodec.Containers.Mxf.Model.UL __ret = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Containers.Mxf.Model.UL> (JNIEnv.CallStaticObjectMethod(class_ref, id_read_Ljava_nio_ByteBuffer_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
        public virtual unsafe bool Equals(global::Org.Jcodec.Containers.Mxf.Model.UL p0, int p1)
        {
            if (id_equals_Lorg_jcodec_containers_mxf_model_UL_I == IntPtr.Zero)
            {
                id_equals_Lorg_jcodec_containers_mxf_model_UL_I = JNIEnv.GetMethodID(class_ref, "equals", "(Lorg/jcodec/containers/mxf/model/UL;I)Z");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);

                bool __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_equals_Lorg_jcodec_containers_mxf_model_UL_I, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualBooleanMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "equals", "(Lorg/jcodec/containers/mxf/model/UL;I)Z"), __args);
                }
                return(__ret);
            } finally {
            }
        }
Example #5
0
        public static unsafe global::Java.Lang.Object ResolveRef(global::System.Collections.Generic.IList <global::Org.Jcodec.Containers.Mxf.Model.MXFMetadata> p0, global::Org.Jcodec.Containers.Mxf.Model.UL p1, global::Java.Lang.Class p2)
        {
            if (id_resolveRef_Ljava_util_List_Lorg_jcodec_containers_mxf_model_UL_Ljava_lang_Class_ == IntPtr.Zero)
            {
                id_resolveRef_Ljava_util_List_Lorg_jcodec_containers_mxf_model_UL_Ljava_lang_Class_ = JNIEnv.GetStaticMethodID(class_ref, "resolveRef", "(Ljava/util/List;Lorg/jcodec/containers/mxf/model/UL;Ljava/lang/Class;)Ljava/lang/Object;");
            }
            IntPtr native_p0 = global::Android.Runtime.JavaList <global::Org.Jcodec.Containers.Mxf.Model.MXFMetadata> .ToLocalJniHandle(p0);

            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);
                global::Java.Lang.Object __ret = (Java.Lang.Object)global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (JNIEnv.CallStaticObjectMethod(class_ref, id_resolveRef_Ljava_util_List_Lorg_jcodec_containers_mxf_model_UL_Ljava_lang_Class_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
 public static unsafe global::Org.Jcodec.Containers.Mxf.Model.MXFPartition Read(global::Org.Jcodec.Containers.Mxf.Model.UL p0, global::Java.Nio.ByteBuffer p1, long p2, long p3)
 {
     if (id_read_Lorg_jcodec_containers_mxf_model_UL_Ljava_nio_ByteBuffer_JJ == IntPtr.Zero)
     {
         id_read_Lorg_jcodec_containers_mxf_model_UL_Ljava_nio_ByteBuffer_JJ = JNIEnv.GetStaticMethodID(class_ref, "read", "(Lorg/jcodec/containers/mxf/model/UL;Ljava/nio/ByteBuffer;JJ)Lorg/jcodec/containers/mxf/model/MXFPartition;");
     }
     try {
         JValue *__args = stackalloc JValue [4];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         __args [2] = new JValue(p2);
         __args [3] = new JValue(p3);
         global::Org.Jcodec.Containers.Mxf.Model.MXFPartition __ret = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Containers.Mxf.Model.MXFPartition> (JNIEnv.CallStaticObjectMethod(class_ref, id_read_Lorg_jcodec_containers_mxf_model_UL_Ljava_nio_ByteBuffer_JJ, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
 static int n_Get_I(IntPtr jnienv, IntPtr native__this, int p0)
 {
     global::Org.Jcodec.Containers.Mxf.Model.UL __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Containers.Mxf.Model.UL> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.Get(p0));
 }