public override unsafe IMessageLiteBuilder MergeFrom(global::Com.Google.Protobuf.CodedInputStream p0, global::Com.Google.Protobuf.ExtensionRegistryLite p1) { if (id_mergeFrom_Lcom_google_protobuf_CodedInputStream_Lcom_google_protobuf_ExtensionRegistryLite_ == IntPtr.Zero) { id_mergeFrom_Lcom_google_protobuf_CodedInputStream_Lcom_google_protobuf_ExtensionRegistryLite_ = JNIEnv.GetMethodID(class_ref, "mergeFrom", "(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;)Lcom/google/protobuf/GeneratedMessageLite$Builder;"); } try { JValue *__args = stackalloc JValue[2]; __args[0] = new JValue(p0); __args[1] = new JValue(p1); IMessageLiteBuilder __ret; if (((object)this).GetType() == ThresholdType) { __ret = (IMessageLiteBuilder)global::Java.Lang.Object.GetObject <global::Java.Lang.Object>(JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_mergeFrom_Lcom_google_protobuf_CodedInputStream_Lcom_google_protobuf_ExtensionRegistryLite_, __args), JniHandleOwnership.TransferLocalRef); } else { __ret = (IMessageLiteBuilder)global::Java.Lang.Object.GetObject <global::Java.Lang.Object>(JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "mergeFrom", "(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;)Lcom/google/protobuf/GeneratedMessageLite$Builder;"), __args), JniHandleOwnership.TransferLocalRef); } return(__ret); } finally { } }
static bool n_A_Lcom_google_protobuf_CodedInputStream_Lcom_google_protobuf_ExtensionRegistryLite_I(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, int p2) { global::Com.Google.Protobuf.GeneratedMessageLite __this = global::Java.Lang.Object.GetObject <global::Com.Google.Protobuf.GeneratedMessageLite> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Google.Protobuf.CodedInputStream p0 = global::Java.Lang.Object.GetObject <global::Com.Google.Protobuf.CodedInputStream> (native_p0, JniHandleOwnership.DoNotTransfer); global::Com.Google.Protobuf.ExtensionRegistryLite p1 = global::Java.Lang.Object.GetObject <global::Com.Google.Protobuf.ExtensionRegistryLite> (native_p1, JniHandleOwnership.DoNotTransfer); bool __ret = __this.A(p0, p1, p2); return(__ret); }
public static global::Com.Google.Protobuf.CodedInputStream NewInstance(global::System.IO.Stream p0) { if (id_newInstance_Ljava_io_InputStream_ == IntPtr.Zero) { id_newInstance_Ljava_io_InputStream_ = JNIEnv.GetStaticMethodID(class_ref, "newInstance", "(Ljava/io/InputStream;)Lcom/google/protobuf/CodedInputStream;"); } IntPtr native_p0 = global::Android.Runtime.InputStreamAdapter.ToLocalJniHandle(p0); global::Com.Google.Protobuf.CodedInputStream __ret = global::Java.Lang.Object.GetObject <global::Com.Google.Protobuf.CodedInputStream> (JNIEnv.CallStaticObjectMethod(class_ref, id_newInstance_Ljava_io_InputStream_, new JValue(native_p0)), JniHandleOwnership.TransferLocalRef); JNIEnv.DeleteLocalRef(native_p0); return(__ret); }
public static global::Com.Google.Protobuf.CodedInputStream NewInstance(byte[] p0, int p1, int p2) { if (id_newInstance_arrayBII == IntPtr.Zero) { id_newInstance_arrayBII = JNIEnv.GetStaticMethodID(class_ref, "newInstance", "([BII)Lcom/google/protobuf/CodedInputStream;"); } IntPtr native_p0 = JNIEnv.NewArray(p0); global::Com.Google.Protobuf.CodedInputStream __ret = global::Java.Lang.Object.GetObject <global::Com.Google.Protobuf.CodedInputStream> (JNIEnv.CallStaticObjectMethod(class_ref, id_newInstance_arrayBII, new JValue(native_p0), new JValue(p1), new JValue(p2)), JniHandleOwnership.TransferLocalRef); if (p0 != null) { JNIEnv.CopyArray(native_p0, p0); JNIEnv.DeleteLocalRef(native_p0); } return(__ret); }
protected virtual bool A(global::Com.Google.Protobuf.CodedInputStream p0, global::Com.Google.Protobuf.ExtensionRegistryLite p1, int p2) { if (id_a_Lcom_google_protobuf_CodedInputStream_Lcom_google_protobuf_ExtensionRegistryLite_I == IntPtr.Zero) { id_a_Lcom_google_protobuf_CodedInputStream_Lcom_google_protobuf_ExtensionRegistryLite_I = JNIEnv.GetMethodID(class_ref, "a", "(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;I)Z"); } bool __ret; if (GetType() == ThresholdType) { __ret = JNIEnv.CallBooleanMethod(Handle, id_a_Lcom_google_protobuf_CodedInputStream_Lcom_google_protobuf_ExtensionRegistryLite_I, new JValue(p0), new JValue(p1), new JValue(p2)); } else { __ret = JNIEnv.CallNonvirtualBooleanMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "a", "(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;I)Z"), new JValue(p0), new JValue(p1), new JValue(p2)); } return(__ret); }