2019-12-13 02:35:12 +00:00
|
|
|
.class public final Lx/q;
|
2019-12-06 03:29:40 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "RealBufferedSource.kt"
|
|
|
|
|
|
|
|
# interfaces
|
2019-12-13 02:35:12 +00:00
|
|
|
.implements Lx/g;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-12-13 02:35:12 +00:00
|
|
|
.field public final d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
.field public e:Z
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
.field public final f:Lx/w;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-12-13 02:35:12 +00:00
|
|
|
.method public constructor <init>(Lx/w;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iput-object p1, p0, Lx/q;->f:Lx/w;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
new-instance p1, Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-direct {p1}, Lx/e;-><init>()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iput-object p1, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "source"
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public a()I
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x4
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {p0, v0, v1}, Lx/q;->g(J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0}, Lx/e;->readInt()I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/high16 v1, -0x1000000
|
|
|
|
|
|
|
|
and-int/2addr v1, v0
|
|
|
|
|
|
|
|
ushr-int/lit8 v1, v1, 0x18
|
|
|
|
|
|
|
|
const/high16 v2, 0xff0000
|
|
|
|
|
|
|
|
and-int/2addr v2, v0
|
|
|
|
|
|
|
|
ushr-int/lit8 v2, v2, 0x8
|
|
|
|
|
|
|
|
or-int/2addr v1, v2
|
|
|
|
|
|
|
|
const v2, 0xff00
|
|
|
|
|
|
|
|
and-int/2addr v2, v0
|
|
|
|
|
|
|
|
shl-int/lit8 v2, v2, 0x8
|
|
|
|
|
|
|
|
or-int/2addr v1, v2
|
|
|
|
|
|
|
|
and-int/lit16 v0, v0, 0xff
|
|
|
|
|
|
|
|
shl-int/lit8 v0, v0, 0x18
|
|
|
|
|
|
|
|
or-int/2addr v0, v1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
.method public a(Lx/n;)I
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 8
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-boolean v0, p0, Lx/q;->e:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
:cond_0
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, p1, v1}, Lx/e;->a(Lx/n;Z)I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v2, -0x2
|
|
|
|
|
|
|
|
const/4 v3, -0x1
|
|
|
|
|
|
|
|
if-eq v0, v2, :cond_2
|
|
|
|
|
|
|
|
if-eq v0, v3, :cond_1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object p1, p1, Lx/n;->d:[Lokio/ByteString;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
aget-object p1, p1, v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lokio/ByteString;->j()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v1, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
int-to-long v2, p1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v1, v2, v3}, Lx/e;->skip(J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return v3
|
|
|
|
|
|
|
|
:cond_2
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->f:Lx/w;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v2, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/16 v4, 0x2000
|
|
|
|
|
|
|
|
int-to-long v4, v4
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-interface {v0, v2, v4, v5}, Lx/w;->b(Lx/e;J)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide v4
|
|
|
|
|
|
|
|
const-wide/16 v6, -0x1
|
|
|
|
|
|
|
|
cmp-long v0, v4, v6
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
return v3
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v0, "closed"
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const-string p1, "options"
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public a(B)J
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
|
|
|
|
const-wide v4, 0x7fffffffffffffffL
|
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
move v1, p1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual/range {v0 .. v5}, Lx/q;->a(BJJ)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public a(BJJ)J
|
|
|
|
.locals 8
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-boolean v0, p0, Lx/q;->e:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
|
|
|
|
cmp-long v0, v2, p2
|
|
|
|
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
cmp-long v0, p4, p2
|
|
|
|
|
|
|
|
if-ltz v0, :cond_1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
const-wide/16 v0, -0x1
|
|
|
|
|
|
|
|
cmp-long v2, p2, p4
|
|
|
|
|
|
|
|
if-gez v2, :cond_4
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v2, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move v3, p1
|
|
|
|
|
|
|
|
move-wide v4, p2
|
|
|
|
|
|
|
|
move-wide v6, p4
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual/range {v2 .. v7}, Lx/e;->a(BJJ)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
cmp-long v4, v2, v0
|
|
|
|
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
|
|
|
|
return-wide v2
|
|
|
|
|
|
|
|
:cond_2
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v2, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-wide v3, v2, Lx/e;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
cmp-long v5, v3, p4
|
|
|
|
|
|
|
|
if-gez v5, :cond_4
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v5, p0, Lx/q;->f:Lx/w;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/16 v6, 0x2000
|
|
|
|
|
|
|
|
int-to-long v6, v6
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-interface {v5, v2, v6, v7}, Lx/w;->b(Lx/e;J)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide v5
|
|
|
|
|
|
|
|
cmp-long v2, v5, v0
|
|
|
|
|
|
|
|
if-nez v2, :cond_3
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
invoke-static {p2, p3, v3, v4}, Ljava/lang/Math;->max(JJ)J
|
|
|
|
|
|
|
|
move-result-wide p2
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
:goto_3
|
|
|
|
return-wide v0
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
|
|
|
|
const-string v0, "fromIndex="
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p2, " toIndex="
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p4, p5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p2
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string p2, "closed"
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
.method public a(Lx/u;)J
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 9
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
|
|
|
move-wide v2, v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:goto_0
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v4, p0, Lx/q;->f:Lx/w;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v5, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/16 v6, 0x2000
|
|
|
|
|
|
|
|
int-to-long v6, v6
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-interface {v4, v5, v6, v7}, Lx/w;->b(Lx/e;J)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide v4
|
|
|
|
|
|
|
|
const-wide/16 v6, -0x1
|
|
|
|
|
|
|
|
cmp-long v8, v4, v6
|
|
|
|
|
|
|
|
if-eqz v8, :cond_1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v4, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v4}, Lx/e;->a()J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide v4
|
|
|
|
|
|
|
|
cmp-long v6, v4, v0
|
|
|
|
|
|
|
|
if-lez v6, :cond_0
|
|
|
|
|
|
|
|
add-long/2addr v2, v4
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v6, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-interface {p1, v6, v4, v5}, Lx/u;->write(Lx/e;J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v4, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-wide v5, v4, Lx/e;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
cmp-long v7, v5, v0
|
|
|
|
|
|
|
|
if-lez v7, :cond_2
|
|
|
|
|
|
|
|
add-long/2addr v2, v5
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-interface {p1, v4, v5, v6}, Lx/u;->write(Lx/e;J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return-wide v2
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const-string p1, "sink"
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public a(Ljava/nio/charset/Charset;)Ljava/lang/String;
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v1, p0, Lx/q;->f:Lx/w;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, v1}, Lx/e;->a(Lx/w;)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, p1}, Lx/e;->a(Ljava/nio/charset/Charset;)Ljava/lang/String;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "charset"
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
.method public a(Lx/e;J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
:try_start_0
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {p0, p2, p3}, Lx/q;->a(J)Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/io/EOFException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, p1, p2, p3}, Lx/e;->a(Lx/e;J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:try_start_1
|
|
|
|
new-instance p2, Ljava/io/EOFException;
|
|
|
|
|
|
|
|
invoke-direct {p2}, Ljava/io/EOFException;-><init>()V
|
|
|
|
|
|
|
|
throw p2
|
|
|
|
:try_end_1
|
|
|
|
.catch Ljava/io/EOFException; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception p2
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object p3, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {p1, p3}, Lx/e;->a(Lx/w;)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw p2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "sink"
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public a(J)Z
|
|
|
|
.locals 7
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
|
|
|
|
cmp-long v4, p1, v2
|
|
|
|
|
|
|
|
if-ltz v4, :cond_0
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-boolean v2, p0, Lx/q;->e:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
xor-int/2addr v2, v1
|
|
|
|
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
|
|
|
|
:cond_1
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v2, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-wide v3, v2, Lx/e;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
cmp-long v5, v3, p1
|
|
|
|
|
|
|
|
if-gez v5, :cond_2
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v3, p0, Lx/q;->f:Lx/w;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/16 v4, 0x2000
|
|
|
|
|
|
|
|
int-to-long v4, v4
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-interface {v3, v2, v4, v5}, Lx/w;->b(Lx/e;J)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
const-wide/16 v4, -0x1
|
|
|
|
|
|
|
|
cmp-long v6, v2, v4
|
|
|
|
|
|
|
|
if-nez v6, :cond_1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string p2, "closed"
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const-string v0, "byteCount < 0: "
|
|
|
|
|
|
|
|
invoke-static {v0, p1, p2}, Le/e/b/a/a;->a(Ljava/lang/String;J)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p2
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public b(Lokio/ByteString;)J
|
|
|
|
.locals 10
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-boolean v2, p0, Lx/q;->e:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
xor-int/lit8 v2, v2, 0x1
|
|
|
|
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
|
|
|
|
:goto_0
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v2, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v2, p1, v0, v1}, Lx/e;->a(Lokio/ByteString;J)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
const-wide/16 v4, -0x1
|
|
|
|
|
|
|
|
cmp-long v6, v2, v4
|
|
|
|
|
|
|
|
if-eqz v6, :cond_0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_0
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v2, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-wide v6, v2, Lx/e;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v3, p0, Lx/q;->f:Lx/w;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/16 v8, 0x2000
|
|
|
|
|
|
|
|
int-to-long v8, v8
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-interface {v3, v2, v8, v9}, Lx/w;->b(Lx/e;J)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
cmp-long v8, v2, v4
|
|
|
|
|
|
|
|
if-nez v8, :cond_1
|
|
|
|
|
|
|
|
move-wide v2, v4
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
return-wide v2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {p1}, Lokio/ByteString;->j()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
int-to-long v2, v2
|
|
|
|
|
|
|
|
sub-long/2addr v6, v2
|
|
|
|
|
|
|
|
const-wide/16 v2, 0x1
|
|
|
|
|
|
|
|
add-long/2addr v6, v2
|
|
|
|
|
|
|
|
invoke-static {v0, v1, v6, v7}, Ljava/lang/Math;->max(JJ)J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v0, "closed"
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const-string p1, "bytes"
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
.method public b(Lx/e;J)J
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 6
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
|
|
|
cmp-long v2, p2, v0
|
|
|
|
|
|
|
|
if-ltz v2, :cond_0
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-boolean v2, p0, Lx/q;->e:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
xor-int/lit8 v2, v2, 0x1
|
|
|
|
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v2, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-wide v3, v2, Lx/e;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
cmp-long v5, v3, v0
|
|
|
|
|
|
|
|
if-nez v5, :cond_1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->f:Lx/w;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/16 v1, 0x2000
|
|
|
|
|
|
|
|
int-to-long v3, v1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-interface {v0, v2, v3, v4}, Lx/w;->b(Lx/e;J)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
|
|
|
|
if-nez v4, :cond_1
|
|
|
|
|
|
|
|
return-wide v2
|
|
|
|
|
|
|
|
:cond_1
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-wide v0, v0, Lx/e;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-static {p2, p3, v0, v1}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
|
|
|
|
move-result-wide p2
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, p1, p2, p3}, Lx/e;->b(Lx/e;J)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide p1
|
|
|
|
|
|
|
|
return-wide p1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string p2, "closed"
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const-string p1, "byteCount < 0: "
|
|
|
|
|
|
|
|
invoke-static {p1, p2, p3}, Le/e/b/a/a;->a(Ljava/lang/String;J)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p2
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const-string p1, "sink"
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public c(Lokio/ByteString;)J
|
|
|
|
.locals 10
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-boolean v2, p0, Lx/q;->e:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
xor-int/lit8 v2, v2, 0x1
|
|
|
|
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
|
|
|
|
:goto_0
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v2, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v2, p1, v0, v1}, Lx/e;->b(Lokio/ByteString;J)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
const-wide/16 v4, -0x1
|
|
|
|
|
|
|
|
cmp-long v6, v2, v4
|
|
|
|
|
|
|
|
if-eqz v6, :cond_0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_0
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v2, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-wide v6, v2, Lx/e;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v3, p0, Lx/q;->f:Lx/w;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/16 v8, 0x2000
|
|
|
|
|
|
|
|
int-to-long v8, v8
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-interface {v3, v2, v8, v9}, Lx/w;->b(Lx/e;J)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
cmp-long v8, v2, v4
|
|
|
|
|
|
|
|
if-nez v8, :cond_1
|
|
|
|
|
|
|
|
move-wide v2, v4
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
return-wide v2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-static {v0, v1, v6, v7}, Ljava/lang/Math;->max(JJ)J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v0, "closed"
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const-string p1, "targetBytes"
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public close()V
|
|
|
|
.locals 3
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-boolean v0, p0, Lx/q;->e:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iput-boolean v0, p0, Lx/q;->e:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->f:Lx/w;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-interface {v0}, Lx/w;->close()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-wide v1, v0, Lx/e;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, v1, v2}, Lx/e;->skip(J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public d(J)Lokio/ByteString;
|
|
|
|
.locals 1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {p0, p1, p2}, Lx/q;->a(J)Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, p1, p2}, Lx/e;->d(J)Lokio/ByteString;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/io/EOFException;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public e(J)[B
|
|
|
|
.locals 1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {p0, p1, p2}, Lx/q;->a(J)Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, p1, p2}, Lx/e;->e(J)[B
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/io/EOFException;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public f(J)Ljava/lang/String;
|
|
|
|
.locals 13
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
|
|
|
cmp-long v2, p1, v0
|
|
|
|
|
|
|
|
if-ltz v2, :cond_0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x1
|
|
|
|
|
|
|
|
const-wide v2, 0x7fffffffffffffffL
|
|
|
|
|
|
|
|
cmp-long v4, p1, v2
|
|
|
|
|
|
|
|
if-nez v4, :cond_1
|
|
|
|
|
|
|
|
move-wide v4, v2
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
add-long v4, p1, v0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
const/16 v6, 0xa
|
|
|
|
|
|
|
|
int-to-byte v12, v6
|
|
|
|
|
|
|
|
const-wide/16 v8, 0x0
|
|
|
|
|
|
|
|
move-object v6, p0
|
|
|
|
|
|
|
|
move v7, v12
|
|
|
|
|
|
|
|
move-wide v10, v4
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual/range {v6 .. v11}, Lx/q;->a(BJJ)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide v6
|
|
|
|
|
|
|
|
const-wide/16 v8, -0x1
|
|
|
|
|
|
|
|
cmp-long v10, v6, v8
|
|
|
|
|
|
|
|
if-eqz v10, :cond_2
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object p1, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {p1, v6, v7}, Lx/e;->j(J)Ljava/lang/String;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
cmp-long v6, v4, v2
|
|
|
|
|
|
|
|
if-gez v6, :cond_3
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {p0, v4, v5}, Lx/q;->a(J)Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v2, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
sub-long v6, v4, v0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v2, v6, v7}, Lx/e;->h(J)B
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
const/16 v3, 0xd
|
|
|
|
|
|
|
|
int-to-byte v3, v3
|
|
|
|
|
|
|
|
if-ne v2, v3, :cond_3
|
|
|
|
|
|
|
|
add-long/2addr v0, v4
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {p0, v0, v1}, Lx/q;->a(J)Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, v4, v5}, Lx/e;->h(J)B
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-ne v0, v12, :cond_3
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object p1, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {p1, v4, v5}, Lx/e;->j(J)Ljava/lang/String;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_3
|
2019-12-13 02:35:12 +00:00
|
|
|
new-instance v6, Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-direct {v6}, Lx/e;-><init>()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
|
|
|
|
const/16 v1, 0x20
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-wide v4, v0, Lx/e;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
int-to-long v7, v1
|
|
|
|
|
|
|
|
invoke-static {v7, v8, v4, v5}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
|
|
|
|
move-result-wide v4
|
|
|
|
|
|
|
|
move-object v1, v6
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual/range {v0 .. v5}, Lx/e;->a(Lx/e;JJ)Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
new-instance v0, Ljava/io/EOFException;
|
|
|
|
|
|
|
|
const-string v1, "\\n not found: limit="
|
|
|
|
|
|
|
|
invoke-static {v1}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v2, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-wide v2, v2, Lx/e;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
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-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v6}, Lx/e;->b()Lokio/ByteString;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lokio/ByteString;->f()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string p1, "\u2026"
|
|
|
|
|
|
|
|
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)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_4
|
|
|
|
const-string v0, "limit < 0: "
|
|
|
|
|
|
|
|
invoke-static {v0, p1, p2}, Le/e/b/a/a;->a(Ljava/lang/String;J)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p2
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public g(J)V
|
|
|
|
.locals 0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {p0, p1, p2}, Lx/q;->a(J)Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
.method public isOpen()Z
|
|
|
|
.locals 1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-boolean v0, p0, Lx/q;->e:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
.method public n()Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public p()Ljava/lang/String;
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const-wide v0, 0x7fffffffffffffffL
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {p0, v0, v1}, Lx/q;->f(J)Ljava/lang/String;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public q()Z
|
|
|
|
.locals 6
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-boolean v0, p0, Lx/q;->e:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0}, Lx/e;->q()Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->f:Lx/w;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v2, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/16 v3, 0x2000
|
|
|
|
|
|
|
|
int-to-long v3, v3
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-interface {v0, v2, v3, v4}, Lx/w;->b(Lx/e;J)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
const-wide/16 v4, -0x1
|
|
|
|
|
|
|
|
cmp-long v0, v2, v4
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v1, "closed"
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public r()J
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {p0, v0, v1}, Lx/q;->g(J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
add-int/lit8 v2, v1, 0x1
|
|
|
|
|
|
|
|
int-to-long v3, v2
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {p0, v3, v4}, Lx/q;->a(J)Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_5
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v3, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
int-to-long v4, v1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v3, v4, v5}, Lx/e;->h(J)B
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
const/16 v4, 0x30
|
|
|
|
|
|
|
|
int-to-byte v4, v4
|
|
|
|
|
|
|
|
if-lt v3, v4, :cond_0
|
|
|
|
|
|
|
|
const/16 v4, 0x39
|
|
|
|
|
|
|
|
int-to-byte v4, v4
|
|
|
|
|
|
|
|
if-le v3, v4, :cond_2
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/16 v4, 0x61
|
|
|
|
|
|
|
|
int-to-byte v4, v4
|
|
|
|
|
|
|
|
if-lt v3, v4, :cond_1
|
|
|
|
|
|
|
|
const/16 v4, 0x66
|
|
|
|
|
|
|
|
int-to-byte v4, v4
|
|
|
|
|
|
|
|
if-le v3, v4, :cond_2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/16 v4, 0x41
|
|
|
|
|
|
|
|
int-to-byte v4, v4
|
|
|
|
|
|
|
|
if-lt v3, v4, :cond_3
|
|
|
|
|
|
|
|
const/16 v4, 0x46
|
|
|
|
|
|
|
|
int-to-byte v4, v4
|
|
|
|
|
|
|
|
if-le v3, v4, :cond_2
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
move v1, v2
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
:goto_1
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
new-instance v1, Ljava/lang/NumberFormatException;
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-static {v3}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
aput-object v3, v2, v0
|
|
|
|
|
|
|
|
array-length v0, v2
|
|
|
|
|
|
|
|
invoke-static {v2, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v2, "Expected leading [0-9a-fA-F] character but was %#x"
|
|
|
|
|
|
|
|
invoke-static {v2, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v2, "java.lang.String.format(format, *args)"
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-static {v0, v2}, Ls/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-direct {v1, v0}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
:goto_2
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0}, Lx/e;->r()J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public read(Ljava/nio/ByteBuffer;)I
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-wide v1, v0, Lx/e;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
|
|
|
|
cmp-long v5, v1, v3
|
|
|
|
|
|
|
|
if-nez v5, :cond_0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v1, p0, Lx/q;->f:Lx/w;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/16 v2, 0x2000
|
|
|
|
|
|
|
|
int-to-long v2, v2
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-interface {v1, v0, v2, v3}, Lx/w;->b(Lx/e;J)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
:cond_0
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, p1}, Lx/e;->read(Ljava/nio/ByteBuffer;)I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "sink"
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public readByte()B
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {p0, v0, v1}, Lx/q;->g(J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0}, Lx/e;->readByte()B
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public readFully([B)V
|
|
|
|
.locals 8
|
|
|
|
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
array-length v0, p1
|
|
|
|
|
|
|
|
int-to-long v0, v0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {p0, v0, v1}, Lx/q;->g(J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/io/EOFException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0, p1}, Lx/e;->readFully([B)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v2, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-wide v3, v2, Lx/e;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const-wide/16 v5, 0x0
|
|
|
|
|
|
|
|
cmp-long v7, v3, v5
|
|
|
|
|
|
|
|
if-lez v7, :cond_1
|
|
|
|
|
|
|
|
long-to-int v4, v3
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v2, p1, v1, v4}, Lx/e;->a([BII)I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const-string p1, "sink"
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public readInt()I
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x4
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {p0, v0, v1}, Lx/q;->g(J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0}, Lx/e;->readInt()I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public readLong()J
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x8
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {p0, v0, v1}, Lx/q;->g(J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0}, Lx/e;->readLong()J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public readShort()S
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x2
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {p0, v0, v1}, Lx/q;->g(J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v0}, Lx/e;->readShort()S
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public s()Ljava/io/InputStream;
|
|
|
|
.locals 1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
new-instance v0, Lx/q$a;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-direct {v0, p0}, Lx/q$a;-><init>(Lx/q;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public skip(J)V
|
|
|
|
.locals 6
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-boolean v0, p0, Lx/q;->e:Z
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
|
|
|
cmp-long v2, p1, v0
|
|
|
|
|
|
|
|
if-lez v2, :cond_2
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v2, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-wide v3, v2, Lx/e;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
cmp-long v5, v3, v0
|
|
|
|
|
|
|
|
if-nez v5, :cond_1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->f:Lx/w;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/16 v1, 0x2000
|
|
|
|
|
|
|
|
int-to-long v3, v1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-interface {v0, v2, v3, v4}, Lx/w;->b(Lx/e;J)J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
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-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-wide v0, v0, Lx/e;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-static {p1, p2, v0, v1}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v2, p0, Lx/q;->d:Lx/e;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-virtual {v2, v0, v1}, Lx/e;->skip(J)V
|
2019-12-06 03:29:40 +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-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
.method public timeout()Lx/x;
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v0, p0, Lx/q;->f:Lx/w;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
invoke-interface {v0}, Lx/w;->timeout()Lx/x;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const-string v0, "buffer("
|
|
|
|
|
|
|
|
invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-12-13 02:35:12 +00:00
|
|
|
iget-object v1, p0, Lx/q;->f:Lx/w;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const/16 v1, 0x29
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|