2019-02-04 20:08:30 +00:00
|
|
|
.class final Lokio/j$2;
|
|
|
|
.super Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "Okio.java"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
# interfaces
|
2019-02-27 21:13:14 +00:00
|
|
|
.implements Lokio/q;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
2019-02-27 21:13:14 +00:00
|
|
|
value = Lokio/j;->a(Ljava/io/InputStream;Lokio/r;)Lokio/q;
|
2019-02-04 20:08:30 +00:00
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x0
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-03-26 19:13:28 +00:00
|
|
|
.field final synthetic bvc:Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-26 19:13:28 +00:00
|
|
|
.field final synthetic bve:Ljava/io/InputStream;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-02-27 21:13:14 +00:00
|
|
|
.method constructor <init>(Lokio/r;Ljava/io/InputStream;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 0
|
|
|
|
|
2019-03-26 19:13:28 +00:00
|
|
|
iput-object p1, p0, Lokio/j$2;->bvc:Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-26 19:13:28 +00:00
|
|
|
iput-object p2, p0, Lokio/j$2;->bve:Ljava/io/InputStream;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final a(Lokio/c;J)J
|
|
|
|
.locals 3
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
|
|
|
cmp-long v2, p2, v0
|
|
|
|
|
|
|
|
if-ltz v2, :cond_3
|
|
|
|
|
|
|
|
cmp-long v2, p2, v0
|
|
|
|
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:try_start_0
|
2019-03-26 19:13:28 +00:00
|
|
|
iget-object v0, p0, Lokio/j$2;->bvc:Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-22 22:04:12 +00:00
|
|
|
invoke-virtual {v0}, Lokio/r;->Cs()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-virtual {p1, v0}, Lokio/c;->dn(I)Lokio/m;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
iget v1, v0, Lokio/m;->limit:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
rsub-int v1, v1, 0x2000
|
|
|
|
|
|
|
|
int-to-long v1, v1
|
|
|
|
|
|
|
|
invoke-static {p2, p3, v1, v2}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
|
|
|
|
move-result-wide p2
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
long-to-int p3, p2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-26 19:13:28 +00:00
|
|
|
iget-object p2, p0, Lokio/j$2;->bve:Ljava/io/InputStream;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
iget-object v1, v0, Lokio/m;->data:[B
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
iget v2, v0, Lokio/m;->limit:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-virtual {p2, v1, v2, p3}, Ljava/io/InputStream;->read([BII)I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
const/4 p3, -0x1
|
|
|
|
|
|
|
|
if-ne p2, p3, :cond_1
|
|
|
|
|
|
|
|
const-wide/16 p1, -0x1
|
|
|
|
|
|
|
|
return-wide p1
|
|
|
|
|
|
|
|
:cond_1
|
2019-02-27 21:13:14 +00:00
|
|
|
iget p3, v0, Lokio/m;->limit:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
add-int/2addr p3, p2
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
iput p3, v0, Lokio/m;->limit:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iget-wide v0, p1, Lokio/c;->size:J
|
|
|
|
|
|
|
|
int-to-long p2, p2
|
|
|
|
|
|
|
|
add-long/2addr v0, p2
|
|
|
|
|
|
|
|
iput-wide v0, p1, Lokio/c;->size:J
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/AssertionError; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
return-wide p2
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception p1
|
|
|
|
|
|
|
|
invoke-static {p1}, Lokio/j;->a(Ljava/lang/AssertionError;)Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
|
|
|
|
new-instance p2, Ljava/io/IOException;
|
|
|
|
|
|
|
|
invoke-direct {p2, p1}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
throw p2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
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
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final close()V
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-03-26 19:13:28 +00:00
|
|
|
iget-object v0, p0, Lokio/j$2;->bve:Ljava/io/InputStream;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/io/InputStream;->close()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
.method public final timeout()Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-03-26 19:13:28 +00:00
|
|
|
iget-object v0, p0, Lokio/j$2;->bvc:Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final toString()Ljava/lang/String;
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
const-string v1, "source("
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
2019-03-26 19:13:28 +00:00
|
|
|
iget-object v1, p0, Lokio/j$2;->bve:Ljava/io/InputStream;
|
2019-02-04 20:08:30 +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
|
|
|
|
.end method
|