Example #1
0
        public virtual sbyte GetCommandLength(int p0)
        {
            if (id_getCommandLength_I == IntPtr.Zero)
            {
                id_getCommandLength_I = JNIEnv.GetMethodID(class_ref, "getCommandLength", "(I)B");
            }

            if (GetType() == ThresholdType)
            {
                return(JNIEnv.CallByteMethod(Handle, id_getCommandLength_I, new JValue(p0)));
            }
            else
            {
                return(JNIEnv.CallNonvirtualByteMethod(Handle, ThresholdClass, id_getCommandLength_I, new JValue(p0)));
            }
        }
Example #2
0
 public virtual unsafe sbyte ToByte()
 {
     if (id_toByte == IntPtr.Zero)
     {
         id_toByte = JNIEnv.GetMethodID(class_ref, "toByte", "()B");
     }
     try {
         if (((object)this).GetType() == ThresholdType)
         {
             return(JNIEnv.CallByteMethod(((global::Java.Lang.Object) this).Handle, id_toByte));
         }
         else
         {
             return(JNIEnv.CallNonvirtualByteMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "toByte", "()B")));
         }
     } finally {
     }
 }
        public virtual unsafe sbyte GetByte(int key)
        {
            if (id_getByte_I == IntPtr.Zero)
            {
                id_getByte_I = JNIEnv.GetMethodID(class_ref, "getByte", "(I)B");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(key);

                if (((object)this).GetType() == ThresholdType)
                {
                    return(JNIEnv.CallByteMethod(((global::Java.Lang.Object) this).Handle, id_getByte_I, __args));
                }
                else
                {
                    return(JNIEnv.CallNonvirtualByteMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getByte", "(I)B"), __args));
                }
            } finally {
            }
        }
        public virtual unsafe sbyte GetByte(int p0)
        {
            if (id_getByte_I == IntPtr.Zero)
            {
                id_getByte_I = JNIEnv.GetMethodID(class_ref, "getByte", "(I)B");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (GetType() == ThresholdType)
                {
                    return(JNIEnv.CallByteMethod(Handle, id_getByte_I, __args));
                }
                else
                {
                    return(JNIEnv.CallNonvirtualByteMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "getByte", "(I)B"), __args));
                }
            } finally {
            }
        }