2020-11-12 02:11:44 +00:00
|
|
|
.class public final Ld0/n;
|
|
|
|
.super Ljava/lang/Object;
|
2020-11-14 03:19:56 +00:00
|
|
|
.source "JvmOkio.kt"
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
# interfaces
|
|
|
|
.implements Ld0/x;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-11-14 03:19:56 +00:00
|
|
|
.field public final d:Ljava/io/InputStream;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
.field public final e:Ld0/y;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-11-14 03:19:56 +00:00
|
|
|
.method public constructor <init>(Ljava/io/InputStream;Ld0/y;)V
|
|
|
|
.locals 1
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
const-string v0, "input"
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-static {p1, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
const-string v0, "timeout"
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-static {p2, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
iput-object p1, p0, Ld0/n;->d:Ljava/io/InputStream;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
iput-object p2, p0, Ld0/n;->e:Ld0/y;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
# virtual methods
|
2020-11-14 03:19:56 +00:00
|
|
|
.method public close()V
|
|
|
|
.locals 1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
iget-object v0, p0, Ld0/n;->d:Ljava/io/InputStream;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-virtual {v0}, Ljava/io/InputStream;->close()V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
.method public timeout()Ld0/y;
|
|
|
|
.locals 1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
iget-object v0, p0, Ld0/n;->e:Ld0/y;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
return-object v0
|
|
|
|
.end method
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
.method public toString()Ljava/lang/String;
|
|
|
|
.locals 2
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
const-string v0, "source("
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-static {v0}, Lf/e/c/a/a;->F(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
move-result-object v0
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
iget-object v1, p0, Ld0/n;->d:Ljava/io/InputStream;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
const/16 v1, 0x29
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
.method public v0(Ld0/e;J)J
|
|
|
|
.locals 3
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
const-string v0, "sink"
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-static {p1, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
const-wide/16 v0, 0x0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
cmp-long v2, p2, v0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
if-nez v2, :cond_0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
return-wide v0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
:cond_0
|
2020-11-14 03:19:56 +00:00
|
|
|
const/4 v0, 0x1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
if-ltz v2, :cond_1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
const/4 v1, 0x1
|
2020-11-14 02:19:59 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 02:19:59 +00:00
|
|
|
:cond_1
|
|
|
|
const/4 v1, 0x0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
:goto_0
|
|
|
|
if-eqz v1, :cond_5
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
:try_start_0
|
|
|
|
iget-object v1, p0, Ld0/n;->e:Ld0/y;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-virtual {v1}, Ld0/y;->f()V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-virtual {p1, v0}, Ld0/e;->F(I)Ld0/s;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
move-result-object v0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
iget v1, v0, Ld0/s;->c:I
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
rsub-int v1, v1, 0x2000
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
int-to-long v1, v1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-static {p2, p3, v1, v2}, Ljava/lang/Math;->min(JJ)J
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
move-result-wide p2
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
long-to-int p3, p2
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
iget-object p2, p0, Ld0/n;->d:Ljava/io/InputStream;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
iget-object v1, v0, Ld0/s;->a:[B
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
iget v2, v0, Ld0/s;->c:I
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-virtual {p2, v1, v2, p3}, Ljava/io/InputStream;->read([BII)I
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
move-result p2
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
const/4 p3, -0x1
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
if-ne p2, p3, :cond_3
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
iget p2, v0, Ld0/s;->b:I
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
iget p3, v0, Ld0/s;->c:I
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
if-ne p2, p3, :cond_2
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-virtual {v0}, Ld0/s;->a()Ld0/s;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
move-result-object p2
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
iput-object p2, p1, Ld0/e;->d:Ld0/s;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-static {v0}, Ld0/t;->a(Ld0/s;)V
|
2020-11-14 02:19:59 +00:00
|
|
|
|
|
|
|
:cond_2
|
2020-11-14 03:19:56 +00:00
|
|
|
const-wide/16 p1, -0x1
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
return-wide p1
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
:cond_3
|
|
|
|
iget p3, v0, Ld0/s;->c:I
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
add-int/2addr p3, p2
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
iput p3, v0, Ld0/s;->c:I
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
iget-wide v0, p1, Ld0/e;->e:J
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
int-to-long p2, p2
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
add-long/2addr v0, p2
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
iput-wide v0, p1, Ld0/e;->e:J
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/AssertionError; {:try_start_0 .. :try_end_0} :catch_0
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
return-wide p2
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
:catch_0
|
|
|
|
move-exception p1
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-static {p1}, Lz/a/g0;->s(Ljava/lang/AssertionError;)Z
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
move-result p2
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
if-eqz p2, :cond_4
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
new-instance p2, Ljava/io/IOException;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-direct {p2, p1}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
throw p2
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
:cond_4
|
|
|
|
throw p1
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
:cond_5
|
|
|
|
const-string p1, "byteCount < 0: "
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-static {p1, p2, p3}, Lf/e/c/a/a;->o(Ljava/lang/String;J)Ljava/lang/String;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
move-result-object p1
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
move-result-object p1
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
2020-11-14 02:19:59 +00:00
|
|
|
|
2020-11-14 03:19:56 +00:00
|
|
|
throw p2
|
2020-11-12 02:11:44 +00:00
|
|
|
.end method
|