static void n_Init_Lcom_jcraft_jsch_Session_arrayBarrayBarrayBarrayB(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2, IntPtr native_p3, IntPtr native_p4) { global::Com.Jcraft.Jsch.KeyExchange __this = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.KeyExchange> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Jcraft.Jsch.Session p0 = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.Session> (native_p0, JniHandleOwnership.DoNotTransfer); byte[] p1 = (byte[])JNIEnv.GetArray(native_p1, JniHandleOwnership.DoNotTransfer, typeof(byte)); byte[] p2 = (byte[])JNIEnv.GetArray(native_p2, JniHandleOwnership.DoNotTransfer, typeof(byte)); byte[] p3 = (byte[])JNIEnv.GetArray(native_p3, JniHandleOwnership.DoNotTransfer, typeof(byte)); byte[] p4 = (byte[])JNIEnv.GetArray(native_p4, JniHandleOwnership.DoNotTransfer, typeof(byte)); __this.Init(p0, p1, p2, p3, p4); if (p1 != null) { JNIEnv.CopyArray(p1, native_p1); } if (p2 != null) { JNIEnv.CopyArray(p2, native_p2); } if (p3 != null) { JNIEnv.CopyArray(p3, native_p3); } if (p4 != null) { JNIEnv.CopyArray(p4, native_p4); } }
public override void Init(global::Com.Jcraft.Jsch.Session p0, byte[] p1, byte[] p2, byte[] p3, byte[] p4) { if (id_init_Lcom_jcraft_jsch_Session_arrayBarrayBarrayBarrayB == IntPtr.Zero) { id_init_Lcom_jcraft_jsch_Session_arrayBarrayBarrayBarrayB = JNIEnv.GetMethodID(class_ref, "init", "(Lcom/jcraft/jsch/Session;[B[B[B[B)V"); } IntPtr native_p1 = JNIEnv.NewArray(p1); IntPtr native_p2 = JNIEnv.NewArray(p2); IntPtr native_p3 = JNIEnv.NewArray(p3); IntPtr native_p4 = JNIEnv.NewArray(p4); JNIEnv.CallVoidMethod(Handle, id_init_Lcom_jcraft_jsch_Session_arrayBarrayBarrayBarrayB, new JValue(p0), new JValue(native_p1), new JValue(native_p2), new JValue(native_p3), new JValue(native_p4)); if (p1 != null) { JNIEnv.CopyArray(native_p1, p1); JNIEnv.DeleteLocalRef(native_p1); } if (p2 != null) { JNIEnv.CopyArray(native_p2, p2); JNIEnv.DeleteLocalRef(native_p2); } if (p3 != null) { JNIEnv.CopyArray(native_p3, p3); JNIEnv.DeleteLocalRef(native_p3); } if (p4 != null) { JNIEnv.CopyArray(native_p4, p4); JNIEnv.DeleteLocalRef(native_p4); } }
static void n_Request_Lcom_jcraft_jsch_Session_Lcom_jcraft_jsch_Channel_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Com.Jcraft.Jsch.RequestSubsystem __this = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.RequestSubsystem> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Jcraft.Jsch.Session p0 = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.Session> (native_p0, JniHandleOwnership.DoNotTransfer); global::Com.Jcraft.Jsch.Channel p1 = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.Channel> (native_p1, JniHandleOwnership.DoNotTransfer); __this.Request(p0, p1); }
static bool n_Start_Lcom_jcraft_jsch_Session_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Jcraft.Jsch.UserAuth __this = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.UserAuth> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Jcraft.Jsch.Session p0 = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.Session> (native_p0, JniHandleOwnership.DoNotTransfer); bool __ret = __this.Start(p0); return(__ret); }
static void n_Request_Lcom_jcraft_jsch_Session_Lcom_jcraft_jsch_Channel_Ljava_lang_String_Z(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2, bool p3) { global::Com.Jcraft.Jsch.RequestSubsystem __this = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.RequestSubsystem> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Jcraft.Jsch.Session p0 = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.Session> (native_p0, JniHandleOwnership.DoNotTransfer); global::Com.Jcraft.Jsch.Channel p1 = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.Channel> (native_p1, JniHandleOwnership.DoNotTransfer); string p2 = JNIEnv.GetString(native_p2, JniHandleOwnership.DoNotTransfer); __this.Request(p0, p1, p2, p3); }
public virtual void Request(global::Com.Jcraft.Jsch.Session p0, global::Com.Jcraft.Jsch.Channel p1) { if (id_request_Lcom_jcraft_jsch_Session_Lcom_jcraft_jsch_Channel_ == IntPtr.Zero) { id_request_Lcom_jcraft_jsch_Session_Lcom_jcraft_jsch_Channel_ = JNIEnv.GetMethodID(class_ref, "request", "(Lcom/jcraft/jsch/Session;Lcom/jcraft/jsch/Channel;)V"); } if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(Handle, id_request_Lcom_jcraft_jsch_Session_Lcom_jcraft_jsch_Channel_, new JValue(p0), new JValue(p1)); } else { JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "request", "(Lcom/jcraft/jsch/Session;Lcom/jcraft/jsch/Channel;)V"), new JValue(p0), new JValue(p1)); } }
public virtual void Request(global::Com.Jcraft.Jsch.Session p0, global::Com.Jcraft.Jsch.Channel p1, string p2, bool p3) { if (id_request_Lcom_jcraft_jsch_Session_Lcom_jcraft_jsch_Channel_Ljava_lang_String_Z == IntPtr.Zero) { id_request_Lcom_jcraft_jsch_Session_Lcom_jcraft_jsch_Channel_Ljava_lang_String_Z = JNIEnv.GetMethodID(class_ref, "request", "(Lcom/jcraft/jsch/Session;Lcom/jcraft/jsch/Channel;Ljava/lang/String;Z)V"); } IntPtr native_p2 = JNIEnv.NewString(p2); if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(Handle, id_request_Lcom_jcraft_jsch_Session_Lcom_jcraft_jsch_Channel_Ljava_lang_String_Z, new JValue(p0), new JValue(p1), new JValue(native_p2), new JValue(p3)); } else { JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "request", "(Lcom/jcraft/jsch/Session;Lcom/jcraft/jsch/Channel;Ljava/lang/String;Z)V"), new JValue(p0), new JValue(p1), new JValue(native_p2), new JValue(p3)); } JNIEnv.DeleteLocalRef(native_p2); }
public virtual bool Start(global::Com.Jcraft.Jsch.Session p0) { if (id_start_Lcom_jcraft_jsch_Session_ == IntPtr.Zero) { id_start_Lcom_jcraft_jsch_Session_ = JNIEnv.GetMethodID(class_ref, "start", "(Lcom/jcraft/jsch/Session;)Z"); } bool __ret; if (GetType() == ThresholdType) { __ret = JNIEnv.CallBooleanMethod(Handle, id_start_Lcom_jcraft_jsch_Session_, new JValue(p0)); } else { __ret = JNIEnv.CallNonvirtualBooleanMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "start", "(Lcom/jcraft/jsch/Session;)Z"), new JValue(p0)); } return(__ret); }
public abstract void Init(global::Com.Jcraft.Jsch.Session p0, byte[] p1, byte[] p2, byte[] p3, byte[] p4);