Rabbit-R1/switch port/smali/smali_classes3/okio/internal/RealBufferedSinkKt.smali
2024-05-21 17:08:36 -04:00

1277 lines
34 KiB
Smali

.class public final Lokio/internal/RealBufferedSinkKt;
.super Ljava/lang/Object;
.source "RealBufferedSink.kt"
# annotations
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nRealBufferedSink.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RealBufferedSink.kt\nokio/internal/RealBufferedSinkKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 RealBufferedSink.kt\nokio/RealBufferedSink\n*L\n1#1,216:1\n1#2:217\n50#3:218\n50#3:219\n50#3:220\n50#3:221\n50#3:222\n50#3:223\n50#3:224\n50#3:225\n50#3:226\n50#3:227\n50#3:228\n50#3:229\n50#3:230\n50#3:231\n50#3:232\n50#3:233\n50#3:234\n50#3:235\n50#3:236\n50#3:237\n50#3:238\n50#3:239\n50#3:240\n50#3:241\n50#3:242\n50#3:243\n50#3:244\n*E\n*S KotlinDebug\n*F\n+ 1 RealBufferedSink.kt\nokio/internal/RealBufferedSinkKt\n*L\n32#1:218\n38#1:219\n48#1:220\n54#1:221\n64#1:222\n70#1:223\n76#1:224\n86#1:225\n93#1:226\n104#1:227\n114#1:228\n120#1:229\n126#1:230\n132#1:231\n138#1:232\n144#1:233\n150#1:234\n156#1:235\n162#1:236\n168#1:237\n169#1:238\n175#1:239\n176#1:240\n182#1:241\n183#1:242\n195#1:243\n196#1:244\n*E\n"
.end annotation
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u0000D\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\u0008\u0002\n\u0002\u0010\u0012\n\u0000\n\u0002\u0010\u0008\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0015\u001a\r\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u0080\u0008\u001a\r\u0010\u0003\u001a\u00020\u0004*\u00020\u0002H\u0080\u0008\u001a\r\u0010\u0005\u001a\u00020\u0004*\u00020\u0002H\u0080\u0008\u001a\r\u0010\u0006\u001a\u00020\u0001*\u00020\u0002H\u0080\u0008\u001a\r\u0010\u0007\u001a\u00020\u0008*\u00020\u0002H\u0080\u0008\u001a\r\u0010\t\u001a\u00020\n*\u00020\u0002H\u0080\u0008\u001a\u0015\u0010\u000b\u001a\u00020\u0004*\u00020\u00022\u0006\u0010\u000c\u001a\u00020\rH\u0080\u0008\u001a%\u0010\u000b\u001a\u00020\u0004*\u00020\u00022\u0006\u0010\u000c\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\u000fH\u0080\u0008\u001a\u001d\u0010\u000b\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u000c\u001a\u00020\u00112\u0006\u0010\u0010\u001a\u00020\u0012H\u0080\u0008\u001a\u0015\u0010\u000b\u001a\u00020\u0004*\u00020\u00022\u0006\u0010\u0013\u001a\u00020\u0014H\u0080\u0008\u001a%\u0010\u000b\u001a\u00020\u0004*\u00020\u00022\u0006\u0010\u0013\u001a\u00020\u00142\u0006\u0010\u000e\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\u000fH\u0080\u0008\u001a\u001d\u0010\u000b\u001a\u00020\u0004*\u00020\u00022\u0006\u0010\u000c\u001a\u00020\u00152\u0006\u0010\u0010\u001a\u00020\u0012H\u0080\u0008\u001a\u0015\u0010\u0016\u001a\u00020\u0012*\u00020\u00022\u0006\u0010\u000c\u001a\u00020\u0015H\u0080\u0008\u001a\u0015\u0010\u0017\u001a\u00020\u0004*\u00020\u00022\u0006\u0010\u0018\u001a\u00020\u000fH\u0080\u0008\u001a\u0015\u0010\u0019\u001a\u00020\u0004*\u00020\u00022\u0006\u0010\u001a\u001a\u00020\u0012H\u0080\u0008\u001a\u0015\u0010\u001b\u001a\u00020\u0004*\u00020\u00022\u0006\u0010\u001a\u001a\u00020\u0012H\u0080\u0008\u001a\u0015\u0010\u001c\u001a\u00020\u0004*\u00020\u00022\u0006\u0010\u001d\u001a\u00020\u000fH\u0080\u0008\u001a\u0015\u0010\u001e\u001a\u00020\u0004*\u00020\u00022\u0006\u0010\u001d\u001a\u00020\u000fH\u0080\u0008\u001a\u0015\u0010\u001f\u001a\u00020\u0004*\u00020\u00022\u0006\u0010\u001a\u001a\u00020\u0012H\u0080\u0008\u001a\u0015\u0010 \u001a\u00020\u0004*\u00020\u00022\u0006\u0010\u001a\u001a\u00020\u0012H\u0080\u0008\u001a\u0015\u0010!\u001a\u00020\u0004*\u00020\u00022\u0006\u0010\"\u001a\u00020\u000fH\u0080\u0008\u001a\u0015\u0010#\u001a\u00020\u0004*\u00020\u00022\u0006\u0010\"\u001a\u00020\u000fH\u0080\u0008\u001a\u0015\u0010$\u001a\u00020\u0004*\u00020\u00022\u0006\u0010%\u001a\u00020\nH\u0080\u0008\u001a%\u0010$\u001a\u00020\u0004*\u00020\u00022\u0006\u0010%\u001a\u00020\n2\u0006\u0010&\u001a\u00020\u000f2\u0006\u0010\'\u001a\u00020\u000fH\u0080\u0008\u001a\u0015\u0010(\u001a\u00020\u0004*\u00020\u00022\u0006\u0010)\u001a\u00020\u000fH\u0080\u0008\u00a8\u0006*"
}
d2 = {
"commonClose",
"",
"Lokio/RealBufferedSink;",
"commonEmit",
"Lokio/BufferedSink;",
"commonEmitCompleteSegments",
"commonFlush",
"commonTimeout",
"Lokio/Timeout;",
"commonToString",
"",
"commonWrite",
"source",
"",
"offset",
"",
"byteCount",
"Lokio/Buffer;",
"",
"byteString",
"Lokio/ByteString;",
"Lokio/Source;",
"commonWriteAll",
"commonWriteByte",
"b",
"commonWriteDecimalLong",
"v",
"commonWriteHexadecimalUnsignedLong",
"commonWriteInt",
"i",
"commonWriteIntLe",
"commonWriteLong",
"commonWriteLongLe",
"commonWriteShort",
"s",
"commonWriteShortLe",
"commonWriteUtf8",
"string",
"beginIndex",
"endIndex",
"commonWriteUtf8CodePoint",
"codePoint",
"okio"
}
k = 0x2
mv = {
0x1,
0x4,
0x0
}
.end annotation
# direct methods
.method public static final commonClose(Lokio/RealBufferedSink;)V
.locals 5
const-string v0, "$this$commonClose"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 189
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
if-eqz v0, :cond_0
return-void
:cond_0
const/4 v0, 0x0
.line 193
move-object v1, v0
check-cast v1, Ljava/lang/Throwable;
.line 243
:try_start_0
iget-object v1, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 195
invoke-virtual {v1}, Lokio/Buffer;->size()J
move-result-wide v1
const-wide/16 v3, 0x0
cmp-long v1, v1, v3
if-lez v1, :cond_1
.line 196
iget-object v1, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink;
.line 244
iget-object v2, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
iget-object v3, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
invoke-virtual {v3}, Lokio/Buffer;->size()J
move-result-wide v3
.line 196
invoke-interface {v1, v2, v3, v4}, Lokio/Sink;->write(Lokio/Buffer;J)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:catchall_0
move-exception v0
.line 203
:cond_1
:goto_0
:try_start_1
iget-object v1, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink;
invoke-interface {v1}, Lokio/Sink;->close()V
: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
.line 208
iput-boolean v1, p0, Lokio/RealBufferedSink;->closed:Z
if-nez v0, :cond_3
return-void
.line 210
:cond_3
throw v0
.end method
.method public static final commonEmit(Lokio/RealBufferedSink;)Lokio/BufferedSink;
.locals 4
const-string v0, "$this$commonEmit"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 174
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_1
.line 239
iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
invoke-virtual {v0}, Lokio/Buffer;->size()J
move-result-wide v0
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-lez v2, :cond_0
.line 176
iget-object v2, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink;
.line 240
iget-object v3, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 176
invoke-interface {v2, v3, v0, v1}, Lokio/Sink;->write(Lokio/Buffer;J)V
.line 177
:cond_0
check-cast p0, Lokio/BufferedSink;
return-object p0
.line 174
:cond_1
new-instance p0, Ljava/lang/IllegalStateException;
const-string v0, "closed"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public static final commonEmitCompleteSegments(Lokio/RealBufferedSink;)Lokio/BufferedSink;
.locals 4
const-string v0, "$this$commonEmitCompleteSegments"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 167
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_1
.line 237
iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 168
invoke-virtual {v0}, Lokio/Buffer;->completeSegmentByteCount()J
move-result-wide v0
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-lez v2, :cond_0
.line 169
iget-object v2, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink;
.line 238
iget-object v3, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 169
invoke-interface {v2, v3, v0, v1}, Lokio/Sink;->write(Lokio/Buffer;J)V
.line 170
:cond_0
check-cast p0, Lokio/BufferedSink;
return-object p0
.line 167
:cond_1
new-instance p0, Ljava/lang/IllegalStateException;
const-string v0, "closed"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public static final commonFlush(Lokio/RealBufferedSink;)V
.locals 4
const-string v0, "$this$commonFlush"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 181
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_1
.line 241
iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 182
invoke-virtual {v0}, Lokio/Buffer;->size()J
move-result-wide v0
const-wide/16 v2, 0x0
cmp-long v0, v0, v2
if-lez v0, :cond_0
.line 183
iget-object v0, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink;
.line 242
iget-object v1, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
iget-object v2, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
invoke-virtual {v2}, Lokio/Buffer;->size()J
move-result-wide v2
.line 183
invoke-interface {v0, v1, v2, v3}, Lokio/Sink;->write(Lokio/Buffer;J)V
.line 185
:cond_0
iget-object p0, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink;
invoke-interface {p0}, Lokio/Sink;->flush()V
return-void
.line 181
:cond_1
new-instance p0, Ljava/lang/IllegalStateException;
const-string v0, "closed"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public static final commonTimeout(Lokio/RealBufferedSink;)Lokio/Timeout;
.locals 1
const-string v0, "$this$commonTimeout"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 213
iget-object p0, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink;
invoke-interface {p0}, Lokio/Sink;->timeout()Lokio/Timeout;
move-result-object p0
return-object p0
.end method
.method public static final commonToString(Lokio/RealBufferedSink;)Ljava/lang/String;
.locals 2
const-string v0, "$this$commonToString"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 215
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "buffer("
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object p0, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink;
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p0
const/16 v0, 0x29
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static final commonWrite(Lokio/RealBufferedSink;Lokio/ByteString;)Lokio/BufferedSink;
.locals 1
const-string v0, "$this$commonWrite"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "byteString"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 37
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
.line 219
iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 38
invoke-virtual {v0, p1}, Lokio/Buffer;->write(Lokio/ByteString;)Lokio/Buffer;
.line 39
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object p0
return-object p0
.line 37
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "closed"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public static final commonWrite(Lokio/RealBufferedSink;Lokio/ByteString;II)Lokio/BufferedSink;
.locals 1
const-string v0, "$this$commonWrite"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "byteString"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 47
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
.line 220
iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 48
invoke-virtual {v0, p1, p2, p3}, Lokio/Buffer;->write(Lokio/ByteString;II)Lokio/Buffer;
.line 49
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object p0
return-object p0
.line 47
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "closed"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public static final commonWrite(Lokio/RealBufferedSink;Lokio/Source;J)Lokio/BufferedSink;
.locals 4
const-string v0, "$this$commonWrite"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "source"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
:goto_0
const-wide/16 v0, 0x0
cmp-long v0, p2, v0
if-lez v0, :cond_1
.line 227
iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 104
invoke-interface {p1, v0, p2, p3}, Lokio/Source;->read(Lokio/Buffer;J)J
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long v2, v0, v2
if-eqz v2, :cond_0
sub-long/2addr p2, v0
.line 107
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
goto :goto_0
.line 105
:cond_0
new-instance p0, Ljava/io/EOFException;
invoke-direct {p0}, Ljava/io/EOFException;-><init>()V
check-cast p0, Ljava/lang/Throwable;
throw p0
.line 109
:cond_1
check-cast p0, Lokio/BufferedSink;
return-object p0
.end method
.method public static final commonWrite(Lokio/RealBufferedSink;[B)Lokio/BufferedSink;
.locals 1
const-string v0, "$this$commonWrite"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "source"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 75
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
.line 224
iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 76
invoke-virtual {v0, p1}, Lokio/Buffer;->write([B)Lokio/Buffer;
.line 77
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object p0
return-object p0
.line 75
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "closed"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public static final commonWrite(Lokio/RealBufferedSink;[BII)Lokio/BufferedSink;
.locals 1
const-string v0, "$this$commonWrite"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "source"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 85
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
.line 225
iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 86
invoke-virtual {v0, p1, p2, p3}, Lokio/Buffer;->write([BII)Lokio/Buffer;
.line 87
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object p0
return-object p0
.line 85
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "closed"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public static final commonWrite(Lokio/RealBufferedSink;Lokio/Buffer;J)V
.locals 1
const-string v0, "$this$commonWrite"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "source"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 31
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
.line 218
iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 32
invoke-virtual {v0, p1, p2, p3}, Lokio/Buffer;->write(Lokio/Buffer;J)V
.line 33
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
return-void
.line 31
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "closed"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public static final commonWriteAll(Lokio/RealBufferedSink;Lokio/Source;)J
.locals 6
const-string v0, "$this$commonWriteAll"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "source"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-wide/16 v0, 0x0
.line 226
:goto_0
iget-object v2, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
const/16 v3, 0x2000
int-to-long v3, v3
.line 93
invoke-interface {p1, v2, v3, v4}, Lokio/Source;->read(Lokio/Buffer;J)J
move-result-wide v2
const-wide/16 v4, -0x1
cmp-long v4, v2, v4
if-nez v4, :cond_0
return-wide v0
:cond_0
add-long/2addr v0, v2
.line 96
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
goto :goto_0
.end method
.method public static final commonWriteByte(Lokio/RealBufferedSink;I)Lokio/BufferedSink;
.locals 1
const-string v0, "$this$commonWriteByte"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 113
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
.line 228
iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 114
invoke-virtual {v0, p1}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
.line 115
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object p0
return-object p0
.line 113
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "closed"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public static final commonWriteDecimalLong(Lokio/RealBufferedSink;J)Lokio/BufferedSink;
.locals 1
const-string v0, "$this$commonWriteDecimalLong"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 155
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
.line 235
iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 156
invoke-virtual {v0, p1, p2}, Lokio/Buffer;->writeDecimalLong(J)Lokio/Buffer;
.line 157
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object p0
return-object p0
.line 155
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "closed"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public static final commonWriteHexadecimalUnsignedLong(Lokio/RealBufferedSink;J)Lokio/BufferedSink;
.locals 1
const-string v0, "$this$commonWriteHexadecimalUnsignedLong"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 161
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
.line 236
iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 162
invoke-virtual {v0, p1, p2}, Lokio/Buffer;->writeHexadecimalUnsignedLong(J)Lokio/Buffer;
.line 163
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object p0
return-object p0
.line 161
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "closed"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public static final commonWriteInt(Lokio/RealBufferedSink;I)Lokio/BufferedSink;
.locals 1
const-string v0, "$this$commonWriteInt"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 131
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
.line 231
iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 132
invoke-virtual {v0, p1}, Lokio/Buffer;->writeInt(I)Lokio/Buffer;
.line 133
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object p0
return-object p0
.line 131
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "closed"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public static final commonWriteIntLe(Lokio/RealBufferedSink;I)Lokio/BufferedSink;
.locals 1
const-string v0, "$this$commonWriteIntLe"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 137
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
.line 232
iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 138
invoke-virtual {v0, p1}, Lokio/Buffer;->writeIntLe(I)Lokio/Buffer;
.line 139
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object p0
return-object p0
.line 137
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "closed"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public static final commonWriteLong(Lokio/RealBufferedSink;J)Lokio/BufferedSink;
.locals 1
const-string v0, "$this$commonWriteLong"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 143
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
.line 233
iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 144
invoke-virtual {v0, p1, p2}, Lokio/Buffer;->writeLong(J)Lokio/Buffer;
.line 145
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object p0
return-object p0
.line 143
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "closed"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public static final commonWriteLongLe(Lokio/RealBufferedSink;J)Lokio/BufferedSink;
.locals 1
const-string v0, "$this$commonWriteLongLe"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 149
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
.line 234
iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 150
invoke-virtual {v0, p1, p2}, Lokio/Buffer;->writeLongLe(J)Lokio/Buffer;
.line 151
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object p0
return-object p0
.line 149
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "closed"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public static final commonWriteShort(Lokio/RealBufferedSink;I)Lokio/BufferedSink;
.locals 1
const-string v0, "$this$commonWriteShort"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 119
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
.line 229
iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 120
invoke-virtual {v0, p1}, Lokio/Buffer;->writeShort(I)Lokio/Buffer;
.line 121
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object p0
return-object p0
.line 119
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "closed"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public static final commonWriteShortLe(Lokio/RealBufferedSink;I)Lokio/BufferedSink;
.locals 1
const-string v0, "$this$commonWriteShortLe"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 125
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
.line 230
iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 126
invoke-virtual {v0, p1}, Lokio/Buffer;->writeShortLe(I)Lokio/Buffer;
.line 127
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object p0
return-object p0
.line 125
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "closed"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public static final commonWriteUtf8(Lokio/RealBufferedSink;Ljava/lang/String;)Lokio/BufferedSink;
.locals 1
const-string v0, "$this$commonWriteUtf8"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "string"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 53
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
.line 221
iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 54
invoke-virtual {v0, p1}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;)Lokio/Buffer;
.line 55
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object p0
return-object p0
.line 53
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "closed"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public static final commonWriteUtf8(Lokio/RealBufferedSink;Ljava/lang/String;II)Lokio/BufferedSink;
.locals 1
const-string v0, "$this$commonWriteUtf8"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "string"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 63
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
.line 222
iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 64
invoke-virtual {v0, p1, p2, p3}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;II)Lokio/Buffer;
.line 65
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object p0
return-object p0
.line 63
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "closed"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method public static final commonWriteUtf8CodePoint(Lokio/RealBufferedSink;I)Lokio/BufferedSink;
.locals 1
const-string v0, "$this$commonWriteUtf8CodePoint"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 69
iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_0
.line 223
iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer;
.line 70
invoke-virtual {v0, p1}, Lokio/Buffer;->writeUtf8CodePoint(I)Lokio/Buffer;
.line 71
invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink;
move-result-object p0
return-object p0
.line 69
:cond_0
new-instance p0, Ljava/lang/IllegalStateException;
const-string p1, "closed"
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method