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