static void n_Put_Ljava_lang_String_Lanetwork_channel_cache_Cache_Entry_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1) { global::Anetwork.Channel.Cache.ICache __this = global::Java.Lang.Object.GetObject <global::Anetwork.Channel.Cache.ICache> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer); global::Anetwork.Channel.Cache.CacheEntry p1 = global::Java.Lang.Object.GetObject <global::Anetwork.Channel.Cache.CacheEntry> (native_p1, JniHandleOwnership.DoNotTransfer); __this.Put(p0, p1); }
public unsafe void Put(string p0, global::Anetwork.Channel.Cache.CacheEntry p1) { if (id_put_Ljava_lang_String_Lanetwork_channel_cache_Cache_Entry_ == IntPtr.Zero) { id_put_Ljava_lang_String_Lanetwork_channel_cache_Cache_Entry_ = JNIEnv.GetMethodID(class_ref, "put", "(Ljava/lang/String;Lanetwork/channel/cache/Cache$Entry;)V"); } IntPtr native_p0 = JNIEnv.NewString(p0); JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(native_p0); __args [1] = new JValue(p1); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_put_Ljava_lang_String_Lanetwork_channel_cache_Cache_Entry_, __args); JNIEnv.DeleteLocalRef(native_p0); }
public unsafe global::Anetwork.Channel.Cache.CacheEntry Get(string p0) { if (id_get_Ljava_lang_String_ == IntPtr.Zero) { id_get_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "get", "(Ljava/lang/String;)Lanetwork/channel/cache/Cache$Entry;"); } IntPtr native_p0 = JNIEnv.NewString(p0); JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(native_p0); global::Anetwork.Channel.Cache.CacheEntry __ret = global::Java.Lang.Object.GetObject <global::Anetwork.Channel.Cache.CacheEntry> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_get_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.DeleteLocalRef(native_p0); return(__ret); }