Exemplo n.º 1
0
        public unsafe SocketLike(global::Android.Net.LocalSocket p0, global::Com.Facebook.Stetho.Server.LeakyBufferedInputStream 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(SocketLike))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Landroid/net/LocalSocket;Lcom/facebook/stetho/server/LeakyBufferedInputStream;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Landroid/net/LocalSocket;Lcom/facebook/stetho/server/LeakyBufferedInputStream;)V", __args);
                    return;
                }

                if (id_ctor_Landroid_net_LocalSocket_Lcom_facebook_stetho_server_LeakyBufferedInputStream_ == IntPtr.Zero)
                {
                    id_ctor_Landroid_net_LocalSocket_Lcom_facebook_stetho_server_LeakyBufferedInputStream_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/net/LocalSocket;Lcom/facebook/stetho/server/LeakyBufferedInputStream;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_net_LocalSocket_Lcom_facebook_stetho_server_LeakyBufferedInputStream_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Landroid_net_LocalSocket_Lcom_facebook_stetho_server_LeakyBufferedInputStream_, __args);
            } finally {
            }
        }
Exemplo n.º 2
0
 static IntPtr n_LeakBufferAndStream(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Facebook.Stetho.Server.LeakyBufferedInputStream __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.LeakyBufferedInputStream> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(global::Android.Runtime.InputStreamAdapter.ToLocalJniHandle(__this.LeakBufferAndStream()));
 }