Esempio n. 1
0
 public static unsafe global::Anet.Channel.Entity.ConnType A(global::Anet.Channel.Strategy.ConnProtocol p0)
 {
     if (id_a_Lanet_channel_strategy_ConnProtocol_ == IntPtr.Zero)
     {
         id_a_Lanet_channel_strategy_ConnProtocol_ = JNIEnv.GetStaticMethodID(class_ref, "a", "(Lanet/channel/strategy/ConnProtocol;)Lanet/channel/entity/ConnType;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::Anet.Channel.Entity.ConnType __ret = global::Java.Lang.Object.GetObject <global::Anet.Channel.Entity.ConnType> (JNIEnv.CallStaticObjectMethod(class_ref, id_a_Lanet_channel_strategy_ConnProtocol_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
        public static unsafe global::Anet.Channel.Strategy.ConnProtocol A(string p0, string p1, string p2, bool p3)
        {
            if (id_a_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Z == IntPtr.Zero)
            {
                id_a_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Z = JNIEnv.GetStaticMethodID(class_ref, "a", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Lanet/channel/strategy/ConnProtocol;");
            }
            IntPtr native_p0 = JNIEnv.NewString(p0);
            IntPtr native_p1 = JNIEnv.NewString(p1);
            IntPtr native_p2 = JNIEnv.NewString(p2);

            try {
                JValue *__args = stackalloc JValue [4];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(p3);
                global::Anet.Channel.Strategy.ConnProtocol __ret = global::Java.Lang.Object.GetObject <global::Anet.Channel.Strategy.ConnProtocol> (JNIEnv.CallStaticObjectMethod(class_ref, id_a_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Z, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                JNIEnv.DeleteLocalRef(native_p1);
                JNIEnv.DeleteLocalRef(native_p2);
            }
        }