Example #1
0
        public static unsafe global::Org.Jcodec.Codecs.Common.Biari.BitIO.IOutputBits OutputFromStream(global::System.IO.Stream p0)
        {
            if (id_outputFromStream_Ljava_io_OutputStream_ == IntPtr.Zero)
            {
                id_outputFromStream_Ljava_io_OutputStream_ = JNIEnv.GetStaticMethodID(class_ref, "outputFromStream", "(Ljava/io/OutputStream;)Lorg/jcodec/codecs/common/biari/BitIO$OutputBits;");
            }
            IntPtr native_p0 = global::Android.Runtime.OutputStreamAdapter.ToLocalJniHandle(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);
                global::Org.Jcodec.Codecs.Common.Biari.BitIO.IOutputBits __ret = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.Common.Biari.BitIO.IOutputBits> (JNIEnv.CallStaticObjectMethod(class_ref, id_outputFromStream_Ljava_io_OutputStream_, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
            }
        }
Example #2
0
        public static unsafe global::Org.Jcodec.Codecs.Common.Biari.BitIO.IOutputBits OutputFromArray(byte[] p0)
        {
            if (id_outputFromArray_arrayB == IntPtr.Zero)
            {
                id_outputFromArray_arrayB = JNIEnv.GetStaticMethodID(class_ref, "outputFromArray", "([B)Lorg/jcodec/codecs/common/biari/BitIO$OutputBits;");
            }
            IntPtr native_p0 = JNIEnv.NewArray(p0);

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(native_p0);
                global::Org.Jcodec.Codecs.Common.Biari.BitIO.IOutputBits __ret = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.Common.Biari.BitIO.IOutputBits> (JNIEnv.CallStaticObjectMethod(class_ref, id_outputFromArray_arrayB, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                if (p0 != null)
                {
                    JNIEnv.CopyArray(native_p0, p0);
                    JNIEnv.DeleteLocalRef(native_p0);
                }
            }
        }
Example #3
0
 static void n_PutBit_I(IntPtr jnienv, IntPtr native__this, int p0)
 {
     global::Org.Jcodec.Codecs.Common.Biari.BitIO.IOutputBits __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.Common.Biari.BitIO.IOutputBits> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.PutBit(p0);
 }