public unsafe GifDecoder(global::System.IO.Stream p0, global::Com.Ant.Liao.IGifAction p1) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (Handle != IntPtr.Zero) { return; } IntPtr native_p0 = global::Android.Runtime.InputStreamAdapter.ToLocalJniHandle(p0); try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(native_p0); __args [1] = new JValue(p1); if (GetType() != typeof(GifDecoder)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Ljava/io/InputStream;Lcom/ant/liao/GifAction;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(Ljava/io/InputStream;Lcom/ant/liao/GifAction;)V", __args); return; } if (id_ctor_Ljava_io_InputStream_Lcom_ant_liao_GifAction_ == IntPtr.Zero) { id_ctor_Ljava_io_InputStream_Lcom_ant_liao_GifAction_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/io/InputStream;Lcom/ant/liao/GifAction;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_io_InputStream_Lcom_ant_liao_GifAction_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Ljava_io_InputStream_Lcom_ant_liao_GifAction_, __args); } finally { JNIEnv.DeleteLocalRef(native_p0); } }
public unsafe GifDecoder(byte[] p0, global::Com.Ant.Liao.IGifAction p1) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (Handle != IntPtr.Zero) { return; } IntPtr native_p0 = JNIEnv.NewArray(p0); try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(native_p0); __args [1] = new JValue(p1); if (GetType() != typeof(GifDecoder)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "([BLcom/ant/liao/GifAction;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "([BLcom/ant/liao/GifAction;)V", __args); return; } if (id_ctor_arrayBLcom_ant_liao_GifAction_ == IntPtr.Zero) { id_ctor_arrayBLcom_ant_liao_GifAction_ = JNIEnv.GetMethodID(class_ref, "<init>", "([BLcom/ant/liao/GifAction;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_arrayBLcom_ant_liao_GifAction_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_arrayBLcom_ant_liao_GifAction_, __args); } finally { if (p0 != null) { JNIEnv.CopyArray(native_p0, p0); JNIEnv.DeleteLocalRef(native_p0); } } }
static void n_ParseOk_ZI(IntPtr jnienv, IntPtr native__this, bool p0, int p1) { global::Com.Ant.Liao.IGifAction __this = global::Java.Lang.Object.GetObject <global::Com.Ant.Liao.IGifAction> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); __this.ParseOk(p0, p1); }