public unsafe OutLogSink(global::Java.IO.PrintStream p0, global::Org.Jcodec.Common.Logging.OutLogSink.IMessageFormat p1)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                if (GetType() != typeof(OutLogSink))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Ljava/io/PrintStream;Lorg/jcodec/common/logging/OutLogSink$MessageFormat;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/io/PrintStream;Lorg/jcodec/common/logging/OutLogSink$MessageFormat;)V", __args);
                    return;
                }

                if (id_ctor_Ljava_io_PrintStream_Lorg_jcodec_common_logging_OutLogSink_MessageFormat_ == IntPtr.Zero)
                {
                    id_ctor_Ljava_io_PrintStream_Lorg_jcodec_common_logging_OutLogSink_MessageFormat_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/io/PrintStream;Lorg/jcodec/common/logging/OutLogSink$MessageFormat;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_io_PrintStream_Lorg_jcodec_common_logging_OutLogSink_MessageFormat_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_io_PrintStream_Lorg_jcodec_common_logging_OutLogSink_MessageFormat_, __args);
            } finally {
            }
        }
        public virtual unsafe void PrintTable(global::Java.IO.PrintStream p0)
        {
            if (id_printTable_Ljava_io_PrintStream_ == IntPtr.Zero)
            {
                id_printTable_Ljava_io_PrintStream_ = JNIEnv.GetMethodID(class_ref, "printTable", "(Ljava/io/PrintStream;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_printTable_Ljava_io_PrintStream_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "printTable", "(Ljava/io/PrintStream;)V"), __args);
                }
            } finally {
            }
        }
Пример #3
0
 public override void PrintStackTrace(global::Java.IO.PrintStream s)                         /* MethodBuilder.Create */
 {
 }
 static void n_PrintTable_Ljava_io_PrintStream_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Org.Jcodec.Common.IO.VLC __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.IO.VLC> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Java.IO.PrintStream      p0     = global::Java.Lang.Object.GetObject <global::Java.IO.PrintStream> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.PrintTable(p0);
 }