public virtual unsafe bool RangeEquals(int p0, global::Okio.ByteString p1, int p2, int p3) { if (id_rangeEquals_ILokio_ByteString_II == IntPtr.Zero) { id_rangeEquals_ILokio_ByteString_II = JNIEnv.GetMethodID(class_ref, "rangeEquals", "(ILokio/ByteString;II)Z"); } try { JValue *__args = stackalloc JValue [4]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); __args [3] = new JValue(p3); bool __ret; if (GetType() == ThresholdType) { __ret = JNIEnv.CallBooleanMethod(Handle, id_rangeEquals_ILokio_ByteString_II, __args); } else { __ret = JNIEnv.CallNonvirtualBooleanMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "rangeEquals", "(ILokio/ByteString;II)Z"), __args); } return(__ret); } finally { } }
static void n_GoAway_ILokhttp3_internal_http2_ErrorCode_Lokio_ByteString_(IntPtr jnienv, IntPtr native__this, int p0, IntPtr native_p1, IntPtr native_p2) { global::Okhttp3.Internal.Http2.Http2Reader.IHandler __this = global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.Http2.Http2Reader.IHandler> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Okhttp3.Internal.Http2.ErrorCode p1 = global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.Http2.ErrorCode> (native_p1, JniHandleOwnership.DoNotTransfer); global::Okio.ByteString p2 = global::Java.Lang.Object.GetObject <global::Okio.ByteString> (native_p2, JniHandleOwnership.DoNotTransfer); __this.GoAway(p0, p1, p2); }
static void n_OnMessage_Lokhttp3_WebSocket_Lokio_ByteString_(IntPtr jnienv, IntPtr native__this, IntPtr native_webSocket, IntPtr native_bytes) { global::Okhttp3.WebSocketListener __this = global::Java.Lang.Object.GetObject <global::Okhttp3.WebSocketListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Okhttp3.IWebSocket webSocket = (global::Okhttp3.IWebSocket)global::Java.Lang.Object.GetObject <global::Okhttp3.IWebSocket> (native_webSocket, JniHandleOwnership.DoNotTransfer); global::Okio.ByteString bytes = global::Java.Lang.Object.GetObject <global::Okio.ByteString> (native_bytes, JniHandleOwnership.DoNotTransfer); __this.OnMessage(webSocket, bytes); }
static bool n_RangeEquals_ILokio_ByteString_II(IntPtr jnienv, IntPtr native__this, int offset, IntPtr native_other, int otherOffset, int byteCount) { global::Okio.ByteString __this = global::Java.Lang.Object.GetObject <global::Okio.ByteString> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Okio.ByteString other = global::Java.Lang.Object.GetObject <global::Okio.ByteString> (native_other, JniHandleOwnership.DoNotTransfer); bool __ret = __this.RangeEquals(offset, other, otherOffset, byteCount); return(__ret); }
static int n_RawCompareTo_Lokio_ByteString_(IntPtr jnienv, IntPtr native__this, IntPtr native_byteString) { global::Okio.ByteString __this = global::Java.Lang.Object.GetObject <global::Okio.ByteString> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Okio.ByteString byteString = global::Java.Lang.Object.GetObject <global::Okio.ByteString> (native_byteString, JniHandleOwnership.DoNotTransfer); int __ret = __this.RawCompareTo(byteString); return(__ret); }
static bool n_RangeEquals_ILokio_ByteString_II(IntPtr jnienv, IntPtr native__this, int p0, IntPtr native_p1, int p2, int p3) { global::Okio.ByteString __this = global::Java.Lang.Object.GetObject <global::Okio.ByteString> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Okio.ByteString p1 = global::Java.Lang.Object.GetObject <global::Okio.ByteString> (native_p1, JniHandleOwnership.DoNotTransfer); bool __ret = __this.RangeEquals(p0, p1, p2, p3); return(__ret); }
static bool n_Send_Lokio_ByteString_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Okhttp3.IWebSocket __this = global::Java.Lang.Object.GetObject <global::Okhttp3.IWebSocket> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Okio.ByteString p0 = global::Java.Lang.Object.GetObject <global::Okio.ByteString> (native_p0, JniHandleOwnership.DoNotTransfer); bool __ret = __this.Send(p0); return(__ret); }
static void n_AlternateService_ILjava_lang_String_Lokio_ByteString_Ljava_lang_String_IJ(IntPtr jnienv, IntPtr native__this, int p0, IntPtr native_p1, IntPtr native_p2, IntPtr native_p3, int p4, long p5) { global::Okhttp3.Internal.Http2.Http2Reader.IHandler __this = global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.Http2.Http2Reader.IHandler> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); string p1 = JNIEnv.GetString(native_p1, JniHandleOwnership.DoNotTransfer); global::Okio.ByteString p2 = global::Java.Lang.Object.GetObject <global::Okio.ByteString> (native_p2, JniHandleOwnership.DoNotTransfer); string p3 = JNIEnv.GetString(native_p3, JniHandleOwnership.DoNotTransfer); __this.AlternateService(p0, p1, p2, p3, p4, p5); }
public unsafe void OnReadPong(global::Okio.ByteString p0) { if (id_onReadPong_Lokio_ByteString_ == IntPtr.Zero) { id_onReadPong_Lokio_ByteString_ = JNIEnv.GetMethodID(class_ref, "onReadPong", "(Lokio/ByteString;)V"); } JValue *__args = stackalloc JValue [1]; __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onReadPong_Lokio_ByteString_, __args); }
public unsafe void OnReadPong(global::Okio.ByteString buffer) { const string __id = "onReadPong.(Lokio/ByteString;)V"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((buffer == null) ? IntPtr.Zero : ((global::Java.Lang.Object)buffer).Handle); _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args); } finally { } }
static bool n_RangeEquals_IarrayBII(IntPtr jnienv, IntPtr native__this, int offset, IntPtr native_other, int otherOffset, int byteCount) { global::Okio.ByteString __this = global::Java.Lang.Object.GetObject <global::Okio.ByteString> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); byte[] other = (byte[])JNIEnv.GetArray(native_other, JniHandleOwnership.DoNotTransfer, typeof(byte)); bool __ret = __this.RangeEquals(offset, other, otherOffset, byteCount); if (other != null) { JNIEnv.CopyArray(other, native_other); } return(__ret); }
public unsafe int LastIndexOf(global::Okio.ByteString other) { const string __id = "lastIndexOf.(Lokio/ByteString;)I"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((other == null) ? IntPtr.Zero : ((global::Java.Lang.Object)other).Handle); var __rm = _members.InstanceMethods.InvokeNonvirtualInt32Method(__id, this, __args); return(__rm); } finally { } }
static int n_LastIndexOf_arrayBI(IntPtr jnienv, IntPtr native__this, IntPtr native_other, int fromIndex) { global::Okio.ByteString __this = global::Java.Lang.Object.GetObject <global::Okio.ByteString> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); byte[] other = (byte[])JNIEnv.GetArray(native_other, JniHandleOwnership.DoNotTransfer, typeof(byte)); int __ret = __this.LastIndexOf(other, fromIndex); if (other != null) { JNIEnv.CopyArray(other, native_other); } return(__ret); }
public virtual unsafe int RawCompareTo(global::Okio.ByteString byteString) { const string __id = "compareTo.(Lokio/ByteString;)I"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((byteString == null) ? IntPtr.Zero : ((global::Java.Lang.Object)byteString).Handle); var __rm = _members.InstanceMethods.InvokeVirtualInt32Method(__id, this, __args); return(__rm); } finally { } }
static bool n_RangeEquals_IarrayBII(IntPtr jnienv, IntPtr native__this, int p0, IntPtr native_p1, int p2, int p3) { global::Okio.ByteString __this = global::Java.Lang.Object.GetObject <global::Okio.ByteString> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); byte[] p1 = (byte[])JNIEnv.GetArray(native_p1, JniHandleOwnership.DoNotTransfer, typeof(byte)); bool __ret = __this.RangeEquals(p0, p1, p2, p3); if (p1 != null) { JNIEnv.CopyArray(p1, native_p1); } return(__ret); }
public unsafe bool StartsWith(global::Okio.ByteString prefix) { const string __id = "startsWith.(Lokio/ByteString;)Z"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((prefix == null) ? IntPtr.Zero : ((global::Java.Lang.Object)prefix).Handle); var __rm = _members.InstanceMethods.InvokeNonvirtualBooleanMethod(__id, this, __args); return(__rm); } finally { } }
public virtual unsafe void OnMessage(global::Okhttp3.IWebSocket webSocket, global::Okio.ByteString bytes) { const string __id = "onMessage.(Lokhttp3/WebSocket;Lokio/ByteString;)V"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue((webSocket == null) ? IntPtr.Zero : ((global::Java.Lang.Object)webSocket).Handle); __args [1] = new JniArgumentValue((bytes == null) ? IntPtr.Zero : ((global::Java.Lang.Object)bytes).Handle); _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args); } finally { } }
public unsafe bool Send(global::Okio.ByteString bytes) { const string __id = "send.(Lokio/ByteString;)Z"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((bytes == null) ? IntPtr.Zero : ((global::Java.Lang.Object)bytes).Handle); var __rm = _members.InstanceMethods.InvokeAbstractBooleanMethod(__id, this, __args); return(__rm); } finally { } }
public unsafe bool Send(global::Okio.ByteString p0) { if (id_send_Lokio_ByteString_ == IntPtr.Zero) { id_send_Lokio_ByteString_ = JNIEnv.GetMethodID(class_ref, "send", "(Lokio/ByteString;)Z"); } JValue *__args = stackalloc JValue [1]; __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle); bool __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_send_Lokio_ByteString_, __args); return(__ret); }
public virtual unsafe bool RangeEquals(int offset, global::Okio.ByteString other, int otherOffset, int byteCount) { const string __id = "rangeEquals.(ILokio/ByteString;II)Z"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [4]; __args [0] = new JniArgumentValue(offset); __args [1] = new JniArgumentValue((other == null) ? IntPtr.Zero : ((global::Java.Lang.Object)other).Handle); __args [2] = new JniArgumentValue(otherOffset); __args [3] = new JniArgumentValue(byteCount); var __rm = _members.InstanceMethods.InvokeVirtualBooleanMethod(__id, this, __args); return(__rm); } finally { } }
public static unsafe global::Okio.ByteString EncodeUtf8(string p0) { if (id_encodeUtf8_Ljava_lang_String_ == IntPtr.Zero) { id_encodeUtf8_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "encodeUtf8", "(Ljava/lang/String;)Lokio/ByteString;"); } IntPtr native_p0 = JNIEnv.NewString(p0); try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(native_p0); global::Okio.ByteString __ret = global::Java.Lang.Object.GetObject <global::Okio.ByteString> (JNIEnv.CallStaticObjectMethod(class_ref, id_encodeUtf8_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); } }
public static unsafe global::Okio.ByteString Read(global::System.IO.Stream p0, int p1) { if (id_read_Ljava_io_InputStream_I == IntPtr.Zero) { id_read_Ljava_io_InputStream_I = JNIEnv.GetStaticMethodID(class_ref, "read", "(Ljava/io/InputStream;I)Lokio/ByteString;"); } IntPtr native_p0 = global::Android.Runtime.InputStreamAdapter.ToLocalJniHandle(p0); try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(native_p0); __args [1] = new JValue(p1); global::Okio.ByteString __ret = global::Java.Lang.Object.GetObject <global::Okio.ByteString> (JNIEnv.CallStaticObjectMethod(class_ref, id_read_Ljava_io_InputStream_I, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); } }
public unsafe Header(global::Okio.ByteString name, global::Okio.ByteString value) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { const string __id = "(Lokio/ByteString;Lokio/ByteString;)V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue((name == null) ? IntPtr.Zero : ((global::Java.Lang.Object)name).Handle); __args [1] = new JniArgumentValue((value == null) ? IntPtr.Zero : ((global::Java.Lang.Object)value).Handle); var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args); SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef); _members.InstanceMethods.FinishCreateInstance(__id, this, __args); } finally { } }
public unsafe void AlternateService(int p0, string p1, global::Okio.ByteString p2, string p3, int p4, long p5) { if (id_alternateService_ILjava_lang_String_Lokio_ByteString_Ljava_lang_String_IJ == IntPtr.Zero) { id_alternateService_ILjava_lang_String_Lokio_ByteString_Ljava_lang_String_IJ = JNIEnv.GetMethodID(class_ref, "alternateService", "(ILjava/lang/String;Lokio/ByteString;Ljava/lang/String;IJ)V"); } IntPtr native_p1 = JNIEnv.NewString(p1); IntPtr native_p3 = JNIEnv.NewString(p3); JValue *__args = stackalloc JValue [6]; __args [0] = new JValue(p0); __args [1] = new JValue(native_p1); __args [2] = new JValue((p2 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p2).Handle); __args [3] = new JValue(native_p3); __args [4] = new JValue(p4); __args [5] = new JValue(p5); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_alternateService_ILjava_lang_String_Lokio_ByteString_Ljava_lang_String_IJ, __args); JNIEnv.DeleteLocalRef(native_p1); JNIEnv.DeleteLocalRef(native_p3); }
public static unsafe global::Okio.ByteString Of(params byte[] p0) { if (id_of_arrayB == IntPtr.Zero) { id_of_arrayB = JNIEnv.GetStaticMethodID(class_ref, "of", "([B)Lokio/ByteString;"); } IntPtr native_p0 = JNIEnv.NewArray(p0); try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(native_p0); global::Okio.ByteString __ret = global::Java.Lang.Object.GetObject <global::Okio.ByteString> (JNIEnv.CallStaticObjectMethod(class_ref, id_of_arrayB, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { if (p0 != null) { JNIEnv.CopyArray(native_p0, p0); JNIEnv.DeleteLocalRef(native_p0); } } }
public virtual unsafe int CompareTo(global::Okio.ByteString p0) { if (id_compareTo_Lokio_ByteString_ == IntPtr.Zero) { id_compareTo_Lokio_ByteString_ = JNIEnv.GetMethodID(class_ref, "compareTo", "(Lokio/ByteString;)I"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); int __ret; if (GetType() == ThresholdType) { __ret = JNIEnv.CallIntMethod(Handle, id_compareTo_Lokio_ByteString_, __args); } else { __ret = JNIEnv.CallNonvirtualIntMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "compareTo", "(Lokio/ByteString;)I"), __args); } return(__ret); } finally { } }
public unsafe void GoAway(int p0, global::Okhttp3.Internal.Http2.ErrorCode p1, global::Okio.ByteString p2) { if (id_goAway_ILokhttp3_internal_http2_ErrorCode_Lokio_ByteString_ == IntPtr.Zero) { id_goAway_ILokhttp3_internal_http2_ErrorCode_Lokio_ByteString_ = JNIEnv.GetMethodID(class_ref, "goAway", "(ILokhttp3/internal/http2/ErrorCode;Lokio/ByteString;)V"); } JValue *__args = stackalloc JValue [3]; __args [0] = new JValue(p0); __args [1] = new JValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle); __args [2] = new JValue((p2 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p2).Handle); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_goAway_ILokhttp3_internal_http2_ErrorCode_Lokio_ByteString_, __args); }
static void n_OnReadPong_Lokio_ByteString_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Okhttp3.Internal.WS.WebSocketReader.IFrameCallback __this = global::Java.Lang.Object.GetObject <global::Okhttp3.Internal.WS.WebSocketReader.IFrameCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Okio.ByteString p0 = global::Java.Lang.Object.GetObject <global::Okio.ByteString> (native_p0, JniHandleOwnership.DoNotTransfer); __this.OnReadPong(p0); }
public static unsafe global::Okio.HashingSource HmacSha256(global::Okio.ISource source, global::Okio.ByteString key) { const string __id = "hmacSha256.(Lokio/Source;Lokio/ByteString;)Lokio/HashingSource;"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue((source == null) ? IntPtr.Zero : ((global::Java.Lang.Object)source).Handle); __args [1] = new JniArgumentValue((key == null) ? IntPtr.Zero : ((global::Java.Lang.Object)key).Handle); var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args); return(global::Java.Lang.Object.GetObject <global::Okio.HashingSource> (__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { } }
global::Okio.IBufferedSink global::Okio.IBufferedSink.Write(global::Okio.ByteString p0) { return(Write(p0)); }