2019-12-12 08:58:10 +00:00
|
|
|
.class public final Lr/o;
|
2019-12-06 03:29:40 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "Okio.kt"
|
|
|
|
|
|
|
|
# interfaces
|
2019-12-12 08:58:10 +00:00
|
|
|
.implements Lr/u;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final d:Ljava/io/OutputStream;
|
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
.field public final e:Lr/x;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-12-12 08:58:10 +00:00
|
|
|
.method public constructor <init>(Ljava/io/OutputStream;Lr/x;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
iput-object p1, p0, Lr/o;->d:Ljava/io/OutputStream;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
iput-object p2, p0, Lr/o;->e:Lr/x;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "timeout"
|
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "out"
|
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public close()V
|
|
|
|
.locals 1
|
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
iget-object v0, p0, Lr/o;->d:Ljava/io/OutputStream;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/io/OutputStream;->close()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public flush()V
|
|
|
|
.locals 1
|
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
iget-object v0, p0, Lr/o;->d:Ljava/io/OutputStream;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/io/OutputStream;->flush()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
.method public timeout()Lr/x;
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 1
|
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
iget-object v0, p0, Lr/o;->e:Lr/x;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const-string v0, "sink("
|
|
|
|
|
|
|
|
invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
iget-object v1, p0, Lr/o;->d:Ljava/io/OutputStream;
|
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
|
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
.method public write(Lr/e;J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 7
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
iget-wide v1, p1, Lr/e;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
|
|
|
|
move-wide v5, p2
|
|
|
|
|
|
|
|
invoke-static/range {v1 .. v6}, Le/k/a/b/e/p/g;->a(JJJ)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:goto_0
|
|
|
|
const-wide/16 v1, 0x0
|
|
|
|
|
|
|
|
cmp-long v3, p2, v1
|
|
|
|
|
|
|
|
if-lez v3, :cond_2
|
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
iget-object v1, p0, Lr/o;->e:Lr/x;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
invoke-virtual {v1}, Lr/x;->e()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
iget-object v1, p1, Lr/e;->d:Lr/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
iget v2, v1, Lr/r;->c:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
iget v3, v1, Lr/r;->b:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
sub-int/2addr v2, v3
|
|
|
|
|
|
|
|
int-to-long v2, v2
|
|
|
|
|
|
|
|
invoke-static {p2, p3, v2, v3}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
long-to-int v3, v2
|
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
iget-object v2, p0, Lr/o;->d:Ljava/io/OutputStream;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
iget-object v4, v1, Lr/r;->a:[B
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
iget v5, v1, Lr/r;->b:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, v4, v5, v3}, Ljava/io/OutputStream;->write([BII)V
|
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
iget v2, v1, Lr/r;->b:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
add-int/2addr v2, v3
|
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
iput v2, v1, Lr/r;->b:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
int-to-long v2, v3
|
|
|
|
|
|
|
|
sub-long/2addr p2, v2
|
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
iget-wide v4, p1, Lr/e;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
sub-long/2addr v4, v2
|
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
iput-wide v4, p1, Lr/e;->e:J
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
iget v2, v1, Lr/r;->b:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
iget v3, v1, Lr/r;->c:I
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-ne v2, v3, :cond_0
|
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
invoke-virtual {v1}, Lr/r;->a()Lr/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
iput-object v2, p1, Lr/e;->d:Lr/r;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
invoke-static {v1}, Lr/s;->a(Lr/r;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
2019-12-12 08:58:10 +00:00
|
|
|
invoke-static {}, Lm/u/b/j;->throwNpe()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const-string p1, "source"
|
|
|
|
|
2019-12-12 08:58:10 +00:00
|
|
|
invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|