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

800 lines
15 KiB
Smali
Raw Normal View History

2020-02-20 19:33:18 +00:00
.class public final Lb0/p;
2019-12-06 03:29:40 +00:00
.super Ljava/lang/Object;
.source "RealBufferedSink.kt"
# interfaces
.implements Lokio/BufferedSink;
# instance fields
2020-02-20 19:33:18 +00:00
.field public final d:Lb0/e;
2019-12-06 03:29:40 +00:00
.field public e:Z
2020-02-20 19:33:18 +00:00
.field public final f:Lb0/u;
2019-12-06 03:29:40 +00:00
# direct methods
2020-02-20 19:33:18 +00:00
.method public constructor <init>(Lb0/u;)V
2019-12-06 03:29:40 +00:00
.locals 0
if-eqz p1, :cond_0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-02-20 19:33:18 +00:00
iput-object p1, p0, Lb0/p;->f:Lb0/u;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
new-instance p1, Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-direct {p1}, Lb0/e;-><init>()V
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
iput-object p1, p0, Lb0/p;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
return-void
:cond_0
const-string p1, "sink"
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method
# virtual methods
2020-02-20 19:33:18 +00:00
.method public a(Lb0/w;)J
2019-12-06 03:29:40 +00:00
.locals 7
if-eqz p1, :cond_1
const-wide/16 v0, 0x0
:goto_0
2020-02-20 19:33:18 +00:00
iget-object v2, p0, Lb0/p;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
const/16 v3, 0x2000
int-to-long v3, v3
2020-02-20 19:33:18 +00:00
invoke-interface {p1, v2, v3, v4}, Lb0/w;->b(Lb0/e;J)J
2019-12-06 03:29:40 +00:00
move-result-wide v2
const-wide/16 v4, -0x1
cmp-long v6, v2, v4
if-nez v6, :cond_0
return-wide v0
:cond_0
add-long/2addr v0, v2
2020-02-20 19:33:18 +00:00
invoke-virtual {p0}, Lb0/p;->a()Lokio/BufferedSink;
2019-12-06 03:29:40 +00:00
goto :goto_0
:cond_1
const-string p1, "source"
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method
.method public a()Lokio/BufferedSink;
.locals 5
2020-02-20 19:33:18 +00:00
iget-boolean v0, p0, Lb0/p;->e:Z
2019-12-06 03:29:40 +00:00
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_1
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/p;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-03-14 04:13:36 +00:00
invoke-virtual {v0}, Lb0/e;->a()J
2019-12-06 03:29:40 +00:00
move-result-wide v0
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-lez v4, :cond_0
2020-02-20 19:33:18 +00:00
iget-object v2, p0, Lb0/p;->f:Lb0/u;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
iget-object v3, p0, Lb0/p;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-interface {v2, v3, v0, v1}, Lb0/u;->write(Lb0/e;J)V
2019-12-06 03:29:40 +00:00
:cond_0
return-object p0
:cond_1
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public a(Ljava/lang/String;)Lokio/BufferedSink;
.locals 1
if-eqz p1, :cond_1
2020-02-20 19:33:18 +00:00
iget-boolean v0, p0, Lb0/p;->e:Z
2019-12-06 03:29:40 +00:00
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/p;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, p1}, Lb0/e;->a(Ljava/lang/String;)Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {p0}, Lb0/p;->a()Lokio/BufferedSink;
2019-12-06 03:29:40 +00:00
return-object p0
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "closed"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
const-string p1, "string"
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method
.method public a(Ljava/lang/String;II)Lokio/BufferedSink;
.locals 1
if-eqz p1, :cond_1
2020-02-20 19:33:18 +00:00
iget-boolean v0, p0, Lb0/p;->e:Z
2019-12-06 03:29:40 +00:00
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/p;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, p1, p2, p3}, Lb0/e;->a(Ljava/lang/String;II)Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {p0}, Lb0/p;->a()Lokio/BufferedSink;
2019-12-06 03:29:40 +00:00
return-object p0
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
const-string p1, "string"
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method
.method public a(Lokio/ByteString;)Lokio/BufferedSink;
.locals 1
if-eqz p1, :cond_1
2020-02-20 19:33:18 +00:00
iget-boolean v0, p0, Lb0/p;->e:Z
2019-12-06 03:29:40 +00:00
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/p;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, p1}, Lb0/e;->a(Lokio/ByteString;)Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {p0}, Lb0/p;->a()Lokio/BufferedSink;
2019-12-06 03:29:40 +00:00
return-object p0
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "closed"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
const-string p1, "byteString"
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method
.method public b(J)Lokio/BufferedSink;
.locals 1
2020-02-20 19:33:18 +00:00
iget-boolean v0, p0, Lb0/p;->e:Z
2019-12-06 03:29:40 +00:00
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/p;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, p1, p2}, Lb0/e;->b(J)Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {p0}, Lb0/p;->a()Lokio/BufferedSink;
2019-12-06 03:29:40 +00:00
move-result-object p1
return-object p1
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public c(J)Lokio/BufferedSink;
.locals 1
2020-02-20 19:33:18 +00:00
iget-boolean v0, p0, Lb0/p;->e:Z
2019-12-06 03:29:40 +00:00
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/p;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, p1, p2}, Lb0/e;->c(J)Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {p0}, Lb0/p;->a()Lokio/BufferedSink;
2019-12-06 03:29:40 +00:00
return-object p0
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public close()V
.locals 6
2020-02-20 19:33:18 +00:00
iget-boolean v0, p0, Lb0/p;->e:Z
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_0
return-void
:cond_0
const/4 v0, 0x0
:try_start_0
2020-02-20 19:33:18 +00:00
iget-object v1, p0, Lb0/p;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
iget-wide v1, v1, Lb0/e;->e:J
2019-12-06 03:29:40 +00:00
const-wide/16 v3, 0x0
cmp-long v5, v1, v3
if-lez v5, :cond_1
2020-02-20 19:33:18 +00:00
iget-object v1, p0, Lb0/p;->f:Lb0/u;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
iget-object v2, p0, Lb0/p;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
iget-object v3, p0, Lb0/p;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
iget-wide v3, v3, Lb0/e;->e:J
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-interface {v1, v2, v3, v4}, Lb0/u;->write(Lb0/e;J)V
2019-12-06 03:29:40 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:catchall_0
move-exception v0
:cond_1
:goto_0
:try_start_1
2020-02-20 19:33:18 +00:00
iget-object v1, p0, Lb0/p;->f:Lb0/u;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-interface {v1}, Lb0/u;->close()V
2019-12-06 03:29:40 +00:00
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
goto :goto_1
:catchall_1
move-exception v1
if-nez v0, :cond_2
move-object v0, v1
:cond_2
:goto_1
const/4 v1, 0x1
2020-02-20 19:33:18 +00:00
iput-boolean v1, p0, Lb0/p;->e:Z
2019-12-06 03:29:40 +00:00
if-nez v0, :cond_3
return-void
:cond_3
throw v0
.end method
.method public flush()V
.locals 6
2020-02-20 19:33:18 +00:00
iget-boolean v0, p0, Lb0/p;->e:Z
2019-12-06 03:29:40 +00:00
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_1
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/p;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
iget-wide v1, v0, Lb0/e;->e:J
2019-12-06 03:29:40 +00:00
const-wide/16 v3, 0x0
cmp-long v5, v1, v3
if-lez v5, :cond_0
2020-02-20 19:33:18 +00:00
iget-object v3, p0, Lb0/p;->f:Lb0/u;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-interface {v3, v0, v1, v2}, Lb0/u;->write(Lb0/e;J)V
2019-12-06 03:29:40 +00:00
:cond_0
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/p;->f:Lb0/u;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-interface {v0}, Lb0/u;->flush()V
2019-12-06 03:29:40 +00:00
return-void
:cond_1
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public isOpen()Z
.locals 1
2020-02-20 19:33:18 +00:00
iget-boolean v0, p0, Lb0/p;->e:Z
2019-12-06 03:29:40 +00:00
xor-int/lit8 v0, v0, 0x1
return v0
.end method
2020-02-20 19:33:18 +00:00
.method public n()Lb0/e;
2019-12-06 03:29:40 +00:00
.locals 1
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/p;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
return-object v0
.end method
.method public o()Lokio/BufferedSink;
.locals 6
2020-02-20 19:33:18 +00:00
iget-boolean v0, p0, Lb0/p;->e:Z
2019-12-06 03:29:40 +00:00
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_1
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/p;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
iget-wide v1, v0, Lb0/e;->e:J
2019-12-06 03:29:40 +00:00
const-wide/16 v3, 0x0
cmp-long v5, v1, v3
if-lez v5, :cond_0
2020-02-20 19:33:18 +00:00
iget-object v3, p0, Lb0/p;->f:Lb0/u;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-interface {v3, v0, v1, v2}, Lb0/u;->write(Lb0/e;J)V
2019-12-06 03:29:40 +00:00
:cond_0
return-object p0
:cond_1
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "closed"
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
2020-02-20 19:33:18 +00:00
.method public timeout()Lb0/x;
2019-12-06 03:29:40 +00:00
.locals 1
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/p;->f:Lb0/u;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-interface {v0}, Lb0/u;->timeout()Lb0/x;
2019-12-06 03:29:40 +00:00
move-result-object v0
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
const-string v0, "buffer("
invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
2020-02-20 19:33:18 +00:00
iget-object v1, p0, Lb0/p;->f:Lb0/u;
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
.method public write(Ljava/nio/ByteBuffer;)I
.locals 1
if-eqz p1, :cond_1
2020-02-20 19:33:18 +00:00
iget-boolean v0, p0, Lb0/p;->e:Z
2019-12-06 03:29:40 +00:00
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/p;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, p1}, Lb0/e;->write(Ljava/nio/ByteBuffer;)I
2019-12-06 03:29:40 +00:00
move-result p1
2020-02-20 19:33:18 +00:00
invoke-virtual {p0}, Lb0/p;->a()Lokio/BufferedSink;
2019-12-06 03:29:40 +00:00
return p1
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "closed"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
const-string p1, "source"
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method
.method public write([B)Lokio/BufferedSink;
.locals 1
if-eqz p1, :cond_1
2020-02-20 19:33:18 +00:00
iget-boolean v0, p0, Lb0/p;->e:Z
2019-12-06 03:29:40 +00:00
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/p;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, p1}, Lb0/e;->write([B)Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {p0}, Lb0/p;->a()Lokio/BufferedSink;
2019-12-06 03:29:40 +00:00
return-object p0
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "closed"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
const-string p1, "source"
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method
.method public write([BII)Lokio/BufferedSink;
.locals 1
if-eqz p1, :cond_1
2020-02-20 19:33:18 +00:00
iget-boolean v0, p0, Lb0/p;->e:Z
2019-12-06 03:29:40 +00:00
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/p;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, p1, p2, p3}, Lb0/e;->write([BII)Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {p0}, Lb0/p;->a()Lokio/BufferedSink;
2019-12-06 03:29:40 +00:00
return-object p0
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
const-string p1, "source"
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method
2020-02-20 19:33:18 +00:00
.method public write(Lb0/e;J)V
2019-12-06 03:29:40 +00:00
.locals 1
if-eqz p1, :cond_1
2020-02-20 19:33:18 +00:00
iget-boolean v0, p0, Lb0/p;->e:Z
2019-12-06 03:29:40 +00:00
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/p;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, p1, p2, p3}, Lb0/e;->write(Lb0/e;J)V
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {p0}, Lb0/p;->a()Lokio/BufferedSink;
2019-12-06 03:29:40 +00:00
return-void
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
const-string p1, "source"
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method
.method public writeByte(I)Lokio/BufferedSink;
.locals 1
2020-02-20 19:33:18 +00:00
iget-boolean v0, p0, Lb0/p;->e:Z
2019-12-06 03:29:40 +00:00
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/p;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, p1}, Lb0/e;->writeByte(I)Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {p0}, Lb0/p;->a()Lokio/BufferedSink;
2019-12-06 03:29:40 +00:00
move-result-object p1
return-object p1
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "closed"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public writeInt(I)Lokio/BufferedSink;
.locals 1
2020-02-20 19:33:18 +00:00
iget-boolean v0, p0, Lb0/p;->e:Z
2019-12-06 03:29:40 +00:00
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/p;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, p1}, Lb0/e;->writeInt(I)Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {p0}, Lb0/p;->a()Lokio/BufferedSink;
2019-12-06 03:29:40 +00:00
move-result-object p1
return-object p1
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "closed"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public writeShort(I)Lokio/BufferedSink;
.locals 1
2020-02-20 19:33:18 +00:00
iget-boolean v0, p0, Lb0/p;->e:Z
2019-12-06 03:29:40 +00:00
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lb0/p;->d:Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v0, p1}, Lb0/e;->writeShort(I)Lb0/e;
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {p0}, Lb0/p;->a()Lokio/BufferedSink;
2019-12-06 03:29:40 +00:00
return-object p0
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "closed"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method