Beispiel #1
0
        static IntPtr n_Get_Lokhttp3_ConnectionPool_Lokhttp3_Address_Lokhttp3_internal_http_StreamAllocation_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2)
        {
            global::Okhttp3.Internal.Internal __this          = global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.Internal> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Okhttp3.ConnectionPool    p0              = global::Java.Lang.Object.GetObject <global::Okhttp3.ConnectionPool> (native_p0, JniHandleOwnership.DoNotTransfer);
            global::Okhttp3.Address           p1              = global::Java.Lang.Object.GetObject <global::Okhttp3.Address> (native_p1, JniHandleOwnership.DoNotTransfer);
            global::Okhttp3.Internal.Http.StreamAllocation p2 = global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.Http.StreamAllocation> (native_p2, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Get(p0, p1, p2));

            return(__ret);
        }
        public unsafe Http2xStream(global::Okhttp3.Internal.Http.StreamAllocation streamAllocation, global::Okhttp3.Internal.Framed.FramedConnection framedConnection)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Lokhttp3/internal/http/StreamAllocation;Lokhttp3/internal/framed/FramedConnection;)V";

            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((streamAllocation == null) ? IntPtr.Zero : ((global::Java.Lang.Object)streamAllocation).Handle);
                __args [1] = new JniArgumentValue((framedConnection == null) ? IntPtr.Zero : ((global::Java.Lang.Object)framedConnection).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
Beispiel #3
0
        public override unsafe global::Okhttp3.Internal.IO.RealConnection Get(global::Okhttp3.ConnectionPool p0, global::Okhttp3.Address p1, global::Okhttp3.Internal.Http.StreamAllocation p2)
        {
            const string __id = "get.(Lokhttp3/ConnectionPool;Lokhttp3/Address;Lokhttp3/internal/http/StreamAllocation;)Lokhttp3/internal/io/RealConnection;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                __args [1] = new JniArgumentValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
                __args [2] = new JniArgumentValue((p2 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p2).Handle);
                var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.IO.RealConnection> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
Beispiel #4
0
 public abstract global::Okhttp3.Internal.IO.RealConnection Get(global::Okhttp3.ConnectionPool p0, global::Okhttp3.Address p1, global::Okhttp3.Internal.Http.StreamAllocation p2);