Example #1
0
 static void n_LogPes_Lorg_jcodec_containers_mps_MPSDemuxer_PESPacket_ILjava_nio_ByteBuffer_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1, IntPtr native_p2)
 {
     global::Org.Jcodec.Containers.Mps.MPSDump __this          = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Containers.Mps.MPSDump> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Org.Jcodec.Containers.Mps.MPSDemuxer.PESPacket p0 = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Containers.Mps.MPSDemuxer.PESPacket> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Java.Nio.ByteBuffer p2 = global::Java.Lang.Object.GetObject <global::Java.Nio.ByteBuffer> (native_p2, JniHandleOwnership.DoNotTransfer);
     __this.LogPes(p0, p1, p2);
 }
Example #2
0
        protected virtual unsafe void LogPes(global::Org.Jcodec.Containers.Mps.MPSDemuxer.PESPacket p0, int p1, global::Java.Nio.ByteBuffer p2)
        {
            if (id_logPes_Lorg_jcodec_containers_mps_MPSDemuxer_PESPacket_ILjava_nio_ByteBuffer_ == IntPtr.Zero)
            {
                id_logPes_Lorg_jcodec_containers_mps_MPSDemuxer_PESPacket_ILjava_nio_ByteBuffer_ = JNIEnv.GetMethodID(class_ref, "logPes", "(Lorg/jcodec/containers/mps/MPSDemuxer$PESPacket;ILjava/nio/ByteBuffer;)V");
            }
            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_logPes_Lorg_jcodec_containers_mps_MPSDemuxer_PESPacket_ILjava_nio_ByteBuffer_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "logPes", "(Lorg/jcodec/containers/mps/MPSDemuxer$PESPacket;ILjava/nio/ByteBuffer;)V"), __args);
                }
            } finally {
            }
        }