public virtual unsafe void SetData(global::Com.Bumptech.Glide.Gifdecoder.GifHeader p0, byte[] p1) { if (id_setData_Lcom_bumptech_glide_gifdecoder_GifHeader_arrayB == IntPtr.Zero) { id_setData_Lcom_bumptech_glide_gifdecoder_GifHeader_arrayB = JNIEnv.GetMethodID(class_ref, "setData", "(Lcom/bumptech/glide/gifdecoder/GifHeader;[B)V"); } IntPtr native_p1 = JNIEnv.NewArray(p1); try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(native_p1); if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(Handle, id_setData_Lcom_bumptech_glide_gifdecoder_GifHeader_arrayB, __args); } else { JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setData", "(Lcom/bumptech/glide/gifdecoder/GifHeader;[B)V"), __args); } } finally { if (p1 != null) { JNIEnv.CopyArray(native_p1, p1); JNIEnv.DeleteLocalRef(native_p1); } } }
static void n_SetData_Lcom_bumptech_glide_gifdecoder_GifHeader_arrayB(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Com.Bumptech.Glide.Gifdecoder.GifDecoder __this = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.Gifdecoder.GifDecoder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Bumptech.Glide.Gifdecoder.GifHeader p0 = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.Gifdecoder.GifHeader> (native_p0, JniHandleOwnership.DoNotTransfer); byte[] p1 = (byte[])JNIEnv.GetArray(native_p1, JniHandleOwnership.DoNotTransfer, typeof(byte)); __this.SetData(p0, p1); if (p1 != null) { JNIEnv.CopyArray(p1, native_p1); } }
static int n_GetHeight(IntPtr jnienv, IntPtr native__this) { global::Com.Bumptech.Glide.Gifdecoder.GifHeader __this = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.Gifdecoder.GifHeader> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(__this.Height); }