public unsafe GzipSource(global::Okio.ISource p0) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); if (GetType() != typeof(GzipSource)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lokio/Source;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(Lokio/Source;)V", __args); return; } if (id_ctor_Lokio_Source_ == IntPtr.Zero) { id_ctor_Lokio_Source_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lokio/Source;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lokio_Source_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Lokio_Source_, __args); } finally { } }
static long n_Read_Lokio_Buffer_J (IntPtr jnienv, IntPtr native__this, IntPtr native_p0, long p1) { global::Okio.ISource __this = global::Java.Lang.Object.GetObject<global::Okio.ISource> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Okio.Buffer p0 = global::Java.Lang.Object.GetObject<global::Okio.Buffer> (native_p0, JniHandleOwnership.DoNotTransfer); long __ret = __this.Read (p0, p1); return __ret; }
public static unsafe global::Okio.IBufferedSource Buffer(global::Okio.ISource source) { const string __id = "buffer.(Lokio/Source;)Lokio/BufferedSource;"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((source == null) ? IntPtr.Zero : ((global::Java.Lang.Object)source).Handle); var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args); return(global::Java.Lang.Object.GetObject <global::Okio.IBufferedSource> (__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { } }
public unsafe global::Okio.ISource Source(global::Java.IO.File p0) { if (id_source_Ljava_io_File_ == IntPtr.Zero) { id_source_Ljava_io_File_ = JNIEnv.GetMethodID(class_ref, "source", "(Ljava/io/File;)Lokio/Source;"); } JValue *__args = stackalloc JValue [1]; __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle); global::Okio.ISource __ret = global::Java.Lang.Object.GetObject <global::Okio.ISource> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_source_Ljava_io_File_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); }
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 { } }
public static unsafe bool SkipAll(global::Okio.ISource source, int duration, global::Java.Util.Concurrent.TimeUnit timeUnit) { const string __id = "skipAll.(Lokio/Source;ILjava/util/concurrent/TimeUnit;)Z"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [3]; __args [0] = new JniArgumentValue((source == null) ? IntPtr.Zero : ((global::Java.Lang.Object)source).Handle); __args [1] = new JniArgumentValue(duration); __args [2] = new JniArgumentValue((timeUnit == null) ? IntPtr.Zero : ((global::Java.Lang.Object)timeUnit).Handle); var __rm = _members.StaticMethods.InvokeBooleanMethod(__id, __args); return(__rm); } finally { } }
public unsafe global::Okio.ISource Source(global::Okio.ISource p0) { if (id_source_Lokio_Source_ == IntPtr.Zero) { id_source_Lokio_Source_ = JNIEnv.GetMethodID(class_ref, "source", "(Lokio/Source;)Lokio/Source;"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); global::Okio.ISource __ret = global::Java.Lang.Object.GetObject <global::Okio.ISource> (JNIEnv.CallObjectMethod(Handle, id_source_Lokio_Source_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { } }
public static unsafe global::Okio.ISource Source(global::System.IO.Stream p0) { if (id_source_Ljava_io_InputStream_ == IntPtr.Zero) { id_source_Ljava_io_InputStream_ = JNIEnv.GetStaticMethodID(class_ref, "source", "(Ljava/io/InputStream;)Lokio/Source;"); } IntPtr native_p0 = global::Android.Runtime.InputStreamAdapter.ToLocalJniHandle(p0); try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(native_p0); global::Okio.ISource __ret = global::Java.Lang.Object.GetObject <global::Okio.ISource> (JNIEnv.CallStaticObjectMethod(class_ref, id_source_Ljava_io_InputStream_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); } }
public unsafe GzipSource(global::Okio.ISource source) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { const string __id = "(Lokio/Source;)V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((source == null) ? IntPtr.Zero : ((global::Java.Lang.Object)source).Handle); var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args); SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef); _members.InstanceMethods.FinishCreateInstance(__id, this, __args); } finally { } }
static void n_Close (IntPtr jnienv, IntPtr native__this) { global::Okio.ISource __this = global::Java.Lang.Object.GetObject<global::Okio.ISource> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); __this.Close (); }
static IntPtr n_Timeout (IntPtr jnienv, IntPtr native__this) { global::Okio.ISource __this = global::Java.Lang.Object.GetObject<global::Okio.ISource> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return JNIEnv.ToLocalJniHandle (__this.Timeout ()); }