示例#1
0
        public Packet(global::Com.Jcraft.Jsch.Buffer p0) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (Handle != IntPtr.Zero)
            {
                return;
            }

            if (GetType() != typeof(Packet))
            {
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lcom/jcraft/jsch/Buffer;)V", new JValue(p0)),
                    JniHandleOwnership.TransferLocalRef);
                global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(Lcom/jcraft/jsch/Buffer;)V", new JValue(p0));
                return;
            }

            if (id_ctor_Lcom_jcraft_jsch_Buffer_ == IntPtr.Zero)
            {
                id_ctor_Lcom_jcraft_jsch_Buffer_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/jcraft/jsch/Buffer;)V");
            }
            SetHandle(
                global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_jcraft_jsch_Buffer_, new JValue(p0)),
                JniHandleOwnership.TransferLocalRef);
            JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Lcom_jcraft_jsch_Buffer_, new JValue(p0));
        }
示例#2
0
        static bool n_Next_Lcom_jcraft_jsch_Buffer_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            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.Buffer      p0     = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.Buffer> (native_p0, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.Next(p0);

            return(__ret);
        }
示例#3
0
        public override bool Next(global::Com.Jcraft.Jsch.Buffer p0)
        {
            if (id_next_Lcom_jcraft_jsch_Buffer_ == IntPtr.Zero)
            {
                id_next_Lcom_jcraft_jsch_Buffer_ = JNIEnv.GetMethodID(class_ref, "next", "(Lcom/jcraft/jsch/Buffer;)Z");
            }
            bool __ret = JNIEnv.CallBooleanMethod(Handle, id_next_Lcom_jcraft_jsch_Buffer_, new JValue(p0));

            return(__ret);
        }
示例#4
0
 static void n_PutString_arrayBII(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1, int p2)
 {
     global::Com.Jcraft.Jsch.Buffer __this = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.Buffer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     byte[] p0 = (byte[])JNIEnv.GetArray(native_p0, JniHandleOwnership.DoNotTransfer, typeof(byte));
     __this.PutString(p0, p1, p2);
     if (p0 != null)
     {
         JNIEnv.CopyArray(p0, native_p0);
     }
 }
        public override bool Next(global::Com.Jcraft.Jsch.Buffer p0)
        {
            if (id_next_Lcom_jcraft_jsch_Buffer_ == IntPtr.Zero)
            {
                id_next_Lcom_jcraft_jsch_Buffer_ = JNIEnv.GetMethodID(class_ref, "next", "(Lcom/jcraft/jsch/Buffer;)Z");
            }

            bool __ret;

            if (GetType() == ThresholdType)
            {
                __ret = JNIEnv.CallBooleanMethod(Handle, id_next_Lcom_jcraft_jsch_Buffer_, new JValue(p0));
            }
            else
            {
                __ret = JNIEnv.CallNonvirtualBooleanMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "next", "(Lcom/jcraft/jsch/Buffer;)Z"), new JValue(p0));
            }
            return(__ret);
        }
示例#6
0
 public abstract bool Next(global::Com.Jcraft.Jsch.Buffer p0);
示例#7
0
 static void n_Reset(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Jcraft.Jsch.Buffer __this = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.Buffer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Reset();
 }
示例#8
0
 static void n_PutLong_J(IntPtr jnienv, IntPtr native__this, long p0)
 {
     global::Com.Jcraft.Jsch.Buffer __this = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.Buffer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.PutLong(p0);
 }
示例#9
0
 static IntPtr n_GetString(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Jcraft.Jsch.Buffer __this = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.Buffer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewArray(__this.GetString()));
 }
示例#10
0
 static int n_GetByte_I(IntPtr jnienv, IntPtr native__this, int p0)
 {
     global::Com.Jcraft.Jsch.Buffer __this = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.Buffer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.GetByte(p0));
 }
示例#11
0
 static long n_GetUInt(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Jcraft.Jsch.Buffer __this = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.Buffer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.UInt);
 }
示例#12
0
 static void n_SetOffSet_I(IntPtr jnienv, IntPtr native__this, int p0)
 {
     global::Com.Jcraft.Jsch.Buffer __this = global::Java.Lang.Object.GetObject <global::Com.Jcraft.Jsch.Buffer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.OffSet = p0;
 }