apkfuckery/com.discord/smali_classes2/okio/l.smali

1487 lines
27 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class final Lokio/l;
.super Ljava/lang/Object;
2019-02-27 21:13:14 +00:00
.source "RealBufferedSource.java"
2019-02-04 20:08:30 +00:00
# interfaces
2019-02-27 21:13:14 +00:00
.implements Lokio/d;
2019-02-04 20:08:30 +00:00
# instance fields
2019-05-08 22:54:48 +00:00
.field public final bvN:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
.field public final bwE:Lokio/q;
2019-02-04 20:08:30 +00:00
.field closed:Z
# direct methods
.method constructor <init>(Lokio/q;)V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Lokio/c;
invoke-direct {v0}, Lokio/c;-><init>()V
2019-05-08 22:54:48 +00:00
iput-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-04 20:08:30 +00:00
if-eqz p1, :cond_0
2019-05-08 22:54:48 +00:00
iput-object p1, p0, Lokio/l;->bwE:Lokio/q;
2019-02-04 20:08:30 +00:00
return-void
:cond_0
new-instance p1, Ljava/lang/NullPointerException;
2019-02-27 21:13:14 +00:00
const-string v0, "source == null"
2019-02-04 20:08:30 +00:00
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
.end method
2019-02-27 21:13:14 +00:00
.method private a(BJJ)J
.locals 9
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lokio/l;->closed:Z
2019-05-03 18:53:54 +00:00
if-nez v0, :cond_4
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const-wide/16 v0, 0x0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
cmp-long v2, p4, v0
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-ltz v2, :cond_3
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:goto_0
const-wide/16 v0, -0x1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
cmp-long v2, p2, p4
2019-02-04 20:08:30 +00:00
2019-05-03 18:53:54 +00:00
if-gez v2, :cond_2
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v3, p0, Lokio/l;->bvN:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move v4, p1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-wide v5, p2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-wide v7, p4
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual/range {v3 .. v8}, Lokio/c;->a(BJJ)J
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-wide v2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
cmp-long v4, v2, v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-eqz v4, :cond_0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
return-wide v2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_0
2019-05-08 22:54:48 +00:00
iget-object v2, p0, Lokio/l;->bvN:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget-wide v2, v2, Lokio/c;->size:J
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
cmp-long v4, v2, p4
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-gez v4, :cond_2
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v4, p0, Lokio/l;->bwE:Lokio/q;
2019-02-04 20:29:01 +00:00
2019-05-08 22:54:48 +00:00
iget-object v5, p0, Lokio/l;->bvN:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const-wide/16 v6, 0x2000
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-interface {v4, v5, v6, v7}, Lokio/q;->a(Lokio/c;J)J
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-wide v4
cmp-long v6, v4, v0
if-nez v6, :cond_1
goto :goto_1
2019-02-04 20:08:30 +00:00
2019-02-27 00:16:35 +00:00
:cond_1
2019-02-27 21:13:14 +00:00
invoke-static {p2, p3, v2, v3}, Ljava/lang/Math;->max(JJ)J
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-wide p2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
goto :goto_0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_2
:goto_1
return-wide v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_3
new-instance p1, Ljava/lang/IllegalArgumentException;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/4 p2, 0x2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
new-array p2, p2, [Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/4 p3, 0x0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-object v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
aput-object v0, p2, p3
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/4 p3, 0x1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-static {p4, p5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-object p4
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
aput-object p4, p2, p3
2019-02-04 20:29:01 +00:00
2019-02-27 21:13:14 +00:00
const-string p3, "fromIndex=%s toIndex=%s"
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-static {p3, p2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-object p2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
throw p1
2019-05-03 18:53:54 +00:00
:cond_4
2019-02-27 21:13:14 +00:00
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
return-void
2019-02-04 20:08:30 +00:00
.end method
2019-02-27 21:13:14 +00:00
# virtual methods
2019-05-04 02:59:52 +00:00
.method public final DG()Lokio/c;
.locals 1
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-05-04 02:59:52 +00:00
return-object v0
.end method
.method public final DI()Z
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lokio/l;->closed:Z
if-nez v0, :cond_1
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-05-04 02:59:52 +00:00
invoke-virtual {v0}, Lokio/c;->DI()Z
move-result v0
if-eqz v0, :cond_0
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bwE:Lokio/q;
2019-05-04 02:59:52 +00:00
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokio/l;->bvN:Lokio/c;
2019-05-04 02:59:52 +00:00
const-wide/16 v2, 0x2000
invoke-interface {v0, v1, v2, v3}, Lokio/q;->a(Lokio/c;J)J
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-nez v4, :cond_0
const/4 v0, 0x1
return v0
:cond_0
const/4 v0, 0x0
return v0
:cond_1
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public final DJ()Ljava/io/InputStream;
.locals 1
new-instance v0, Lokio/l$1;
invoke-direct {v0, p0}, Lokio/l$1;-><init>(Lokio/l;)V
return-object v0
.end method
.method public final DL()S
2019-02-27 21:13:14 +00:00
.locals 2
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-02-27 21:13:14 +00:00
const-wide/16 v0, 0x2
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {p0, v0, v1}, Lokio/l;->av(J)V
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v0}, Lokio/c;->readShort()S
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-static {v0}, Lokio/s;->a(S)S
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result v0
2019-02-27 00:16:35 +00:00
2019-02-27 21:13:14 +00:00
return v0
2019-02-04 20:08:30 +00:00
.end method
2019-05-04 02:59:52 +00:00
.method public final DM()I
2019-02-27 21:13:14 +00:00
.locals 2
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-02-27 21:13:14 +00:00
const-wide/16 v0, 0x4
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {p0, v0, v1}, Lokio/l;->av(J)V
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v0}, Lokio/c;->readInt()I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result v0
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-static {v0}, Lokio/s;->dF(I)I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
return v0
2019-02-04 20:08:30 +00:00
.end method
2019-05-04 02:59:52 +00:00
.method public final DN()J
2019-02-04 20:08:30 +00:00
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-02-27 21:13:14 +00:00
const-wide/16 v0, 0x1
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {p0, v0, v1}, Lokio/l;->av(J)V
2019-02-04 20:08:30 +00:00
2019-02-27 00:16:35 +00:00
const/4 v0, 0x0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/4 v1, 0x0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:goto_0
add-int/lit8 v2, v1, 0x1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
int-to-long v3, v2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {p0, v3, v4}, Lokio/l;->request(J)Z
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result v3
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-eqz v3, :cond_5
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v3, p0, Lokio/l;->bvN:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
int-to-long v4, v1
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {v3, v4, v5}, Lokio/c;->aw(J)B
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result v3
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/16 v4, 0x30
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-lt v3, v4, :cond_0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/16 v4, 0x39
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-le v3, v4, :cond_2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_0
const/16 v4, 0x61
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-lt v3, v4, :cond_1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/16 v4, 0x66
if-le v3, v4, :cond_2
:cond_1
const/16 v4, 0x41
if-lt v3, v4, :cond_3
const/16 v4, 0x46
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-le v3, v4, :cond_2
goto :goto_1
2019-02-27 00:16:35 +00:00
:cond_2
2019-02-27 21:13:14 +00:00
move v1, v2
goto :goto_0
:cond_3
2019-02-04 20:08:30 +00:00
:goto_1
2019-02-27 21:13:14 +00:00
if-eqz v1, :cond_4
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
goto :goto_2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_4
new-instance v1, Ljava/lang/NumberFormatException;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/4 v2, 0x1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
new-array v2, v2, [Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-static {v3}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-object v3
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
aput-object v3, v2, v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const-string v0, "Expected leading [0-9a-fA-F] character but was %#x"
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-static {v0, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-object v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct {v1, v0}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
throw v1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_5
:goto_2
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {v0}, Lokio/c;->DN()J
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-wide v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
return-wide v0
2019-02-04 20:08:30 +00:00
.end method
2019-05-04 02:59:52 +00:00
.method public final DP()Ljava/lang/String;
2019-02-27 21:13:14 +00:00
.locals 2
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-02-27 21:13:14 +00:00
const-wide v0, 0x7fffffffffffffffL
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {p0, v0, v1}, Lokio/l;->az(J)Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-object v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
return-object v0
.end method
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
.method public final DQ()J
2019-02-27 21:13:14 +00:00
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/4 v1, 0x0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const-wide/16 v2, 0x0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const-wide v4, 0x7fffffffffffffffL
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-object v0, p0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-direct/range {v0 .. v5}, Lokio/l;->a(BJJ)J
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-wide v0
return-wide v0
2019-02-04 20:08:30 +00:00
.end method
2019-02-27 21:13:14 +00:00
.method public final a(Lokio/c;J)J
.locals 5
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-02-27 21:13:14 +00:00
if-eqz p1, :cond_3
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const-wide/16 v0, 0x0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
cmp-long v2, p2, v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-ltz v2, :cond_2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget-boolean v2, p0, Lokio/l;->closed:Z
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-nez v2, :cond_1
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v2, p0, Lokio/l;->bvN:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget-wide v2, v2, Lokio/c;->size:J
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
cmp-long v4, v2, v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-nez v4, :cond_0
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bwE:Lokio/q;
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokio/l;->bvN:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const-wide/16 v2, 0x2000
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-interface {v0, v1, v2, v3}, Lokio/q;->a(Lokio/c;J)J
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result-wide v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const-wide/16 v2, -0x1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
cmp-long v4, v0, v2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-nez v4, :cond_0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
return-wide v2
2019-02-04 20:08:30 +00:00
:cond_0
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget-wide v0, v0, Lokio/c;->size:J
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-static {p2, p3, v0, v1}, Ljava/lang/Math;->min(JJ)J
move-result-wide p2
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-27 21:13:14 +00:00
invoke-virtual {v0, p1, p2, p3}, Lokio/c;->a(Lokio/c;J)J
move-result-wide p1
return-wide p1
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_2
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-static {p2, p3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object p2
const-string p3, "byteCount < 0: "
invoke-virtual {p3, p2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_3
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string p2, "sink == null"
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public final a(Lokio/p;)J
.locals 9
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-eqz p1, :cond_3
const-wide/16 v0, 0x0
move-wide v2, v0
:cond_0
:goto_0
2019-05-08 22:54:48 +00:00
iget-object v4, p0, Lokio/l;->bwE:Lokio/q;
2019-02-27 21:13:14 +00:00
2019-05-08 22:54:48 +00:00
iget-object v5, p0, Lokio/l;->bvN:Lokio/c;
2019-02-27 21:13:14 +00:00
const-wide/16 v6, 0x2000
invoke-interface {v4, v5, v6, v7}, Lokio/q;->a(Lokio/c;J)J
move-result-wide v4
const-wide/16 v6, -0x1
cmp-long v8, v4, v6
if-eqz v8, :cond_1
2019-05-08 22:54:48 +00:00
iget-object v4, p0, Lokio/l;->bvN:Lokio/c;
2019-02-27 21:13:14 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {v4}, Lokio/c;->DK()J
2019-02-27 21:13:14 +00:00
move-result-wide v4
cmp-long v6, v4, v0
if-lez v6, :cond_0
add-long/2addr v2, v4
2019-05-08 22:54:48 +00:00
iget-object v6, p0, Lokio/l;->bvN:Lokio/c;
2019-02-27 21:13:14 +00:00
invoke-interface {p1, v6, v4, v5}, Lokio/p;->write(Lokio/c;J)V
goto :goto_0
:cond_1
2019-05-08 22:54:48 +00:00
iget-object v4, p0, Lokio/l;->bvN:Lokio/c;
2019-02-27 21:13:14 +00:00
iget-wide v4, v4, Lokio/c;->size:J
cmp-long v6, v4, v0
if-lez v6, :cond_2
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-27 21:13:14 +00:00
iget-wide v0, v0, Lokio/c;->size:J
add-long/2addr v2, v0
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-27 21:13:14 +00:00
iget-wide v4, v0, Lokio/c;->size:J
invoke-interface {p1, v0, v4, v5}, Lokio/p;->write(Lokio/c;J)V
:cond_2
return-wide v2
:cond_3
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "sink == null"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
return-void
.end method
2019-05-04 02:59:52 +00:00
.method public final aB(J)[B
2019-05-03 18:53:54 +00:00
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-05-04 02:59:52 +00:00
invoke-virtual {p0, p1, p2}, Lokio/l;->av(J)V
2019-05-03 18:53:54 +00:00
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-05-03 18:53:54 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {v0, p1, p2}, Lokio/c;->aB(J)[B
2019-05-03 18:53:54 +00:00
move-result-object p1
return-object p1
.end method
2019-05-04 02:59:52 +00:00
.method public final aC(J)V
2019-05-03 18:53:54 +00:00
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lokio/l;->closed:Z
if-nez v0, :cond_3
:goto_0
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-lez v2, :cond_2
2019-05-08 22:54:48 +00:00
iget-object v2, p0, Lokio/l;->bvN:Lokio/c;
2019-05-03 18:53:54 +00:00
iget-wide v2, v2, Lokio/c;->size:J
cmp-long v4, v2, v0
if-nez v4, :cond_1
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bwE:Lokio/q;
2019-05-03 18:53:54 +00:00
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokio/l;->bvN:Lokio/c;
2019-05-03 18:53:54 +00:00
const-wide/16 v2, 0x2000
invoke-interface {v0, v1, v2, v3}, Lokio/q;->a(Lokio/c;J)J
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-eqz v4, :cond_0
goto :goto_1
:cond_0
new-instance p1, Ljava/io/EOFException;
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
throw p1
:cond_1
:goto_1
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-05-03 18:53:54 +00:00
iget-wide v0, v0, Lokio/c;->size:J
invoke-static {p1, p2, v0, v1}, Ljava/lang/Math;->min(JJ)J
move-result-wide v0
2019-05-08 22:54:48 +00:00
iget-object v2, p0, Lokio/l;->bvN:Lokio/c;
2019-05-03 18:53:54 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {v2, v0, v1}, Lokio/c;->aC(J)V
2019-05-03 18:53:54 +00:00
sub-long/2addr p1, v0
goto :goto_0
:cond_2
return-void
:cond_3
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
return-void
.end method
2019-05-04 02:59:52 +00:00
.method public final av(J)V
2019-02-27 21:13:14 +00:00
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-virtual {p0, p1, p2}, Lokio/l;->request(J)Z
move-result p1
if-eqz p1, :cond_0
return-void
:cond_0
new-instance p1, Ljava/io/EOFException;
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
throw p1
.end method
2019-05-04 02:59:52 +00:00
.method public final ax(J)Lokio/ByteString;
2019-02-27 21:13:14 +00:00
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-05-04 02:59:52 +00:00
invoke-virtual {p0, p1, p2}, Lokio/l;->av(J)V
2019-02-27 21:13:14 +00:00
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-27 21:13:14 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {v0, p1, p2}, Lokio/c;->ax(J)Lokio/ByteString;
2019-02-27 21:13:14 +00:00
move-result-object p1
return-object p1
.end method
2019-05-04 02:59:52 +00:00
.method public final az(J)Ljava/lang/String;
2019-02-27 21:13:14 +00:00
.locals 12
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-ltz v2, :cond_3
const-wide/16 v0, 0x1
const-wide v2, 0x7fffffffffffffffL
cmp-long v4, p1, v2
if-nez v4, :cond_0
move-wide v4, v2
goto :goto_0
:cond_0
add-long v4, p1, v0
:goto_0
const/16 v7, 0xa
const-wide/16 v8, 0x0
move-object v6, p0
move-wide v10, v4
invoke-direct/range {v6 .. v11}, Lokio/l;->a(BJJ)J
move-result-wide v6
const-wide/16 v8, -0x1
cmp-long v10, v6, v8
if-eqz v10, :cond_1
2019-05-08 22:54:48 +00:00
iget-object p1, p0, Lokio/l;->bvN:Lokio/c;
2019-02-27 21:13:14 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {p1, v6, v7}, Lokio/c;->aA(J)Ljava/lang/String;
2019-02-27 21:13:14 +00:00
move-result-object p1
return-object p1
:cond_1
cmp-long v6, v4, v2
if-gez v6, :cond_2
invoke-virtual {p0, v4, v5}, Lokio/l;->request(J)Z
move-result v2
if-eqz v2, :cond_2
2019-05-08 22:54:48 +00:00
iget-object v2, p0, Lokio/l;->bvN:Lokio/c;
2019-02-27 21:13:14 +00:00
sub-long v6, v4, v0
2019-05-04 02:59:52 +00:00
invoke-virtual {v2, v6, v7}, Lokio/c;->aw(J)B
2019-02-27 21:13:14 +00:00
move-result v2
const/16 v3, 0xd
if-ne v2, v3, :cond_2
add-long/2addr v0, v4
invoke-virtual {p0, v0, v1}, Lokio/l;->request(J)Z
move-result v0
if-eqz v0, :cond_2
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-27 21:13:14 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {v0, v4, v5}, Lokio/c;->aw(J)B
2019-02-27 21:13:14 +00:00
move-result v0
const/16 v1, 0xa
if-ne v0, v1, :cond_2
2019-05-08 22:54:48 +00:00
iget-object p1, p0, Lokio/l;->bvN:Lokio/c;
2019-02-27 21:13:14 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {p1, v4, v5}, Lokio/c;->aA(J)Ljava/lang/String;
2019-02-27 21:13:14 +00:00
move-result-object p1
return-object p1
:cond_2
new-instance v6, Lokio/c;
invoke-direct {v6}, Lokio/c;-><init>()V
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-27 21:13:14 +00:00
const-wide/16 v2, 0x0
const-wide/16 v4, 0x20
iget-wide v7, v0, Lokio/c;->size:J
invoke-static {v4, v5, v7, v8}, Ljava/lang/Math;->min(JJ)J
move-result-wide v4
move-object v1, v6
invoke-virtual/range {v0 .. v5}, Lokio/c;->a(Lokio/c;JJ)Lokio/c;
new-instance v0, Ljava/io/EOFException;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "\\n not found: limit="
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-05-08 22:54:48 +00:00
iget-object v2, p0, Lokio/l;->bvN:Lokio/c;
2019-02-27 21:13:14 +00:00
iget-wide v2, v2, Lokio/c;->size:J
invoke-static {v2, v3, p1, p2}, Ljava/lang/Math;->min(JJ)J
move-result-wide p1
invoke-virtual {v1, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string p1, " content="
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-05-04 02:59:52 +00:00
invoke-virtual {v6}, Lokio/c;->CU()Lokio/ByteString;
2019-02-27 21:13:14 +00:00
move-result-object p1
2019-05-04 02:59:52 +00:00
invoke-virtual {p1}, Lokio/ByteString;->DX()Ljava/lang/String;
2019-02-27 21:13:14 +00:00
move-result-object p1
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 p1, 0x2026
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/io/EOFException;-><init>(Ljava/lang/String;)V
throw v0
:cond_3
new-instance v0, Ljava/lang/IllegalArgumentException;
invoke-static {p1, p2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object p1
const-string p2, "limit < 0: "
invoke-virtual {p2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public final b(Lokio/c;J)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
:try_start_0
2019-05-04 02:59:52 +00:00
invoke-virtual {p0, p2, p3}, Lokio/l;->av(J)V
2019-02-27 21:13:14 +00:00
:try_end_0
.catch Ljava/io/EOFException; {:try_start_0 .. :try_end_0} :catch_0
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-27 21:13:14 +00:00
invoke-virtual {v0, p1, p2, p3}, Lokio/c;->b(Lokio/c;J)V
return-void
:catch_0
move-exception p2
2019-05-08 22:54:48 +00:00
iget-object p3, p0, Lokio/l;->bvN:Lokio/c;
2019-02-27 21:13:14 +00:00
invoke-virtual {p1, p3}, Lokio/c;->a(Lokio/q;)J
throw p2
.end method
.method public final c(Ljava/nio/charset/Charset;)Ljava/lang/String;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-eqz p1, :cond_0
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-27 21:13:14 +00:00
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokio/l;->bwE:Lokio/q;
2019-02-27 21:13:14 +00:00
invoke-virtual {v0, v1}, Lokio/c;->a(Lokio/q;)J
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-27 21:13:14 +00:00
invoke-virtual {v0, p1}, Lokio/c;->c(Ljava/nio/charset/Charset;)Ljava/lang/String;
move-result-object p1
return-object p1
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "charset == null"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
2019-02-27 00:16:35 +00:00
throw p1
2019-02-04 20:08:30 +00:00
.end method
2019-02-27 21:13:14 +00:00
.method public final close()V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-boolean v0, p0, Lokio/l;->closed:Z
if-eqz v0, :cond_0
return-void
:cond_0
const/4 v0, 0x1
iput-boolean v0, p0, Lokio/l;->closed:Z
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bwE:Lokio/q;
2019-02-27 21:13:14 +00:00
invoke-interface {v0}, Lokio/q;->close()V
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-27 21:13:14 +00:00
invoke-virtual {v0}, Lokio/c;->clear()V
return-void
.end method
.method public final h(Lokio/ByteString;)Z
.locals 7
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-02-27 21:13:14 +00:00
invoke-virtual {p1}, Lokio/ByteString;->size()I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget-boolean v1, p0, Lokio/l;->closed:Z
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-nez v1, :cond_5
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/4 v1, 0x0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-ltz v0, :cond_4
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {p1}, Lokio/ByteString;->size()I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result v2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
sub-int/2addr v2, v1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-ge v2, v0, :cond_0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
:cond_0
2019-02-27 21:13:14 +00:00
const/4 v2, 0x0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:goto_0
if-ge v2, v0, :cond_3
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const-wide/16 v3, 0x0
int-to-long v5, v2
add-long/2addr v5, v3
const-wide/16 v3, 0x1
add-long/2addr v3, v5
invoke-virtual {p0, v3, v4}, Lokio/l;->request(J)Z
move-result v3
if-nez v3, :cond_1
return v1
2019-02-04 20:08:30 +00:00
:cond_1
2019-05-08 22:54:48 +00:00
iget-object v3, p0, Lokio/l;->bvN:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {v3, v5, v6}, Lokio/c;->aw(J)B
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result v3
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
add-int/lit8 v4, v2, 0x0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {p1, v4}, Lokio/ByteString;->getByte(I)B
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result v4
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-eq v3, v4, :cond_2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
return v1
:cond_2
add-int/lit8 v2, v2, 0x1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
goto :goto_0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_3
const/4 p1, 0x1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
return p1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_4
:goto_1
return v1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:cond_5
2019-02-04 20:08:30 +00:00
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "closed"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
2019-02-27 21:13:14 +00:00
return-void
2019-02-04 20:08:30 +00:00
.end method
.method public final isOpen()Z
.locals 1
iget-boolean v0, p0, Lokio/l;->closed:Z
if-nez v0, :cond_0
const/4 v0, 0x1
return v0
:cond_0
const/4 v0, 0x0
return v0
.end method
2019-02-27 21:13:14 +00:00
.method public final read(Ljava/nio/ByteBuffer;)I
.locals 5
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget-wide v0, v0, Lokio/c;->size:J
const-wide/16 v2, 0x0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
cmp-long v4, v0, v2
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
if-nez v4, :cond_0
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bwE:Lokio/q;
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokio/l;->bvN:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const-wide/16 v2, 0x2000
invoke-interface {v0, v1, v2, v3}, Lokio/q;->a(Lokio/c;J)J
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-nez v4, :cond_0
const/4 p1, -0x1
return p1
2019-02-04 20:08:30 +00:00
:cond_0
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v0, p1}, Lokio/c;->read(Ljava/nio/ByteBuffer;)I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result p1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
return p1
2019-02-04 20:08:30 +00:00
.end method
2019-02-27 21:13:14 +00:00
.method public final readByte()B
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const-wide/16 v0, 0x1
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {p0, v0, v1}, Lokio/l;->av(J)V
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v0}, Lokio/c;->readByte()B
move-result v0
return v0
2019-02-04 20:08:30 +00:00
.end method
2019-02-27 21:13:14 +00:00
.method public final readFully([B)V
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:try_start_0
array-length v0, p1
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
int-to-long v0, v0
2019-02-04 20:29:01 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {p0, v0, v1}, Lokio/l;->av(J)V
2019-02-27 21:13:14 +00:00
:try_end_0
.catch Ljava/io/EOFException; {:try_start_0 .. :try_end_0} :catch_0
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v0, p1}, Lokio/c;->readFully([B)V
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
return-void
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:catch_0
move-exception v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const/4 v1, 0x0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
:goto_0
2019-05-08 22:54:48 +00:00
iget-object v2, p0, Lokio/l;->bvN:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget-wide v2, v2, Lokio/c;->size:J
const-wide/16 v4, 0x0
cmp-long v6, v2, v4
if-lez v6, :cond_1
2019-05-08 22:54:48 +00:00
iget-object v2, p0, Lokio/l;->bvN:Lokio/c;
2019-02-27 21:13:14 +00:00
iget-wide v3, v2, Lokio/c;->size:J
long-to-int v4, v3
invoke-virtual {v2, p1, v1, v4}, Lokio/c;->read([BII)I
move-result v2
const/4 v3, -0x1
if-eq v2, v3, :cond_0
add-int/2addr v1, v2
goto :goto_0
:cond_0
new-instance p1, Ljava/lang/AssertionError;
invoke-direct {p1}, Ljava/lang/AssertionError;-><init>()V
throw p1
:cond_1
throw v0
return-void
2019-02-04 20:08:30 +00:00
.end method
2019-02-27 21:13:14 +00:00
.method public final readInt()I
.locals 2
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-02-27 21:13:14 +00:00
const-wide/16 v0, 0x4
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {p0, v0, v1}, Lokio/l;->av(J)V
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v0}, Lokio/c;->readInt()I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
return v0
.end method
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
.method public final readLong()J
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
const-wide/16 v0, 0x8
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {p0, v0, v1}, Lokio/l;->av(J)V
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v0}, Lokio/c;->readLong()J
move-result-wide v0
return-wide v0
2019-02-04 20:08:30 +00:00
.end method
2019-02-27 21:13:14 +00:00
.method public final readShort()S
.locals 2
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-02-27 21:13:14 +00:00
const-wide/16 v0, 0x2
2019-02-04 20:08:30 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {p0, v0, v1}, Lokio/l;->av(J)V
2019-02-04 20:08:30 +00:00
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-virtual {v0}, Lokio/c;->readShort()S
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
move-result v0
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
return v0
.end method
.method public final request(J)Z
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-ltz v2, :cond_3
iget-boolean v0, p0, Lokio/l;->closed:Z
if-nez v0, :cond_2
2019-02-04 20:08:30 +00:00
2019-02-27 00:16:35 +00:00
:cond_0
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bvN:Lokio/c;
2019-02-27 21:13:14 +00:00
iget-wide v0, v0, Lokio/c;->size:J
cmp-long v2, v0, p1
if-gez v2, :cond_1
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bwE:Lokio/q;
2019-02-27 21:13:14 +00:00
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokio/l;->bvN:Lokio/c;
2019-02-27 21:13:14 +00:00
const-wide/16 v2, 0x2000
invoke-interface {v0, v1, v2, v3}, Lokio/q;->a(Lokio/c;J)J
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-nez v4, :cond_0
const/4 p1, 0x0
return p1
:cond_1
const/4 p1, 0x1
return p1
:cond_2
2019-02-04 20:08:30 +00:00
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
2019-02-27 21:13:14 +00:00
:cond_3
new-instance v0, Ljava/lang/IllegalArgumentException;
invoke-static {p1, p2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;
move-result-object p1
const-string p2, "byteCount < 0: "
invoke-virtual {p2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
return-void
.end method
.method public final timeout()Lokio/r;
.locals 1
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokio/l;->bwE:Lokio/q;
2019-02-27 21:13:14 +00:00
invoke-interface {v0}, Lokio/q;->timeout()Lokio/r;
move-result-object v0
return-object v0
.end method
.method public final toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "buffer("
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokio/l;->bwE:Lokio/q;
2019-02-27 21:13:14 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ")"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
2019-02-04 20:08:30 +00:00
.end method