apkfuckery/com.discord/smali_classes2/v/c0/e/a$b.smali
2019-12-06 04:29:40 +01:00

229 lines
4.4 KiB
Smali

.class public final Lv/c0/e/a$b;
.super Ljava/lang/Object;
.source "Http1ExchangeCodec.kt"
# interfaces
.implements Lw/u;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lv/c0/e/a;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "b"
.end annotation
# instance fields
.field public final d:Lw/j;
.field public e:Z
.field public final synthetic f:Lv/c0/e/a;
# direct methods
.method public constructor <init>(Lv/c0/e/a;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
iput-object p1, p0, Lv/c0/e/a$b;->f:Lv/c0/e/a;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Lw/j;
iget-object p1, p1, Lv/c0/e/a;->g:Lokio/BufferedSink;
invoke-interface {p1}, Lw/u;->timeout()Lw/x;
move-result-object p1
invoke-direct {v0, p1}, Lw/j;-><init>(Lw/x;)V
iput-object v0, p0, Lv/c0/e/a$b;->d:Lw/j;
return-void
.end method
# virtual methods
.method public declared-synchronized close()V
.locals 2
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lv/c0/e/a$b;->e:Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_0
monitor-exit p0
return-void
:cond_0
const/4 v0, 0x1
:try_start_1
iput-boolean v0, p0, Lv/c0/e/a$b;->e:Z
iget-object v0, p0, Lv/c0/e/a$b;->f:Lv/c0/e/a;
iget-object v0, v0, Lv/c0/e/a;->g:Lokio/BufferedSink;
const-string v1, "0\r\n\r\n"
invoke-interface {v0, v1}, Lokio/BufferedSink;->a(Ljava/lang/String;)Lokio/BufferedSink;
iget-object v0, p0, Lv/c0/e/a$b;->f:Lv/c0/e/a;
iget-object v1, p0, Lv/c0/e/a$b;->d:Lw/j;
invoke-virtual {v0, v1}, Lv/c0/e/a;->a(Lw/j;)V
iget-object v0, p0, Lv/c0/e/a$b;->f:Lv/c0/e/a;
const/4 v1, 0x3
iput v1, v0, Lv/c0/e/a;->a:I
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public declared-synchronized flush()V
.locals 1
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lv/c0/e/a$b;->e:Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_0
monitor-exit p0
return-void
:cond_0
:try_start_1
iget-object v0, p0, Lv/c0/e/a$b;->f:Lv/c0/e/a;
iget-object v0, v0, Lv/c0/e/a;->g:Lokio/BufferedSink;
invoke-interface {v0}, Lokio/BufferedSink;->flush()V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public timeout()Lw/x;
.locals 1
iget-object v0, p0, Lv/c0/e/a$b;->d:Lw/j;
return-object v0
.end method
.method public write(Lw/e;J)V
.locals 3
if-eqz p1, :cond_2
iget-boolean v0, p0, Lv/c0/e/a$b;->e:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_1
const-wide/16 v0, 0x0
cmp-long v2, p2, v0
if-nez v2, :cond_0
return-void
:cond_0
iget-object v0, p0, Lv/c0/e/a$b;->f:Lv/c0/e/a;
iget-object v0, v0, Lv/c0/e/a;->g:Lokio/BufferedSink;
invoke-interface {v0, p2, p3}, Lokio/BufferedSink;->b(J)Lokio/BufferedSink;
iget-object v0, p0, Lv/c0/e/a$b;->f:Lv/c0/e/a;
iget-object v0, v0, Lv/c0/e/a;->g:Lokio/BufferedSink;
const-string v1, "\r\n"
invoke-interface {v0, v1}, Lokio/BufferedSink;->a(Ljava/lang/String;)Lokio/BufferedSink;
iget-object v0, p0, Lv/c0/e/a$b;->f:Lv/c0/e/a;
iget-object v0, v0, Lv/c0/e/a;->g:Lokio/BufferedSink;
invoke-interface {v0, p1, p2, p3}, Lw/u;->write(Lw/e;J)V
iget-object p1, p0, Lv/c0/e/a$b;->f:Lv/c0/e/a;
iget-object p1, p1, Lv/c0/e/a;->g:Lokio/BufferedSink;
invoke-interface {p1, v1}, Lokio/BufferedSink;->a(Ljava/lang/String;)Lokio/BufferedSink;
return-void
:cond_1
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_2
const-string p1, "source"
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method