Beispiel #1
0
        public unsafe IconEntry(global::Net.SF.Image4j.IO.LittleEndianInputStream 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(IconEntry))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lnet/sf/image4j/io/LittleEndianInputStream;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lnet/sf/image4j/io/LittleEndianInputStream;)V", __args);
                    return;
                }

                if (id_ctor_Lnet_sf_image4j_io_LittleEndianInputStream_ == IntPtr.Zero)
                {
                    id_ctor_Lnet_sf_image4j_io_LittleEndianInputStream_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lnet/sf/image4j/io/LittleEndianInputStream;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lnet_sf_image4j_io_LittleEndianInputStream_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lnet_sf_image4j_io_LittleEndianInputStream_, __args);
            } finally {
            }
        }
Beispiel #2
0
        protected virtual unsafe void Init(global::Net.SF.Image4j.IO.LittleEndianInputStream p0, int p1)
        {
            if (id_init_Lnet_sf_image4j_io_LittleEndianInputStream_I == IntPtr.Zero)
            {
                id_init_Lnet_sf_image4j_io_LittleEndianInputStream_I = JNIEnv.GetMethodID(class_ref, "init", "(Lnet/sf/image4j/io/LittleEndianInputStream;I)V");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_init_Lnet_sf_image4j_io_LittleEndianInputStream_I, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "init", "(Lnet/sf/image4j/io/LittleEndianInputStream;I)V"), __args);
                }
            } finally {
            }
        }
Beispiel #3
0
 static void n_Init_Lnet_sf_image4j_io_LittleEndianInputStream_I(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1)
 {
     global::Net.SF.Image4j.Codec.Bmp.InfoHeader       __this = global::Java.Lang.Object.GetObject <global::Net.SF.Image4j.Codec.Bmp.InfoHeader> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Net.SF.Image4j.IO.LittleEndianInputStream p0     = global::Java.Lang.Object.GetObject <global::Net.SF.Image4j.IO.LittleEndianInputStream> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.Init(p0, p1);
 }
Beispiel #4
0
 static double n_ReadDoubleLE(IntPtr jnienv, IntPtr native__this)
 {
     global::Net.SF.Image4j.IO.LittleEndianInputStream __this = global::Java.Lang.Object.GetObject <global::Net.SF.Image4j.IO.LittleEndianInputStream> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.ReadDoubleLE());
 }
Beispiel #5
0
 public static unsafe global::Net.SF.Image4j.Codec.Bmp.InfoHeader ReadInfoHeader(global::Net.SF.Image4j.IO.LittleEndianInputStream p0, int p1)
 {
     if (id_readInfoHeader_Lnet_sf_image4j_io_LittleEndianInputStream_I == IntPtr.Zero)
     {
         id_readInfoHeader_Lnet_sf_image4j_io_LittleEndianInputStream_I = JNIEnv.GetStaticMethodID(class_ref, "readInfoHeader", "(Lnet/sf/image4j/io/LittleEndianInputStream;I)Lnet/sf/image4j/codec/bmp/InfoHeader;");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         global::Net.SF.Image4j.Codec.Bmp.InfoHeader __ret = global::Java.Lang.Object.GetObject <global::Net.SF.Image4j.Codec.Bmp.InfoHeader> (JNIEnv.CallStaticObjectMethod(class_ref, id_readInfoHeader_Lnet_sf_image4j_io_LittleEndianInputStream_I, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
Beispiel #6
0
 public static unsafe global::Net.SF.Image4j.Codec.Bmp.ColorEntry[] ReadColorTable(global::Net.SF.Image4j.Codec.Bmp.InfoHeader p0, global::Net.SF.Image4j.IO.LittleEndianInputStream p1)
 {
     if (id_readColorTable_Lnet_sf_image4j_codec_bmp_InfoHeader_Lnet_sf_image4j_io_LittleEndianInputStream_ == IntPtr.Zero)
     {
         id_readColorTable_Lnet_sf_image4j_codec_bmp_InfoHeader_Lnet_sf_image4j_io_LittleEndianInputStream_ = JNIEnv.GetStaticMethodID(class_ref, "readColorTable", "(Lnet/sf/image4j/codec/bmp/InfoHeader;Lnet/sf/image4j/io/LittleEndianInputStream;)[Lnet/sf/image4j/codec/bmp/ColorEntry;");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         global::Net.SF.Image4j.Codec.Bmp.ColorEntry[] __ret = (global::Net.SF.Image4j.Codec.Bmp.ColorEntry[])JNIEnv.GetArray(JNIEnv.CallStaticObjectMethod(class_ref, id_readColorTable_Lnet_sf_image4j_codec_bmp_InfoHeader_Lnet_sf_image4j_io_LittleEndianInputStream_, __args), JniHandleOwnership.TransferLocalRef, typeof(global::Net.SF.Image4j.Codec.Bmp.ColorEntry));
         return(__ret);
     } finally {
     }
 }