apkfuckery/com.discord/smali_classes2/okhttp3/internal/j/d$a.smali

245 lines
5 KiB
Smali
Raw Normal View History

2019-02-27 21:13:14 +00:00
.class final Lokhttp3/internal/j/d$a;
2019-02-04 20:08:30 +00:00
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "WebSocketWriter.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/EnclosingClass;
2019-02-27 21:13:14 +00:00
value = Lokhttp3/internal/j/d;
2019-02-04 20:08:30 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x10
name = "a"
.end annotation
# instance fields
2019-04-03 00:06:05 +00:00
.field btX:I
2019-02-04 20:08:30 +00:00
2019-04-03 00:06:05 +00:00
.field bun:Z
2019-02-04 20:08:30 +00:00
2019-04-03 00:06:05 +00:00
.field final synthetic buo:Lokhttp3/internal/j/d;
2019-02-04 20:08:30 +00:00
.field closed:Z
.field contentLength:J
# direct methods
2019-02-27 21:13:14 +00:00
.method constructor <init>(Lokhttp3/internal/j/d;)V
2019-02-04 20:08:30 +00:00
.locals 0
2019-04-03 00:06:05 +00:00
iput-object p1, p0, Lokhttp3/internal/j/d$a;->buo:Lokhttp3/internal/j/d;
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 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-02-27 21:13:14 +00:00
iget-boolean v0, p0, Lokhttp3/internal/j/d$a;->closed:Z
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-04-03 00:06:05 +00:00
iget-object v1, p0, Lokhttp3/internal/j/d$a;->buo:Lokhttp3/internal/j/d;
2019-02-04 20:08:30 +00:00
2019-04-03 00:06:05 +00:00
iget v2, p0, Lokhttp3/internal/j/d$a;->btX:I
2019-02-04 20:08:30 +00:00
2019-04-03 00:06:05 +00:00
iget-object v0, v1, Lokhttp3/internal/j/d;->buk:Lokio/c;
2019-02-04 20:08:30 +00:00
iget-wide v3, v0, Lokio/c;->size:J
2019-04-03 00:06:05 +00:00
iget-boolean v5, p0, Lokhttp3/internal/j/d$a;->bun:Z
2019-02-04 20:08:30 +00:00
const/4 v6, 0x1
2019-02-27 21:13:14 +00:00
invoke-virtual/range {v1 .. v6}, Lokhttp3/internal/j/d;->a(IJZZ)V
2019-02-04 20:08:30 +00:00
const/4 v0, 0x1
2019-02-27 21:13:14 +00:00
iput-boolean v0, p0, Lokhttp3/internal/j/d$a;->closed:Z
2019-02-04 20:08:30 +00:00
2019-04-03 00:06:05 +00:00
iget-object v0, p0, Lokhttp3/internal/j/d$a;->buo:Lokhttp3/internal/j/d;
2019-02-04 20:08:30 +00:00
const/4 v1, 0x0
2019-04-03 00:06:05 +00:00
iput-boolean v1, v0, Lokhttp3/internal/j/d;->bum:Z
2019-02-04 20:08:30 +00:00
return-void
:cond_0
new-instance v0, Ljava/io/IOException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public final flush()V
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-02-27 21:13:14 +00:00
iget-boolean v0, p0, Lokhttp3/internal/j/d$a;->closed:Z
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_0
2019-04-03 00:06:05 +00:00
iget-object v1, p0, Lokhttp3/internal/j/d$a;->buo:Lokhttp3/internal/j/d;
2019-02-04 20:08:30 +00:00
2019-04-03 00:06:05 +00:00
iget v2, p0, Lokhttp3/internal/j/d$a;->btX:I
2019-02-04 20:08:30 +00:00
2019-04-03 00:06:05 +00:00
iget-object v0, v1, Lokhttp3/internal/j/d;->buk:Lokio/c;
2019-02-04 20:08:30 +00:00
iget-wide v3, v0, Lokio/c;->size:J
2019-04-03 00:06:05 +00:00
iget-boolean v5, p0, Lokhttp3/internal/j/d$a;->bun:Z
2019-02-04 20:08:30 +00:00
const/4 v6, 0x0
2019-02-27 21:13:14 +00:00
invoke-virtual/range {v1 .. v6}, Lokhttp3/internal/j/d;->a(IJZZ)V
2019-02-04 20:08:30 +00:00
const/4 v0, 0x0
2019-04-03 00:06:05 +00:00
iput-boolean v0, p0, Lokhttp3/internal/j/d$a;->bun:Z
2019-02-04 20:08:30 +00:00
return-void
:cond_0
new-instance v0, Ljava/io/IOException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
.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-04-03 00:06:05 +00:00
iget-object v0, p0, Lokhttp3/internal/j/d$a;->buo:Lokhttp3/internal/j/d;
2019-02-04 20:08:30 +00:00
2019-04-03 00:06:05 +00:00
iget-object v0, v0, Lokhttp3/internal/j/d;->bpW:Lokio/BufferedSink;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
invoke-interface {v0}, Lokio/BufferedSink;->timeout()Lokio/r;
2019-02-04 20:08:30 +00:00
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
2019-02-27 21:13:14 +00:00
iget-boolean v0, p0, Lokhttp3/internal/j/d$a;->closed:Z
2019-02-04 20:08:30 +00:00
if-nez v0, :cond_2
2019-04-03 00:06:05 +00:00
iget-object v0, p0, Lokhttp3/internal/j/d$a;->buo:Lokhttp3/internal/j/d;
2019-02-04 20:08:30 +00:00
2019-04-03 00:06:05 +00:00
iget-object v0, v0, Lokhttp3/internal/j/d;->buk:Lokio/c;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, p1, p2, p3}, Lokio/c;->write(Lokio/c;J)V
2019-04-03 00:06:05 +00:00
iget-boolean p1, p0, Lokhttp3/internal/j/d$a;->bun:Z
2019-02-04 20:08:30 +00:00
const/4 p2, 0x0
if-eqz p1, :cond_0
2019-02-27 21:13:14 +00:00
iget-wide v0, p0, Lokhttp3/internal/j/d$a;->contentLength:J
2019-02-04 20:08:30 +00:00
const-wide/16 v2, -0x1
cmp-long p1, v0, v2
if-eqz p1, :cond_0
2019-04-03 00:06:05 +00:00
iget-object p1, p0, Lokhttp3/internal/j/d$a;->buo:Lokhttp3/internal/j/d;
2019-02-04 20:08:30 +00:00
2019-04-03 00:06:05 +00:00
iget-object p1, p1, Lokhttp3/internal/j/d;->buk:Lokio/c;
2019-02-04 20:08:30 +00:00
iget-wide v0, p1, Lokio/c;->size:J
2019-02-27 21:13:14 +00:00
iget-wide v2, p0, Lokhttp3/internal/j/d$a;->contentLength:J
2019-02-04 20:08:30 +00:00
const-wide/16 v4, 0x2000
sub-long/2addr v2, v4
cmp-long p1, v0, v2
if-lez p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
2019-04-03 00:06:05 +00:00
iget-object p3, p0, Lokhttp3/internal/j/d$a;->buo:Lokhttp3/internal/j/d;
2019-02-04 20:08:30 +00:00
2019-04-03 00:06:05 +00:00
iget-object p3, p3, Lokhttp3/internal/j/d;->buk:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-03-22 22:04:12 +00:00
invoke-virtual {p3}, Lokio/c;->BY()J
2019-02-04 20:08:30 +00:00
move-result-wide v2
const-wide/16 v0, 0x0
cmp-long p3, v2, v0
if-lez p3, :cond_1
if-nez p1, :cond_1
2019-04-03 00:06:05 +00:00
iget-object v0, p0, Lokhttp3/internal/j/d$a;->buo:Lokhttp3/internal/j/d;
2019-02-04 20:08:30 +00:00
2019-04-03 00:06:05 +00:00
iget v1, p0, Lokhttp3/internal/j/d$a;->btX:I
2019-02-04 20:08:30 +00:00
2019-04-03 00:06:05 +00:00
iget-boolean v4, p0, Lokhttp3/internal/j/d$a;->bun:Z
2019-02-04 20:08:30 +00:00
const/4 v5, 0x0
2019-02-27 21:13:14 +00:00
invoke-virtual/range {v0 .. v5}, Lokhttp3/internal/j/d;->a(IJZZ)V
2019-02-04 20:08:30 +00:00
2019-04-03 00:06:05 +00:00
iput-boolean p2, p0, Lokhttp3/internal/j/d$a;->bun:Z
2019-02-04 20:08:30 +00:00
:cond_1
return-void
:cond_2
new-instance p1, Ljava/io/IOException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
.end method