mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 16:42:30 -06:00
797 lines
19 KiB
Smali
797 lines
19 KiB
Smali
.class public final Lokio/Pipe;
|
|
.super Ljava/lang/Object;
|
|
.source "Pipe.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
|
value = "SMAP\nPipe.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Pipe.kt\nokio/Pipe\n+ 2 -Platform.kt\nokio/-Platform\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 Timeout.kt\nokio/Timeout\n*L\n1#1,248:1\n28#2:249\n28#2:251\n28#2:282\n1#3:250\n186#4,30:252\n*E\n*S KotlinDebug\n*F\n+ 1 Pipe.kt\nokio/Pipe\n*L\n169#1:249\n200#1:251\n241#1:282\n210#1,30:252\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {
|
|
0x1,
|
|
0x0,
|
|
0x3
|
|
}
|
|
d1 = {
|
|
"\u0000D\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\t\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\u000b\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0002\u0008\u000b\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0010\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0002\u0010\u0004J\u0006\u0010!\u001a\u00020\"J\u000e\u0010#\u001a\u00020\"2\u0006\u0010\u0017\u001a\u00020\u0010J\r\u0010\u0017\u001a\u00020\u0010H\u0007\u00a2\u0006\u0002\u0008$J\r\u0010\u001b\u001a\u00020\u001cH\u0007\u00a2\u0006\u0002\u0008%J&\u0010&\u001a\u00020\"*\u00020\u00102\u0017\u0010\'\u001a\u0013\u0012\u0004\u0012\u00020\u0010\u0012\u0004\u0012\u00020\"0(\u00a2\u0006\u0002\u0008)H\u0082\u0008R\u0014\u0010\u0005\u001a\u00020\u0006X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0007\u0010\u0008R\u001a\u0010\t\u001a\u00020\nX\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u000b\u0010\u000c\"\u0004\u0008\r\u0010\u000eR\u001c\u0010\u000f\u001a\u0004\u0018\u00010\u0010X\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0011\u0010\u0012\"\u0004\u0008\u0013\u0010\u0014R\u0014\u0010\u0002\u001a\u00020\u0003X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0015\u0010\u0016R\u0013\u0010\u0017\u001a\u00020\u00108G\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0017\u0010\u0012R\u001a\u0010\u0018\u001a\u00020\nX\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0019\u0010\u000c\"\u0004\u0008\u001a\u0010\u000eR\u0013\u0010\u001b\u001a\u00020\u001c8G\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u001b\u0010\u001dR\u001a\u0010\u001e\u001a\u00020\nX\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u001f\u0010\u000c\"\u0004\u0008 \u0010\u000e\u00a8\u0006*"
|
|
}
|
|
d2 = {
|
|
"Lokio/Pipe;",
|
|
"",
|
|
"maxBufferSize",
|
|
"",
|
|
"(J)V",
|
|
"buffer",
|
|
"Lokio/Buffer;",
|
|
"getBuffer$okio",
|
|
"()Lokio/Buffer;",
|
|
"canceled",
|
|
"",
|
|
"getCanceled$okio",
|
|
"()Z",
|
|
"setCanceled$okio",
|
|
"(Z)V",
|
|
"foldedSink",
|
|
"Lokio/Sink;",
|
|
"getFoldedSink$okio",
|
|
"()Lokio/Sink;",
|
|
"setFoldedSink$okio",
|
|
"(Lokio/Sink;)V",
|
|
"getMaxBufferSize$okio",
|
|
"()J",
|
|
"sink",
|
|
"sinkClosed",
|
|
"getSinkClosed$okio",
|
|
"setSinkClosed$okio",
|
|
"source",
|
|
"Lokio/Source;",
|
|
"()Lokio/Source;",
|
|
"sourceClosed",
|
|
"getSourceClosed$okio",
|
|
"setSourceClosed$okio",
|
|
"cancel",
|
|
"",
|
|
"fold",
|
|
"-deprecated_sink",
|
|
"-deprecated_source",
|
|
"forward",
|
|
"block",
|
|
"Lkotlin/Function1;",
|
|
"Lkotlin/ExtensionFunctionType;",
|
|
"okio"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final buffer:Lokio/Buffer;
|
|
|
|
.field private canceled:Z
|
|
|
|
.field private foldedSink:Lokio/Sink;
|
|
|
|
.field private final maxBufferSize:J
|
|
|
|
.field private final sink:Lokio/Sink;
|
|
|
|
.field private sinkClosed:Z
|
|
|
|
.field private final source:Lokio/Source;
|
|
|
|
.field private sourceClosed:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(J)V
|
|
.locals 2
|
|
|
|
.line 36
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-wide p1, p0, Lokio/Pipe;->maxBufferSize:J
|
|
|
|
.line 37
|
|
new-instance v0, Lokio/Buffer;
|
|
|
|
invoke-direct {v0}, Lokio/Buffer;-><init>()V
|
|
|
|
iput-object v0, p0, Lokio/Pipe;->buffer:Lokio/Buffer;
|
|
|
|
const-wide/16 v0, 0x1
|
|
|
|
cmp-long v0, p1, v0
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 48
|
|
new-instance p1, Lokio/Pipe$sink$1;
|
|
|
|
invoke-direct {p1, p0}, Lokio/Pipe$sink$1;-><init>(Lokio/Pipe;)V
|
|
|
|
check-cast p1, Lokio/Sink;
|
|
|
|
iput-object p1, p0, Lokio/Pipe;->sink:Lokio/Sink;
|
|
|
|
.line 124
|
|
new-instance p1, Lokio/Pipe$source$1;
|
|
|
|
invoke-direct {p1, p0}, Lokio/Pipe$source$1;-><init>(Lokio/Pipe;)V
|
|
|
|
check-cast p1, Lokio/Source;
|
|
|
|
iput-object p1, p0, Lokio/Pipe;->source:Lokio/Source;
|
|
|
|
return-void
|
|
|
|
.line 44
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, "maxBufferSize < 1: "
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public static final synthetic access$forward(Lokio/Pipe;Lokio/Sink;Lkotlin/jvm/functions/Function1;)V
|
|
.locals 0
|
|
|
|
.line 36
|
|
invoke-direct {p0, p1, p2}, Lokio/Pipe;->forward(Lokio/Sink;Lkotlin/jvm/functions/Function1;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final forward(Lokio/Sink;Lkotlin/jvm/functions/Function1;)V
|
|
.locals 11
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lokio/Sink;",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"-",
|
|
"Lokio/Sink;",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 210
|
|
invoke-interface {p1}, Lokio/Sink;->timeout()Lokio/Timeout;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0}, Lokio/Pipe;->sink()Lokio/Sink;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-interface {p0}, Lokio/Sink;->timeout()Lokio/Timeout;
|
|
|
|
move-result-object p0
|
|
|
|
.line 252
|
|
invoke-virtual {v0}, Lokio/Timeout;->timeoutNanos()J
|
|
|
|
move-result-wide v1
|
|
|
|
.line 253
|
|
sget-object v3, Lokio/Timeout;->Companion:Lokio/Timeout$Companion;
|
|
|
|
invoke-virtual {p0}, Lokio/Timeout;->timeoutNanos()J
|
|
|
|
move-result-wide v4
|
|
|
|
invoke-virtual {v0}, Lokio/Timeout;->timeoutNanos()J
|
|
|
|
move-result-wide v6
|
|
|
|
invoke-virtual {v3, v4, v5, v6, v7}, Lokio/Timeout$Companion;->minTimeout(JJ)J
|
|
|
|
move-result-wide v3
|
|
|
|
sget-object v5, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-virtual {v0, v3, v4, v5}, Lokio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout;
|
|
|
|
.line 255
|
|
invoke-virtual {v0}, Lokio/Timeout;->hasDeadline()Z
|
|
|
|
move-result v3
|
|
|
|
const/4 v4, 0x1
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
.line 256
|
|
invoke-virtual {v0}, Lokio/Timeout;->deadlineNanoTime()J
|
|
|
|
move-result-wide v5
|
|
|
|
.line 257
|
|
invoke-virtual {p0}, Lokio/Timeout;->hasDeadline()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 258
|
|
invoke-virtual {v0}, Lokio/Timeout;->deadlineNanoTime()J
|
|
|
|
move-result-wide v7
|
|
|
|
invoke-virtual {p0}, Lokio/Timeout;->deadlineNanoTime()J
|
|
|
|
move-result-wide v9
|
|
|
|
invoke-static {v7, v8, v9, v10}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide v7
|
|
|
|
invoke-virtual {v0, v7, v8}, Lokio/Timeout;->deadlineNanoTime(J)Lokio/Timeout;
|
|
|
|
.line 210
|
|
:cond_0
|
|
:try_start_0
|
|
invoke-interface {p2, p1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-static {v4}, Lkotlin/jvm/internal/InlineMarker;->finallyStart(I)V
|
|
|
|
.line 263
|
|
sget-object p1, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-virtual {v0, v1, v2, p1}, Lokio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout;
|
|
|
|
.line 264
|
|
invoke-virtual {p0}, Lokio/Timeout;->hasDeadline()Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
.line 265
|
|
invoke-virtual {v0, v5, v6}, Lokio/Timeout;->deadlineNanoTime(J)Lokio/Timeout;
|
|
|
|
:cond_1
|
|
invoke-static {v4}, Lkotlin/jvm/internal/InlineMarker;->finallyEnd(I)V
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 267
|
|
invoke-static {v4}, Lkotlin/jvm/internal/InlineMarker;->finallyStart(I)V
|
|
|
|
.line 263
|
|
sget-object p2, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-virtual {v0, v1, v2, p2}, Lokio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout;
|
|
|
|
.line 264
|
|
invoke-virtual {p0}, Lokio/Timeout;->hasDeadline()Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_2
|
|
|
|
.line 265
|
|
invoke-virtual {v0, v5, v6}, Lokio/Timeout;->deadlineNanoTime(J)Lokio/Timeout;
|
|
|
|
:cond_2
|
|
invoke-static {v4}, Lkotlin/jvm/internal/InlineMarker;->finallyEnd(I)V
|
|
|
|
throw p1
|
|
|
|
.line 269
|
|
:cond_3
|
|
invoke-virtual {p0}, Lokio/Timeout;->hasDeadline()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_4
|
|
|
|
.line 270
|
|
invoke-virtual {p0}, Lokio/Timeout;->deadlineNanoTime()J
|
|
|
|
move-result-wide v5
|
|
|
|
invoke-virtual {v0, v5, v6}, Lokio/Timeout;->deadlineNanoTime(J)Lokio/Timeout;
|
|
|
|
.line 210
|
|
:cond_4
|
|
:try_start_1
|
|
invoke-interface {p2, p1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
invoke-static {v4}, Lkotlin/jvm/internal/InlineMarker;->finallyStart(I)V
|
|
|
|
.line 275
|
|
sget-object p1, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-virtual {v0, v1, v2, p1}, Lokio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout;
|
|
|
|
.line 276
|
|
invoke-virtual {p0}, Lokio/Timeout;->hasDeadline()Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_5
|
|
|
|
.line 277
|
|
invoke-virtual {v0}, Lokio/Timeout;->clearDeadline()Lokio/Timeout;
|
|
|
|
:cond_5
|
|
invoke-static {v4}, Lkotlin/jvm/internal/InlineMarker;->finallyEnd(I)V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
:catchall_1
|
|
move-exception p1
|
|
|
|
.line 279
|
|
invoke-static {v4}, Lkotlin/jvm/internal/InlineMarker;->finallyStart(I)V
|
|
|
|
.line 275
|
|
sget-object p2, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-virtual {v0, v1, v2, p2}, Lokio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout;
|
|
|
|
.line 276
|
|
invoke-virtual {p0}, Lokio/Timeout;->hasDeadline()Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_6
|
|
|
|
.line 277
|
|
invoke-virtual {v0}, Lokio/Timeout;->clearDeadline()Lokio/Timeout;
|
|
|
|
:cond_6
|
|
invoke-static {v4}, Lkotlin/jvm/internal/InlineMarker;->finallyEnd(I)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final -deprecated_sink()Lokio/Sink;
|
|
.locals 0
|
|
.annotation runtime Lkotlin/Deprecated;
|
|
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
|
|
message = "moved to val"
|
|
replaceWith = .subannotation Lkotlin/ReplaceWith;
|
|
expression = "sink"
|
|
imports = {}
|
|
.end subannotation
|
|
.end annotation
|
|
|
|
iget-object p0, p0, Lokio/Pipe;->sink:Lokio/Sink;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final -deprecated_source()Lokio/Source;
|
|
.locals 0
|
|
.annotation runtime Lkotlin/Deprecated;
|
|
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
|
|
message = "moved to val"
|
|
replaceWith = .subannotation Lkotlin/ReplaceWith;
|
|
expression = "source"
|
|
imports = {}
|
|
.end subannotation
|
|
.end annotation
|
|
|
|
iget-object p0, p0, Lokio/Pipe;->source:Lokio/Source;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final cancel()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lokio/Pipe;->buffer:Lokio/Buffer;
|
|
|
|
.line 282
|
|
monitor-enter v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:try_start_0
|
|
iput-boolean v1, p0, Lokio/Pipe;->canceled:Z
|
|
|
|
iget-object v1, p0, Lokio/Pipe;->buffer:Lokio/Buffer;
|
|
|
|
.line 243
|
|
invoke-virtual {v1}, Lokio/Buffer;->clear()V
|
|
|
|
iget-object p0, p0, Lokio/Pipe;->buffer:Lokio/Buffer;
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
.line 244
|
|
check-cast p0, Ljava/lang/Object;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 245
|
|
sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
.line 244
|
|
:cond_0
|
|
:try_start_1
|
|
new-instance p0, Ljava/lang/NullPointerException;
|
|
|
|
const-string v1, "null cannot be cast to non-null type java.lang.Object"
|
|
|
|
invoke-direct {p0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
.line 245
|
|
monitor-exit v0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public final fold(Lokio/Sink;)V
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "sink"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:goto_0
|
|
iget-object v0, p0, Lokio/Pipe;->buffer:Lokio/Buffer;
|
|
|
|
.line 249
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
iget-object v1, p0, Lokio/Pipe;->foldedSink:Lokio/Sink;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
move v1, v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v1, :cond_6
|
|
|
|
iget-boolean v1, p0, Lokio/Pipe;->canceled:Z
|
|
|
|
if-nez v1, :cond_5
|
|
|
|
iget-object v1, p0, Lokio/Pipe;->buffer:Lokio/Buffer;
|
|
|
|
.line 177
|
|
invoke-virtual {v1}, Lokio/Buffer;->exhausted()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
iput-boolean v2, p0, Lokio/Pipe;->sourceClosed:Z
|
|
|
|
iput-object p1, p0, Lokio/Pipe;->foldedSink:Lokio/Sink;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_2
|
|
|
|
.line 180
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
:try_start_1
|
|
iget-boolean v1, p0, Lokio/Pipe;->sinkClosed:Z
|
|
|
|
.line 184
|
|
new-instance v3, Lokio/Buffer;
|
|
|
|
invoke-direct {v3}, Lokio/Buffer;-><init>()V
|
|
|
|
iget-object v4, p0, Lokio/Pipe;->buffer:Lokio/Buffer;
|
|
|
|
.line 185
|
|
invoke-virtual {v4}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v5
|
|
|
|
invoke-virtual {v3, v4, v5, v6}, Lokio/Buffer;->write(Lokio/Buffer;J)V
|
|
|
|
iget-object v4, p0, Lokio/Pipe;->buffer:Lokio/Buffer;
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
.line 186
|
|
check-cast v4, Ljava/lang/Object;
|
|
|
|
invoke-virtual {v4}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 187
|
|
sget-object v4, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_2
|
|
|
|
monitor-exit v0
|
|
|
|
.line 191
|
|
:try_start_2
|
|
invoke-virtual {v3}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v4
|
|
|
|
invoke-interface {p1, v3, v4, v5}, Lokio/Sink;->write(Lokio/Buffer;J)V
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 193
|
|
invoke-interface {p1}, Lokio/Sink;->close()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 195
|
|
:cond_2
|
|
invoke-interface {p1}, Lokio/Sink;->flush()V
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
iget-object v0, p0, Lokio/Pipe;->buffer:Lokio/Buffer;
|
|
|
|
.line 251
|
|
monitor-enter v0
|
|
|
|
:try_start_3
|
|
iput-boolean v2, p0, Lokio/Pipe;->sourceClosed:Z
|
|
|
|
iget-object p0, p0, Lokio/Pipe;->buffer:Lokio/Buffer;
|
|
|
|
if-nez p0, :cond_3
|
|
|
|
.line 202
|
|
new-instance p0, Ljava/lang/NullPointerException;
|
|
|
|
const-string p1, "null cannot be cast to non-null type java.lang.Object"
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
:cond_3
|
|
check-cast p0, Ljava/lang/Object;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 203
|
|
sget-object p0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
|
|
|
monitor-exit v0
|
|
|
|
.line 251
|
|
throw p1
|
|
|
|
:catchall_1
|
|
move-exception p0
|
|
|
|
.line 203
|
|
monitor-exit v0
|
|
|
|
throw p0
|
|
|
|
.line 186
|
|
:cond_4
|
|
:try_start_4
|
|
new-instance p0, Ljava/lang/NullPointerException;
|
|
|
|
const-string p1, "null cannot be cast to non-null type java.lang.Object"
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
:cond_5
|
|
iput-object p1, p0, Lokio/Pipe;->foldedSink:Lokio/Sink;
|
|
|
|
.line 174
|
|
new-instance p0, Ljava/io/IOException;
|
|
|
|
const-string p1, "canceled"
|
|
|
|
invoke-direct {p0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
:cond_6
|
|
const-string p0, "sink already folded"
|
|
|
|
.line 170
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
:try_end_4
|
|
.catchall {:try_start_4 .. :try_end_4} :catchall_2
|
|
|
|
:catchall_2
|
|
move-exception p0
|
|
|
|
.line 187
|
|
monitor-exit v0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public final getBuffer$okio()Lokio/Buffer;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokio/Pipe;->buffer:Lokio/Buffer;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final getCanceled$okio()Z
|
|
.locals 0
|
|
|
|
iget-boolean p0, p0, Lokio/Pipe;->canceled:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public final getFoldedSink$okio()Lokio/Sink;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokio/Pipe;->foldedSink:Lokio/Sink;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final getMaxBufferSize$okio()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lokio/Pipe;->maxBufferSize:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final getSinkClosed$okio()Z
|
|
.locals 0
|
|
|
|
iget-boolean p0, p0, Lokio/Pipe;->sinkClosed:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public final getSourceClosed$okio()Z
|
|
.locals 0
|
|
|
|
iget-boolean p0, p0, Lokio/Pipe;->sourceClosed:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public final setCanceled$okio(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lokio/Pipe;->canceled:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setFoldedSink$okio(Lokio/Sink;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lokio/Pipe;->foldedSink:Lokio/Sink;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setSinkClosed$okio(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lokio/Pipe;->sinkClosed:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setSourceClosed$okio(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lokio/Pipe;->sourceClosed:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final sink()Lokio/Sink;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokio/Pipe;->sink:Lokio/Sink;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final source()Lokio/Source;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokio/Pipe;->source:Lokio/Source;
|
|
|
|
return-object p0
|
|
.end method
|