2019-02-04 20:08:30 +00:00
|
|
|
.class final Lokio/j$1;
|
|
|
|
.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/p;
|
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/OutputStream;Lokio/r;)Lokio/p;
|
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-16 01:04:31 +00:00
|
|
|
.field final synthetic bvd:Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
.field final synthetic bve:Ljava/io/OutputStream;
|
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/OutputStream;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 0
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
iput-object p1, p0, Lokio/j$1;->bvd:Lokio/r;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
iput-object p2, p0, Lokio/j$1;->bve:Ljava/io/OutputStream;
|
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 close()V
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
iget-object v0, p0, Lokio/j$1;->bve:Ljava/io/OutputStream;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/io/OutputStream;->close()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final flush()V
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
iget-object v0, p0, Lokio/j$1;->bve:Ljava/io/OutputStream;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/io/OutputStream;->flush()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-16 01:04:31 +00:00
|
|
|
iget-object v0, p0, Lokio/j$1;->bvd: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, "sink("
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
iget-object v1, p0, Lokio/j$1;->bve:Ljava/io/OutputStream;
|
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
|
|
|
|
|
|
|
|
.method public final write(Lokio/c;J)V
|
|
|
|
.locals 6
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-wide v0, p1, Lokio/c;->size:J
|
|
|
|
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
|
|
|
|
move-wide v4, p2
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static/range {v0 .. v5}, Lokio/s;->a(JJJ)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:goto_0
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
|
|
|
cmp-long v2, p2, v0
|
|
|
|
|
|
|
|
if-lez v2, :cond_1
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
iget-object v0, p0, Lokio/j$1;->bvd: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
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
iget-object v0, p1, Lokio/c;->buS:Lokio/m;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
iget v1, v0, Lokio/m;->limit:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
iget v2, v0, Lokio/m;->pos:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
|
|
|
|
int-to-long v1, v1
|
|
|
|
|
|
|
|
invoke-static {p2, p3, v1, v2}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
|
|
|
|
move-result-wide v1
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
long-to-int v2, v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
iget-object v1, p0, Lokio/j$1;->bve:Ljava/io/OutputStream;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
iget-object v3, v0, Lokio/m;->data:[B
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
iget v4, v0, Lokio/m;->pos:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-virtual {v1, v3, v4, v2}, Ljava/io/OutputStream;->write([BII)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
iget v1, v0, Lokio/m;->pos:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
add-int/2addr v1, v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
iput v1, v0, Lokio/m;->pos:I
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
int-to-long v1, v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
sub-long/2addr p2, v1
|
|
|
|
|
|
|
|
iget-wide v3, p1, Lokio/c;->size:J
|
|
|
|
|
|
|
|
sub-long/2addr v3, v1
|
|
|
|
|
|
|
|
iput-wide v3, p1, Lokio/c;->size:J
|
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
iget v1, v0, Lokio/m;->pos:I
|
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
|
|
|
|
|
|
|
if-ne v1, v2, :cond_0
|
|
|
|
|
2019-03-22 22:04:12 +00:00
|
|
|
invoke-virtual {v0}, Lokio/m;->Cw()Lokio/m;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-03-16 01:04:31 +00:00
|
|
|
iput-object v1, p1, Lokio/c;->buS:Lokio/m;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-27 21:13:14 +00:00
|
|
|
invoke-static {v0}, Lokio/n;->b(Lokio/m;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-void
|
|
|
|
.end method
|