apkfuckery/com.discord/smali_classes2/okio/p.smali

181 lines
3.6 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class final Lokio/p;
2019-11-28 00:30:53 +00:00
.super Ljava/lang/Object;
.source "Okio.kt"
# interfaces
.implements Lokio/v;
2019-07-24 11:27:29 +00:00
# instance fields
2019-12-06 01:29:57 +00:00
.field private final bBU:Lokio/y;
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
.field private final bBY:Ljava/io/OutputStream;
2019-07-24 11:27:29 +00:00
# direct methods
2019-11-28 00:30:53 +00:00
.method public constructor <init>(Ljava/io/OutputStream;Lokio/y;)V
.locals 1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v0, "out"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v0, "timeout"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p2, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
iput-object p1, p0, Lokio/p;->bBY:Ljava/io/OutputStream;
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
iput-object p2, p0, Lokio/p;->bBU:Lokio/y;
2019-07-24 11:27:29 +00:00
return-void
.end method
# virtual methods
2019-11-28 00:30:53 +00:00
.method public final close()V
2019-11-15 02:21:15 +00:00
.locals 1
2019-10-09 23:16:36 +00:00
2019-12-06 01:29:57 +00:00
iget-object v0, p0, Lokio/p;->bBY:Ljava/io/OutputStream;
2019-10-09 23:16:36 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v0}, Ljava/io/OutputStream;->close()V
2019-10-09 23:16:36 +00:00
2019-11-28 00:30:53 +00:00
return-void
2019-11-15 02:21:15 +00:00
.end method
2019-10-09 23:16:36 +00:00
2019-11-28 00:30:53 +00:00
.method public final flush()V
2019-11-15 02:21:15 +00:00
.locals 1
2019-10-09 23:16:36 +00:00
2019-12-06 01:29:57 +00:00
iget-object v0, p0, Lokio/p;->bBY:Ljava/io/OutputStream;
2019-10-09 23:16:36 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v0}, Ljava/io/OutputStream;->flush()V
2019-10-09 23:16:36 +00:00
2019-11-28 00:30:53 +00:00
return-void
2019-11-15 02:21:15 +00:00
.end method
2019-10-09 23:16:36 +00:00
2019-11-28 00:30:53 +00:00
.method public final timeout()Lokio/y;
2019-11-15 02:21:15 +00:00
.locals 1
2019-10-09 23:16:36 +00:00
2019-12-06 01:29:57 +00:00
iget-object v0, p0, Lokio/p;->bBU:Lokio/y;
2019-10-09 23:16:36 +00:00
2019-11-15 02:21:15 +00:00
return-object v0
.end method
2019-10-09 23:16:36 +00:00
2019-11-28 00:30:53 +00:00
.method public final toString()Ljava/lang/String;
.locals 2
2019-10-09 23:16:36 +00:00
2019-11-28 00:30:53 +00:00
new-instance v0, Ljava/lang/StringBuilder;
2019-10-09 23:16:36 +00:00
2019-11-28 00:30:53 +00:00
const-string v1, "sink("
2019-10-09 23:16:36 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
2019-11-14 21:08:15 +00:00
2019-12-06 01:29:57 +00:00
iget-object v1, p0, Lokio/p;->bBY:Ljava/io/OutputStream;
2019-10-09 23:16:36 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2019-10-09 23:16:36 +00:00
2019-11-28 00:30:53 +00:00
const/16 v1, 0x29
2019-11-15 02:21:15 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
2019-11-15 02:21:15 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-10-23 04:50:18 +00:00
move-result-object v0
return-object v0
.end method
2019-11-28 00:30:53 +00:00
.method public final write(Lokio/f;J)V
2019-07-24 11:27:29 +00:00
.locals 7
2019-11-28 00:30:53 +00:00
const-string v0, "source"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
iget-wide v1, p1, Lokio/f;->size:J
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-wide/16 v3, 0x0
2019-10-09 23:16:36 +00:00
2019-11-28 00:30:53 +00:00
move-wide v5, p2
2019-10-09 23:16:36 +00:00
2019-12-06 01:29:57 +00:00
invoke-static/range {v1 .. v6}, Lokio/c;->a(JJJ)V
2019-10-09 23:16:36 +00:00
:cond_0
:goto_0
2019-11-28 00:30:53 +00:00
const-wide/16 v0, 0x0
2019-10-09 23:16:36 +00:00
2019-11-28 00:30:53 +00:00
cmp-long v2, p2, v0
2019-10-09 23:16:36 +00:00
2019-11-28 00:30:53 +00:00
if-lez v2, :cond_2
2019-10-09 23:16:36 +00:00
2019-12-06 01:29:57 +00:00
iget-object v0, p0, Lokio/p;->bBU:Lokio/y;
2019-10-09 23:16:36 +00:00
2019-12-06 01:29:57 +00:00
invoke-virtual {v0}, Lokio/y;->IG()V
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
iget-object v0, p1, Lokio/f;->bBD:Lokio/s;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-nez v0, :cond_1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {}, Lkotlin/jvm/internal/l;->throwNpe()V
2019-07-24 11:27:29 +00:00
:cond_1
2019-11-28 00:30:53 +00:00
iget v1, v0, Lokio/s;->limit:I
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
iget v2, v0, Lokio/s;->pos:I
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
sub-int/2addr v1, v2
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
int-to-long v1, v1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p2, p3, v1, v2}, Ljava/lang/Math;->min(JJ)J
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-wide v1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
long-to-int v2, v1
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
iget-object v1, p0, Lokio/p;->bBY:Ljava/io/OutputStream;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
iget-object v3, v0, Lokio/s;->data:[B
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
iget v4, v0, Lokio/s;->pos:I
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v1, v3, v4, v2}, Ljava/io/OutputStream;->write([BII)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
iget v1, v0, Lokio/s;->pos:I
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
add-int/2addr v1, v2
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
iput v1, v0, Lokio/s;->pos:I
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
int-to-long v1, v2
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
sub-long/2addr p2, v1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
iget-wide v3, p1, Lokio/f;->size:J
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
sub-long/2addr v3, v1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
iput-wide v3, p1, Lokio/f;->size:J
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
iget v1, v0, Lokio/s;->pos:I
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
iget v2, v0, Lokio/s;->limit:I
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-ne v1, v2, :cond_0
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
invoke-virtual {v0}, Lokio/s;->IM()Lokio/s;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object v1
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
iput-object v1, p1, Lokio/f;->bBD:Lokio/s;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {v0}, Lokio/t;->b(Lokio/s;)V
2019-07-24 11:27:29 +00:00
goto :goto_0
:cond_2
2019-11-28 00:30:53 +00:00
return-void
2019-07-24 11:27:29 +00:00
.end method