mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
224 lines
5.8 KiB
Smali
224 lines
5.8 KiB
Smali
|
.class public final Lokhttp3/internal/ws/MessageInflater;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "MessageInflater.kt"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Ljava/io/Closeable;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation runtime Lkotlin/Metadata;
|
||
|
bv = {
|
||
|
0x1,
|
||
|
0x0,
|
||
|
0x3
|
||
|
}
|
||
|
d1 = {
|
||
|
"\u0000,\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\u0008\u0003\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0002\u0010\u0004J\u0008\u0010\u000b\u001a\u00020\u000cH\u0016J\u000e\u0010\r\u001a\u00020\u000c2\u0006\u0010\u000e\u001a\u00020\u0006R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\u0008X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\t\u001a\u00020\nX\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u000f"
|
||
|
}
|
||
|
d2 = {
|
||
|
"Lokhttp3/internal/ws/MessageInflater;",
|
||
|
"Ljava/io/Closeable;",
|
||
|
"noContextTakeover",
|
||
|
"",
|
||
|
"(Z)V",
|
||
|
"deflatedBytes",
|
||
|
"Lokio/Buffer;",
|
||
|
"inflater",
|
||
|
"Ljava/util/zip/Inflater;",
|
||
|
"inflaterSource",
|
||
|
"Lokio/InflaterSource;",
|
||
|
"close",
|
||
|
"",
|
||
|
"inflate",
|
||
|
"buffer",
|
||
|
"okhttp"
|
||
|
}
|
||
|
k = 0x1
|
||
|
mv = {
|
||
|
0x1,
|
||
|
0x4,
|
||
|
0x0
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private final deflatedBytes:Lokio/Buffer;
|
||
|
|
||
|
.field private final inflater:Ljava/util/zip/Inflater;
|
||
|
|
||
|
.field private final inflaterSource:Lokio/InflaterSource;
|
||
|
|
||
|
.field private final noContextTakeover:Z
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Z)V
|
||
|
.locals 2
|
||
|
|
||
|
.line 26
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
iput-boolean p1, p0, Lokhttp3/internal/ws/MessageInflater;->noContextTakeover:Z
|
||
|
|
||
|
.line 29
|
||
|
new-instance p1, Lokio/Buffer;
|
||
|
|
||
|
invoke-direct {p1}, Lokio/Buffer;-><init>()V
|
||
|
|
||
|
iput-object p1, p0, Lokhttp3/internal/ws/MessageInflater;->deflatedBytes:Lokio/Buffer;
|
||
|
|
||
|
.line 30
|
||
|
new-instance v0, Ljava/util/zip/Inflater;
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/util/zip/Inflater;-><init>(Z)V
|
||
|
|
||
|
iput-object v0, p0, Lokhttp3/internal/ws/MessageInflater;->inflater:Ljava/util/zip/Inflater;
|
||
|
|
||
|
.line 31
|
||
|
new-instance v1, Lokio/InflaterSource;
|
||
|
|
||
|
check-cast p1, Lokio/Source;
|
||
|
|
||
|
invoke-direct {v1, p1, v0}, Lokio/InflaterSource;-><init>(Lokio/Source;Ljava/util/zip/Inflater;)V
|
||
|
|
||
|
iput-object v1, p0, Lokhttp3/internal/ws/MessageInflater;->inflaterSource:Lokio/InflaterSource;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public close()V
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/internal/ws/MessageInflater;->inflaterSource:Lokio/InflaterSource;
|
||
|
|
||
|
.line 55
|
||
|
invoke-virtual {p0}, Lokio/InflaterSource;->close()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public final inflate(Lokio/Buffer;)V
|
||
|
.locals 5
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const-string v0, "buffer"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/ws/MessageInflater;->deflatedBytes:Lokio/Buffer;
|
||
|
|
||
|
.line 36
|
||
|
invoke-virtual {v0}, Lokio/Buffer;->size()J
|
||
|
|
||
|
move-result-wide v0
|
||
|
|
||
|
const-wide/16 v2, 0x0
|
||
|
|
||
|
cmp-long v0, v0, v2
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
iget-boolean v0, p0, Lokhttp3/internal/ws/MessageInflater;->noContextTakeover:Z
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/ws/MessageInflater;->inflater:Ljava/util/zip/Inflater;
|
||
|
|
||
|
.line 39
|
||
|
invoke-virtual {v0}, Ljava/util/zip/Inflater;->reset()V
|
||
|
|
||
|
:cond_1
|
||
|
iget-object v0, p0, Lokhttp3/internal/ws/MessageInflater;->deflatedBytes:Lokio/Buffer;
|
||
|
|
||
|
.line 42
|
||
|
move-object v1, p1
|
||
|
|
||
|
check-cast v1, Lokio/Source;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lokio/Buffer;->writeAll(Lokio/Source;)J
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/ws/MessageInflater;->deflatedBytes:Lokio/Buffer;
|
||
|
|
||
|
const v1, 0xffff
|
||
|
|
||
|
.line 43
|
||
|
invoke-virtual {v0, v1}, Lokio/Buffer;->writeInt(I)Lokio/Buffer;
|
||
|
|
||
|
iget-object v0, p0, Lokhttp3/internal/ws/MessageInflater;->inflater:Ljava/util/zip/Inflater;
|
||
|
|
||
|
.line 45
|
||
|
invoke-virtual {v0}, Ljava/util/zip/Inflater;->getBytesRead()J
|
||
|
|
||
|
move-result-wide v0
|
||
|
|
||
|
iget-object v2, p0, Lokhttp3/internal/ws/MessageInflater;->deflatedBytes:Lokio/Buffer;
|
||
|
|
||
|
invoke-virtual {v2}, Lokio/Buffer;->size()J
|
||
|
|
||
|
move-result-wide v2
|
||
|
|
||
|
add-long/2addr v0, v2
|
||
|
|
||
|
:cond_2
|
||
|
iget-object v2, p0, Lokhttp3/internal/ws/MessageInflater;->inflaterSource:Lokio/InflaterSource;
|
||
|
|
||
|
const-wide v3, 0x7fffffffffffffffL
|
||
|
|
||
|
.line 50
|
||
|
invoke-virtual {v2, p1, v3, v4}, Lokio/InflaterSource;->readOrInflate(Lokio/Buffer;J)J
|
||
|
|
||
|
iget-object v2, p0, Lokhttp3/internal/ws/MessageInflater;->inflater:Ljava/util/zip/Inflater;
|
||
|
|
||
|
.line 51
|
||
|
invoke-virtual {v2}, Ljava/util/zip/Inflater;->getBytesRead()J
|
||
|
|
||
|
move-result-wide v2
|
||
|
|
||
|
cmp-long v2, v2, v0
|
||
|
|
||
|
if-ltz v2, :cond_2
|
||
|
|
||
|
return-void
|
||
|
|
||
|
.line 36
|
||
|
:cond_3
|
||
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
||
|
|
||
|
const-string p1, "Failed requirement."
|
||
|
|
||
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
check-cast p0, Ljava/lang/Throwable;
|
||
|
|
||
|
throw p0
|
||
|
.end method
|