mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
2507 lines
59 KiB
Smali
2507 lines
59 KiB
Smali
.class public final Lokio/internal/RealBufferedSourceKt;
|
|
.super Ljava/lang/Object;
|
|
.source "RealBufferedSource.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
|
value = "SMAP\nRealBufferedSource.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RealBufferedSource.kt\nokio/internal/RealBufferedSourceKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 RealBufferedSource.kt\nokio/RealBufferedSource\n+ 4 -Util.kt\nokio/-Util\n*L\n1#1,399:1\n1#2:400\n61#3:401\n61#3:402\n61#3:403\n61#3:404\n61#3:405\n61#3:406\n61#3:407\n61#3:408\n61#3:409\n61#3:410\n61#3:411\n61#3:412\n61#3:413\n61#3:414\n61#3:415\n61#3:416\n61#3:417\n61#3:418\n61#3:419\n61#3:420\n61#3:421\n61#3:422\n61#3:423\n61#3:425\n61#3:426\n61#3:427\n61#3:428\n61#3:429\n61#3:430\n61#3:431\n61#3:432\n61#3:433\n61#3:434\n61#3:435\n61#3:436\n61#3:437\n61#3:438\n61#3:439\n61#3:440\n61#3:441\n61#3:442\n61#3:443\n61#3:444\n61#3:446\n61#3:447\n61#3:448\n61#3:449\n61#3:450\n61#3:451\n61#3:452\n61#3:453\n61#3:454\n61#3:455\n61#3:456\n61#3:457\n61#3:458\n61#3:459\n61#3:460\n61#3:461\n61#3:462\n61#3:463\n61#3:464\n61#3:465\n61#3:466\n61#3:467\n61#3:468\n61#3:469\n61#3:470\n61#3:471\n61#3:472\n78#4:424\n78#4:445\n*E\n*S KotlinDebug\n*F\n+ 1 RealBufferedSource.kt\nokio/internal/RealBufferedSourceKt\n*L\n38#1:401\n39#1:402\n43#1:403\n44#1:404\n49#1:405\n59#1:406\n60#1:407\n67#1:408\n71#1:409\n72#1:410\n77#1:411\n84#1:412\n91#1:413\n96#1:414\n104#1:415\n105#1:416\n110#1:417\n119#1:418\n120#1:419\n127#1:420\n133#1:421\n134#1:422\n138#1:423\n139#1:425\n147#1:426\n151#1:427\n156#1:428\n157#1:429\n160#1:430\n163#1:431\n164#1:432\n165#1:433\n171#1:434\n172#1:435\n177#1:436\n184#1:437\n185#1:438\n190#1:439\n198#1:440\n200#1:441\n201#1:442\n203#1:443\n206#1:444\n208#1:446\n216#1:447\n223#1:448\n228#1:449\n233#1:450\n238#1:451\n243#1:452\n248#1:453\n253#1:454\n261#1:455\n272#1:456\n280#1:457\n294#1:458\n301#1:459\n304#1:460\n305#1:461\n316#1:462\n321#1:463\n322#1:464\n335#1:465\n338#1:466\n339#1:467\n351#1:468\n354#1:469\n355#1:470\n380#1:471\n393#1:472\n138#1:424\n206#1:445\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {
|
|
0x1,
|
|
0x0,
|
|
0x3
|
|
}
|
|
d1 = {
|
|
"\u0000j\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0010\u0005\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\u0008\n\u0002\u0008\u0003\n\u0002\u0010\u0012\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u000b\n\u0002\u0010\n\n\u0002\u0008\u0002\n\u0002\u0010\u000e\n\u0002\u0008\u0008\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u001a\r\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u0080\u0008\u001a\r\u0010\u0003\u001a\u00020\u0004*\u00020\u0002H\u0080\u0008\u001a%\u0010\u0005\u001a\u00020\u0006*\u00020\u00022\u0006\u0010\u0007\u001a\u00020\u00082\u0006\u0010\t\u001a\u00020\u00062\u0006\u0010\n\u001a\u00020\u0006H\u0080\u0008\u001a\u001d\u0010\u0005\u001a\u00020\u0006*\u00020\u00022\u0006\u0010\u000b\u001a\u00020\u000c2\u0006\u0010\t\u001a\u00020\u0006H\u0080\u0008\u001a\u001d\u0010\r\u001a\u00020\u0006*\u00020\u00022\u0006\u0010\u000e\u001a\u00020\u000c2\u0006\u0010\t\u001a\u00020\u0006H\u0080\u0008\u001a\r\u0010\u000f\u001a\u00020\u0010*\u00020\u0002H\u0080\u0008\u001a-\u0010\u0011\u001a\u00020\u0004*\u00020\u00022\u0006\u0010\u0012\u001a\u00020\u00062\u0006\u0010\u000b\u001a\u00020\u000c2\u0006\u0010\u0013\u001a\u00020\u00142\u0006\u0010\u0015\u001a\u00020\u0014H\u0080\u0008\u001a%\u0010\u0016\u001a\u00020\u0014*\u00020\u00022\u0006\u0010\u0017\u001a\u00020\u00182\u0006\u0010\u0012\u001a\u00020\u00142\u0006\u0010\u0015\u001a\u00020\u0014H\u0080\u0008\u001a\u001d\u0010\u0016\u001a\u00020\u0006*\u00020\u00022\u0006\u0010\u0017\u001a\u00020\u00192\u0006\u0010\u0015\u001a\u00020\u0006H\u0080\u0008\u001a\u0015\u0010\u001a\u001a\u00020\u0006*\u00020\u00022\u0006\u0010\u0017\u001a\u00020\u001bH\u0080\u0008\u001a\r\u0010\u001c\u001a\u00020\u0008*\u00020\u0002H\u0080\u0008\u001a\r\u0010\u001d\u001a\u00020\u0018*\u00020\u0002H\u0080\u0008\u001a\u0015\u0010\u001d\u001a\u00020\u0018*\u00020\u00022\u0006\u0010\u0015\u001a\u00020\u0006H\u0080\u0008\u001a\r\u0010\u001e\u001a\u00020\u000c*\u00020\u0002H\u0080\u0008\u001a\u0015\u0010\u001e\u001a\u00020\u000c*\u00020\u00022\u0006\u0010\u0015\u001a\u00020\u0006H\u0080\u0008\u001a\r\u0010\u001f\u001a\u00020\u0006*\u00020\u0002H\u0080\u0008\u001a\u0015\u0010 \u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0017\u001a\u00020\u0018H\u0080\u0008\u001a\u001d\u0010 \u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0017\u001a\u00020\u00192\u0006\u0010\u0015\u001a\u00020\u0006H\u0080\u0008\u001a\r\u0010!\u001a\u00020\u0006*\u00020\u0002H\u0080\u0008\u001a\r\u0010\"\u001a\u00020\u0014*\u00020\u0002H\u0080\u0008\u001a\r\u0010#\u001a\u00020\u0014*\u00020\u0002H\u0080\u0008\u001a\r\u0010$\u001a\u00020\u0006*\u00020\u0002H\u0080\u0008\u001a\r\u0010%\u001a\u00020\u0006*\u00020\u0002H\u0080\u0008\u001a\r\u0010&\u001a\u00020\'*\u00020\u0002H\u0080\u0008\u001a\r\u0010(\u001a\u00020\'*\u00020\u0002H\u0080\u0008\u001a\r\u0010)\u001a\u00020**\u00020\u0002H\u0080\u0008\u001a\u0015\u0010)\u001a\u00020**\u00020\u00022\u0006\u0010\u0015\u001a\u00020\u0006H\u0080\u0008\u001a\r\u0010+\u001a\u00020\u0014*\u00020\u0002H\u0080\u0008\u001a\u000f\u0010,\u001a\u0004\u0018\u00010**\u00020\u0002H\u0080\u0008\u001a\u0015\u0010-\u001a\u00020**\u00020\u00022\u0006\u0010.\u001a\u00020\u0006H\u0080\u0008\u001a\u0015\u0010/\u001a\u00020\u0004*\u00020\u00022\u0006\u0010\u0015\u001a\u00020\u0006H\u0080\u0008\u001a\u0015\u00100\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0015\u001a\u00020\u0006H\u0080\u0008\u001a\u0015\u00101\u001a\u00020\u0014*\u00020\u00022\u0006\u00102\u001a\u000203H\u0080\u0008\u001a\u0015\u00104\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0015\u001a\u00020\u0006H\u0080\u0008\u001a\r\u00105\u001a\u000206*\u00020\u0002H\u0080\u0008\u001a\r\u00107\u001a\u00020**\u00020\u0002H\u0080\u0008\u00a8\u00068"
|
|
}
|
|
d2 = {
|
|
"commonClose",
|
|
"",
|
|
"Lokio/RealBufferedSource;",
|
|
"commonExhausted",
|
|
"",
|
|
"commonIndexOf",
|
|
"",
|
|
"b",
|
|
"",
|
|
"fromIndex",
|
|
"toIndex",
|
|
"bytes",
|
|
"Lokio/ByteString;",
|
|
"commonIndexOfElement",
|
|
"targetBytes",
|
|
"commonPeek",
|
|
"Lokio/BufferedSource;",
|
|
"commonRangeEquals",
|
|
"offset",
|
|
"bytesOffset",
|
|
"",
|
|
"byteCount",
|
|
"commonRead",
|
|
"sink",
|
|
"",
|
|
"Lokio/Buffer;",
|
|
"commonReadAll",
|
|
"Lokio/Sink;",
|
|
"commonReadByte",
|
|
"commonReadByteArray",
|
|
"commonReadByteString",
|
|
"commonReadDecimalLong",
|
|
"commonReadFully",
|
|
"commonReadHexadecimalUnsignedLong",
|
|
"commonReadInt",
|
|
"commonReadIntLe",
|
|
"commonReadLong",
|
|
"commonReadLongLe",
|
|
"commonReadShort",
|
|
"",
|
|
"commonReadShortLe",
|
|
"commonReadUtf8",
|
|
"",
|
|
"commonReadUtf8CodePoint",
|
|
"commonReadUtf8Line",
|
|
"commonReadUtf8LineStrict",
|
|
"limit",
|
|
"commonRequest",
|
|
"commonRequire",
|
|
"commonSelect",
|
|
"options",
|
|
"Lokio/Options;",
|
|
"commonSkip",
|
|
"commonTimeout",
|
|
"Lokio/Timeout;",
|
|
"commonToString",
|
|
"okio"
|
|
}
|
|
k = 0x2
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public static final commonClose(Lokio/RealBufferedSource;)V
|
|
.locals 1
|
|
|
|
const-string v0, "$this$commonClose"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 390
|
|
iget-boolean v0, p0, Lokio/RealBufferedSource;->closed:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
.line 391
|
|
iput-boolean v0, p0, Lokio/RealBufferedSource;->closed:Z
|
|
|
|
.line 392
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->source:Lokio/Source;
|
|
|
|
invoke-interface {v0}, Lokio/Source;->close()V
|
|
|
|
.line 472
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 393
|
|
invoke-virtual {p0}, Lokio/Buffer;->clear()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final commonExhausted(Lokio/RealBufferedSource;)Z
|
|
.locals 6
|
|
|
|
const-string v0, "$this$commonExhausted"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 48
|
|
iget-boolean v0, p0, Lokio/RealBufferedSource;->closed:Z
|
|
|
|
const/4 v1, 0x1
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 405
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 49
|
|
invoke-virtual {v0}, Lokio/Buffer;->exhausted()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->source:Lokio/Source;
|
|
|
|
.line 405
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
const/16 v2, 0x2000
|
|
|
|
int-to-long v2, v2
|
|
|
|
.line 49
|
|
invoke-interface {v0, p0, v2, v3}, Lokio/Source;->read(Lokio/Buffer;J)J
|
|
|
|
move-result-wide v2
|
|
|
|
const-wide/16 v4, -0x1
|
|
|
|
cmp-long p0, v2, v4
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
return v1
|
|
|
|
.line 48
|
|
: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 commonIndexOf(Lokio/RealBufferedSource;BJJ)J
|
|
.locals 10
|
|
|
|
const-string v0, "$this$commonIndexOf"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 312
|
|
iget-boolean v0, p0, Lokio/RealBufferedSource;->closed:Z
|
|
|
|
const/4 v1, 0x1
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v0, v2, p2
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
cmp-long v0, p4, p2
|
|
|
|
if-ltz v0, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v1, :cond_5
|
|
|
|
:goto_2
|
|
cmp-long v0, p2, p4
|
|
|
|
const-wide/16 v8, -0x1
|
|
|
|
if-gez v0, :cond_4
|
|
|
|
.line 462
|
|
iget-object v2, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
move v3, p1
|
|
|
|
move-wide v4, p2
|
|
|
|
move-wide v6, p4
|
|
|
|
.line 316
|
|
invoke-virtual/range {v2 .. v7}, Lokio/Buffer;->indexOf(BJJ)J
|
|
|
|
move-result-wide v0
|
|
|
|
cmp-long v2, v0, v8
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
return-wide v0
|
|
|
|
.line 463
|
|
:cond_2
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
invoke-virtual {v0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
cmp-long v2, v0, p4
|
|
|
|
if-gez v2, :cond_4
|
|
|
|
.line 322
|
|
iget-object v2, p0, Lokio/RealBufferedSource;->source:Lokio/Source;
|
|
|
|
.line 464
|
|
iget-object v3, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
const/16 v4, 0x2000
|
|
|
|
int-to-long v4, v4
|
|
|
|
.line 322
|
|
invoke-interface {v2, v3, v4, v5}, Lokio/Source;->read(Lokio/Buffer;J)J
|
|
|
|
move-result-wide v2
|
|
|
|
cmp-long v2, v2, v8
|
|
|
|
if-nez v2, :cond_3
|
|
|
|
goto :goto_3
|
|
|
|
.line 325
|
|
:cond_3
|
|
invoke-static {p2, p3, v0, v1}, Ljava/lang/Math;->max(JJ)J
|
|
|
|
move-result-wide p2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
:goto_3
|
|
return-wide v8
|
|
|
|
.line 313
|
|
:cond_5
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, "fromIndex="
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, " toIndex="
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, p4, p5}, 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
|
|
|
|
.line 312
|
|
:cond_6
|
|
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 commonIndexOf(Lokio/RealBufferedSource;Lokio/ByteString;J)J
|
|
.locals 8
|
|
|
|
const-string v0, "$this$commonIndexOf"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "bytes"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 332
|
|
iget-boolean v0, p0, Lokio/RealBufferedSource;->closed:Z
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 465
|
|
:goto_0
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 335
|
|
invoke-virtual {v0, p1, p2, p3}, Lokio/Buffer;->indexOf(Lokio/ByteString;J)J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
return-wide v0
|
|
|
|
.line 466
|
|
:cond_0
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
invoke-virtual {v0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
.line 339
|
|
iget-object v4, p0, Lokio/RealBufferedSource;->source:Lokio/Source;
|
|
|
|
.line 467
|
|
iget-object v5, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
const/16 v6, 0x2000
|
|
|
|
int-to-long v6, v6
|
|
|
|
.line 339
|
|
invoke-interface {v4, v5, v6, v7}, Lokio/Source;->read(Lokio/Buffer;J)J
|
|
|
|
move-result-wide v4
|
|
|
|
cmp-long v4, v4, v2
|
|
|
|
if-nez v4, :cond_1
|
|
|
|
return-wide v2
|
|
|
|
.line 342
|
|
:cond_1
|
|
invoke-virtual {p1}, Lokio/ByteString;->size()I
|
|
|
|
move-result v2
|
|
|
|
int-to-long v2, v2
|
|
|
|
sub-long/2addr v0, v2
|
|
|
|
const-wide/16 v2, 0x1
|
|
|
|
add-long/2addr v0, v2
|
|
|
|
invoke-static {p2, p3, v0, v1}, Ljava/lang/Math;->max(JJ)J
|
|
|
|
move-result-wide p2
|
|
|
|
goto :goto_0
|
|
|
|
.line 332
|
|
:cond_2
|
|
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 commonIndexOfElement(Lokio/RealBufferedSource;Lokio/ByteString;J)J
|
|
.locals 8
|
|
|
|
const-string v0, "$this$commonIndexOfElement"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "targetBytes"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 348
|
|
iget-boolean v0, p0, Lokio/RealBufferedSource;->closed:Z
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 468
|
|
:goto_0
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 351
|
|
invoke-virtual {v0, p1, p2, p3}, Lokio/Buffer;->indexOfElement(Lokio/ByteString;J)J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
return-wide v0
|
|
|
|
.line 469
|
|
:cond_0
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
invoke-virtual {v0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
.line 355
|
|
iget-object v4, p0, Lokio/RealBufferedSource;->source:Lokio/Source;
|
|
|
|
.line 470
|
|
iget-object v5, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
const/16 v6, 0x2000
|
|
|
|
int-to-long v6, v6
|
|
|
|
.line 355
|
|
invoke-interface {v4, v5, v6, v7}, Lokio/Source;->read(Lokio/Buffer;J)J
|
|
|
|
move-result-wide v4
|
|
|
|
cmp-long v4, v4, v2
|
|
|
|
if-nez v4, :cond_1
|
|
|
|
return-wide v2
|
|
|
|
.line 358
|
|
:cond_1
|
|
invoke-static {p2, p3, v0, v1}, Ljava/lang/Math;->max(JJ)J
|
|
|
|
move-result-wide p2
|
|
|
|
goto :goto_0
|
|
|
|
.line 348
|
|
:cond_2
|
|
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 commonPeek(Lokio/RealBufferedSource;)Lokio/BufferedSource;
|
|
.locals 1
|
|
|
|
const-string v0, "$this$commonPeek"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 386
|
|
new-instance v0, Lokio/PeekSource;
|
|
|
|
check-cast p0, Lokio/BufferedSource;
|
|
|
|
invoke-direct {v0, p0}, Lokio/PeekSource;-><init>(Lokio/BufferedSource;)V
|
|
|
|
check-cast v0, Lokio/Source;
|
|
|
|
invoke-static {v0}, Lokio/Okio;->buffer(Lokio/Source;)Lokio/BufferedSource;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonRangeEquals(Lokio/RealBufferedSource;JLokio/ByteString;II)Z
|
|
.locals 7
|
|
|
|
const-string v0, "$this$commonRangeEquals"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "bytes"
|
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 368
|
|
iget-boolean v0, p0, Lokio/RealBufferedSource;->closed:Z
|
|
|
|
const/4 v1, 0x1
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v0, p1, v2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-ltz v0, :cond_4
|
|
|
|
if-ltz p4, :cond_4
|
|
|
|
if-ltz p5, :cond_4
|
|
|
|
.line 373
|
|
invoke-virtual {p3}, Lokio/ByteString;->size()I
|
|
|
|
move-result v0
|
|
|
|
sub-int/2addr v0, p4
|
|
|
|
if-ge v0, p5, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
move v0, v2
|
|
|
|
:goto_0
|
|
if-ge v0, p5, :cond_3
|
|
|
|
int-to-long v3, v0
|
|
|
|
add-long/2addr v3, p1
|
|
|
|
const-wide/16 v5, 0x1
|
|
|
|
add-long/2addr v5, v3
|
|
|
|
.line 379
|
|
invoke-virtual {p0, v5, v6}, Lokio/RealBufferedSource;->request(J)Z
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_1
|
|
|
|
return v2
|
|
|
|
.line 471
|
|
:cond_1
|
|
iget-object v5, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 380
|
|
invoke-virtual {v5, v3, v4}, Lokio/Buffer;->getByte(J)B
|
|
|
|
move-result v3
|
|
|
|
add-int v4, p4, v0
|
|
|
|
invoke-virtual {p3, v4}, Lokio/ByteString;->getByte(I)B
|
|
|
|
move-result v4
|
|
|
|
if-eq v3, v4, :cond_2
|
|
|
|
return v2
|
|
|
|
:cond_2
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
return v1
|
|
|
|
:cond_4
|
|
:goto_1
|
|
return v2
|
|
|
|
.line 368
|
|
:cond_5
|
|
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 commonRead(Lokio/RealBufferedSource;[BII)I
|
|
.locals 9
|
|
|
|
const-string v0, "$this$commonRead"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "sink"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 131
|
|
array-length v0, p1
|
|
|
|
int-to-long v1, v0
|
|
|
|
int-to-long v3, p2
|
|
|
|
int-to-long v7, p3
|
|
|
|
move-wide v5, v7
|
|
|
|
invoke-static/range {v1 .. v6}, Lokio/-Util;->checkOffsetAndCount(JJJ)V
|
|
|
|
.line 421
|
|
iget-object p3, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 133
|
|
invoke-virtual {p3}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long p3, v0, v2
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
.line 134
|
|
iget-object p3, p0, Lokio/RealBufferedSource;->source:Lokio/Source;
|
|
|
|
.line 422
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
const/16 v1, 0x2000
|
|
|
|
int-to-long v1, v1
|
|
|
|
.line 134
|
|
invoke-interface {p3, v0, v1, v2}, Lokio/Source;->read(Lokio/Buffer;J)J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long p3, v0, v2
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
const/4 p0, -0x1
|
|
|
|
return p0
|
|
|
|
.line 423
|
|
:cond_0
|
|
iget-object p3, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
invoke-virtual {p3}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
.line 424
|
|
invoke-static {v7, v8, v0, v1}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide v0
|
|
|
|
long-to-int p3, v0
|
|
|
|
.line 425
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 139
|
|
invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->read([BII)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final commonRead(Lokio/RealBufferedSource;Lokio/Buffer;J)J
|
|
.locals 4
|
|
|
|
const-string v0, "$this$commonRead"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "sink"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v2, p2, v0
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-ltz v2, :cond_0
|
|
|
|
move v2, v3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v2, :cond_3
|
|
|
|
.line 36
|
|
iget-boolean v2, p0, Lokio/RealBufferedSource;->closed:Z
|
|
|
|
xor-int/2addr v2, v3
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
.line 401
|
|
iget-object v2, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 38
|
|
invoke-virtual {v2}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v2
|
|
|
|
cmp-long v0, v2, v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 39
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->source:Lokio/Source;
|
|
|
|
.line 402
|
|
iget-object v1, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
const/16 v2, 0x2000
|
|
|
|
int-to-long v2, v2
|
|
|
|
.line 39
|
|
invoke-interface {v0, v1, v2, v3}, Lokio/Source;->read(Lokio/Buffer;J)J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
return-wide v2
|
|
|
|
.line 403
|
|
:cond_1
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
invoke-virtual {v0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
.line 43
|
|
invoke-static {p2, p3, v0, v1}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide p2
|
|
|
|
.line 404
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 44
|
|
invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->read(Lokio/Buffer;J)J
|
|
|
|
move-result-wide p0
|
|
|
|
return-wide p0
|
|
|
|
.line 36
|
|
:cond_2
|
|
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
|
|
|
|
.line 35
|
|
:cond_3
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
const-string p1, "byteCount < 0: "
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p2, p3}, 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 commonReadAll(Lokio/RealBufferedSource;Lokio/Sink;)J
|
|
.locals 8
|
|
|
|
const-string v0, "$this$commonReadAll"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "sink"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
move-wide v2, v0
|
|
|
|
.line 156
|
|
:cond_0
|
|
:goto_0
|
|
iget-object v4, p0, Lokio/RealBufferedSource;->source:Lokio/Source;
|
|
|
|
.line 428
|
|
iget-object v5, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
const/16 v6, 0x2000
|
|
|
|
int-to-long v6, v6
|
|
|
|
.line 156
|
|
invoke-interface {v4, v5, v6, v7}, Lokio/Source;->read(Lokio/Buffer;J)J
|
|
|
|
move-result-wide v4
|
|
|
|
const-wide/16 v6, -0x1
|
|
|
|
cmp-long v4, v4, v6
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
.line 429
|
|
iget-object v4, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 157
|
|
invoke-virtual {v4}, Lokio/Buffer;->completeSegmentByteCount()J
|
|
|
|
move-result-wide v4
|
|
|
|
cmp-long v6, v4, v0
|
|
|
|
if-lez v6, :cond_0
|
|
|
|
add-long/2addr v2, v4
|
|
|
|
.line 430
|
|
iget-object v6, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 160
|
|
invoke-interface {p1, v6, v4, v5}, Lokio/Sink;->write(Lokio/Buffer;J)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 431
|
|
:cond_1
|
|
iget-object v4, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 163
|
|
invoke-virtual {v4}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v4
|
|
|
|
cmp-long v0, v4, v0
|
|
|
|
if-lez v0, :cond_2
|
|
|
|
.line 432
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
invoke-virtual {v0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
add-long/2addr v2, v0
|
|
|
|
.line 433
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v4
|
|
|
|
.line 165
|
|
invoke-interface {p1, v0, v4, v5}, Lokio/Sink;->write(Lokio/Buffer;J)V
|
|
|
|
:cond_2
|
|
return-wide v2
|
|
.end method
|
|
|
|
.method public static final commonReadByte(Lokio/RealBufferedSource;)B
|
|
.locals 2
|
|
|
|
const-string v0, "$this$commonReadByte"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x1
|
|
|
|
.line 66
|
|
invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V
|
|
|
|
.line 408
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 67
|
|
invoke-virtual {p0}, Lokio/Buffer;->readByte()B
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final commonReadByteArray(Lokio/RealBufferedSource;)[B
|
|
.locals 2
|
|
|
|
const-string v0, "$this$commonReadByteArray"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 415
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 104
|
|
iget-object v1, p0, Lokio/RealBufferedSource;->source:Lokio/Source;
|
|
|
|
invoke-virtual {v0, v1}, Lokio/Buffer;->writeAll(Lokio/Source;)J
|
|
|
|
.line 416
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 105
|
|
invoke-virtual {p0}, Lokio/Buffer;->readByteArray()[B
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonReadByteArray(Lokio/RealBufferedSource;J)[B
|
|
.locals 1
|
|
|
|
const-string v0, "$this$commonReadByteArray"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 109
|
|
invoke-virtual {p0, p1, p2}, Lokio/RealBufferedSource;->require(J)V
|
|
|
|
.line 417
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 110
|
|
invoke-virtual {p0, p1, p2}, Lokio/Buffer;->readByteArray(J)[B
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonReadByteString(Lokio/RealBufferedSource;)Lokio/ByteString;
|
|
.locals 2
|
|
|
|
const-string v0, "$this$commonReadByteString"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 409
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 71
|
|
iget-object v1, p0, Lokio/RealBufferedSource;->source:Lokio/Source;
|
|
|
|
invoke-virtual {v0, v1}, Lokio/Buffer;->writeAll(Lokio/Source;)J
|
|
|
|
.line 410
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 72
|
|
invoke-virtual {p0}, Lokio/Buffer;->readByteString()Lokio/ByteString;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonReadByteString(Lokio/RealBufferedSource;J)Lokio/ByteString;
|
|
.locals 1
|
|
|
|
const-string v0, "$this$commonReadByteString"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 76
|
|
invoke-virtual {p0, p1, p2}, Lokio/RealBufferedSource;->require(J)V
|
|
|
|
.line 411
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 77
|
|
invoke-virtual {p0, p1, p2}, Lokio/Buffer;->readByteString(J)Lokio/ByteString;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonReadDecimalLong(Lokio/RealBufferedSource;)J
|
|
.locals 10
|
|
|
|
const-string v0, "$this$commonReadDecimalLong"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x1
|
|
|
|
.line 257
|
|
invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
move-wide v4, v2
|
|
|
|
:goto_0
|
|
add-long v6, v4, v0
|
|
|
|
.line 260
|
|
invoke-virtual {p0, v6, v7}, Lokio/RealBufferedSource;->request(J)Z
|
|
|
|
move-result v8
|
|
|
|
if-eqz v8, :cond_4
|
|
|
|
.line 455
|
|
iget-object v8, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 261
|
|
invoke-virtual {v8, v4, v5}, Lokio/Buffer;->getByte(J)B
|
|
|
|
move-result v8
|
|
|
|
const/16 v9, 0x30
|
|
|
|
int-to-byte v9, v9
|
|
|
|
if-lt v8, v9, :cond_0
|
|
|
|
const/16 v9, 0x39
|
|
|
|
int-to-byte v9, v9
|
|
|
|
if-le v8, v9, :cond_1
|
|
|
|
:cond_0
|
|
cmp-long v4, v4, v2
|
|
|
|
if-nez v4, :cond_2
|
|
|
|
const/16 v5, 0x2d
|
|
|
|
int-to-byte v5, v5
|
|
|
|
if-eq v8, v5, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move-wide v4, v6
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
:goto_1
|
|
if-eqz v4, :cond_3
|
|
|
|
goto :goto_2
|
|
|
|
.line 265
|
|
:cond_3
|
|
new-instance p0, Ljava/lang/NumberFormatException;
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "Expected leading [0-9] or \'-\' character but was 0x"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
const/16 v1, 0x10
|
|
|
|
invoke-static {v1}, Lkotlin/text/CharsKt;->checkRadix(I)I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Lkotlin/text/CharsKt;->checkRadix(I)I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v8, v1}, Ljava/lang/Integer;->toString(II)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "java.lang.Integer.toStri\u2026(this, checkRadix(radix))"
|
|
|
|
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
.line 456
|
|
:cond_4
|
|
:goto_2
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 272
|
|
invoke-virtual {p0}, Lokio/Buffer;->readDecimalLong()J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public static final commonReadFully(Lokio/RealBufferedSource;Lokio/Buffer;J)V
|
|
.locals 1
|
|
|
|
const-string v0, "$this$commonReadFully"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "sink"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 144
|
|
:try_start_0
|
|
invoke-virtual {p0, p2, p3}, Lokio/RealBufferedSource;->require(J)V
|
|
:try_end_0
|
|
.catch Ljava/io/EOFException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 427
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 151
|
|
invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->readFully(Lokio/Buffer;J)V
|
|
|
|
return-void
|
|
|
|
:catch_0
|
|
move-exception p2
|
|
|
|
.line 426
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
check-cast p0, Lokio/Source;
|
|
|
|
.line 147
|
|
invoke-virtual {p1, p0}, Lokio/Buffer;->writeAll(Lokio/Source;)J
|
|
|
|
.line 148
|
|
check-cast p2, Ljava/lang/Throwable;
|
|
|
|
throw p2
|
|
.end method
|
|
|
|
.method public static final commonReadFully(Lokio/RealBufferedSource;[B)V
|
|
.locals 6
|
|
|
|
const-string v0, "$this$commonReadFully"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "sink"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 115
|
|
:try_start_0
|
|
array-length v0, p1
|
|
|
|
int-to-long v0, v0
|
|
|
|
invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V
|
|
:try_end_0
|
|
.catch Ljava/io/EOFException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 420
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 127
|
|
invoke-virtual {p0, p1}, Lokio/Buffer;->readFully([B)V
|
|
|
|
return-void
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 418
|
|
:goto_0
|
|
iget-object v2, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
invoke-virtual {v2}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v2
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
cmp-long v2, v2, v4
|
|
|
|
if-lez v2, :cond_1
|
|
|
|
.line 419
|
|
iget-object v2, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
iget-object v3, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
invoke-virtual {v3}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v3
|
|
|
|
long-to-int v3, v3
|
|
|
|
.line 120
|
|
invoke-virtual {v2, p1, v1, v3}, Lokio/Buffer;->read([BII)I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, -0x1
|
|
|
|
if-eq v2, v3, :cond_0
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
goto :goto_0
|
|
|
|
.line 121
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/AssertionError;
|
|
|
|
invoke-direct {p0}, Ljava/lang/AssertionError;-><init>()V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
.line 124
|
|
:cond_1
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final commonReadHexadecimalUnsignedLong(Lokio/RealBufferedSource;)J
|
|
.locals 5
|
|
|
|
const-string v0, "$this$commonReadHexadecimalUnsignedLong"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x1
|
|
|
|
.line 276
|
|
invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
add-int/lit8 v1, v0, 0x1
|
|
|
|
int-to-long v2, v1
|
|
|
|
.line 279
|
|
invoke-virtual {p0, v2, v3}, Lokio/RealBufferedSource;->request(J)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
.line 457
|
|
iget-object v2, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
int-to-long v3, v0
|
|
|
|
.line 280
|
|
invoke-virtual {v2, v3, v4}, Lokio/Buffer;->getByte(J)B
|
|
|
|
move-result v2
|
|
|
|
const/16 v3, 0x30
|
|
|
|
int-to-byte v3, v3
|
|
|
|
if-lt v2, v3, :cond_0
|
|
|
|
const/16 v3, 0x39
|
|
|
|
int-to-byte v3, v3
|
|
|
|
if-le v2, v3, :cond_2
|
|
|
|
:cond_0
|
|
const/16 v3, 0x61
|
|
|
|
int-to-byte v3, v3
|
|
|
|
if-lt v2, v3, :cond_1
|
|
|
|
const/16 v3, 0x66
|
|
|
|
int-to-byte v3, v3
|
|
|
|
if-le v2, v3, :cond_2
|
|
|
|
:cond_1
|
|
const/16 v3, 0x41
|
|
|
|
int-to-byte v3, v3
|
|
|
|
if-lt v2, v3, :cond_3
|
|
|
|
const/16 v3, 0x46
|
|
|
|
int-to-byte v3, v3
|
|
|
|
if-le v2, v3, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
move v0, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
:goto_1
|
|
if-eqz v0, :cond_4
|
|
|
|
goto :goto_2
|
|
|
|
.line 287
|
|
:cond_4
|
|
new-instance p0, Ljava/lang/NumberFormatException;
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "Expected leading [0-9a-fA-F] character but was 0x"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
const/16 v1, 0x10
|
|
|
|
invoke-static {v1}, Lkotlin/text/CharsKt;->checkRadix(I)I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v1}, Lkotlin/text/CharsKt;->checkRadix(I)I
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v2, v1}, Ljava/lang/Integer;->toString(II)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "java.lang.Integer.toStri\u2026(this, checkRadix(radix))"
|
|
|
|
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
.line 458
|
|
:cond_5
|
|
:goto_2
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 294
|
|
invoke-virtual {p0}, Lokio/Buffer;->readHexadecimalUnsignedLong()J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public static final commonReadInt(Lokio/RealBufferedSource;)I
|
|
.locals 2
|
|
|
|
const-string v0, "$this$commonReadInt"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x4
|
|
|
|
.line 237
|
|
invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V
|
|
|
|
.line 451
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 238
|
|
invoke-virtual {p0}, Lokio/Buffer;->readInt()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final commonReadIntLe(Lokio/RealBufferedSource;)I
|
|
.locals 2
|
|
|
|
const-string v0, "$this$commonReadIntLe"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x4
|
|
|
|
.line 242
|
|
invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V
|
|
|
|
.line 452
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 243
|
|
invoke-virtual {p0}, Lokio/Buffer;->readIntLe()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final commonReadLong(Lokio/RealBufferedSource;)J
|
|
.locals 2
|
|
|
|
const-string v0, "$this$commonReadLong"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x8
|
|
|
|
.line 247
|
|
invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V
|
|
|
|
.line 453
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 248
|
|
invoke-virtual {p0}, Lokio/Buffer;->readLong()J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public static final commonReadLongLe(Lokio/RealBufferedSource;)J
|
|
.locals 2
|
|
|
|
const-string v0, "$this$commonReadLongLe"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x8
|
|
|
|
.line 252
|
|
invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V
|
|
|
|
.line 454
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 253
|
|
invoke-virtual {p0}, Lokio/Buffer;->readLongLe()J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public static final commonReadShort(Lokio/RealBufferedSource;)S
|
|
.locals 2
|
|
|
|
const-string v0, "$this$commonReadShort"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x2
|
|
|
|
.line 227
|
|
invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V
|
|
|
|
.line 449
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 228
|
|
invoke-virtual {p0}, Lokio/Buffer;->readShort()S
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final commonReadShortLe(Lokio/RealBufferedSource;)S
|
|
.locals 2
|
|
|
|
const-string v0, "$this$commonReadShortLe"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x2
|
|
|
|
.line 232
|
|
invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V
|
|
|
|
.line 450
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 233
|
|
invoke-virtual {p0}, Lokio/Buffer;->readShortLe()S
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final commonReadUtf8(Lokio/RealBufferedSource;)Ljava/lang/String;
|
|
.locals 2
|
|
|
|
const-string v0, "$this$commonReadUtf8"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 434
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 171
|
|
iget-object v1, p0, Lokio/RealBufferedSource;->source:Lokio/Source;
|
|
|
|
invoke-virtual {v0, v1}, Lokio/Buffer;->writeAll(Lokio/Source;)J
|
|
|
|
.line 435
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 172
|
|
invoke-virtual {p0}, Lokio/Buffer;->readUtf8()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonReadUtf8(Lokio/RealBufferedSource;J)Ljava/lang/String;
|
|
.locals 1
|
|
|
|
const-string v0, "$this$commonReadUtf8"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 176
|
|
invoke-virtual {p0, p1, p2}, Lokio/RealBufferedSource;->require(J)V
|
|
|
|
.line 436
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 177
|
|
invoke-virtual {p0, p1, p2}, Lokio/Buffer;->readUtf8(J)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonReadUtf8CodePoint(Lokio/RealBufferedSource;)I
|
|
.locals 3
|
|
|
|
const-string v0, "$this$commonReadUtf8CodePoint"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x1
|
|
|
|
.line 214
|
|
invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V
|
|
|
|
.line 447
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
const-wide/16 v1, 0x0
|
|
|
|
.line 216
|
|
invoke-virtual {v0, v1, v2}, Lokio/Buffer;->getByte(J)B
|
|
|
|
move-result v0
|
|
|
|
and-int/lit16 v1, v0, 0xe0
|
|
|
|
const/16 v2, 0xc0
|
|
|
|
if-ne v1, v2, :cond_0
|
|
|
|
const-wide/16 v0, 0x2
|
|
|
|
.line 218
|
|
invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
and-int/lit16 v1, v0, 0xf0
|
|
|
|
const/16 v2, 0xe0
|
|
|
|
if-ne v1, v2, :cond_1
|
|
|
|
const-wide/16 v0, 0x3
|
|
|
|
.line 219
|
|
invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
and-int/lit16 v0, v0, 0xf8
|
|
|
|
const/16 v1, 0xf0
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
const-wide/16 v0, 0x4
|
|
|
|
.line 220
|
|
invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V
|
|
|
|
.line 448
|
|
:cond_2
|
|
:goto_0
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 223
|
|
invoke-virtual {p0}, Lokio/Buffer;->readUtf8CodePoint()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final commonReadUtf8Line(Lokio/RealBufferedSource;)Ljava/lang/String;
|
|
.locals 4
|
|
|
|
const-string v0, "$this$commonReadUtf8Line"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/16 v0, 0xa
|
|
|
|
int-to-byte v0, v0
|
|
|
|
.line 181
|
|
invoke-virtual {p0, v0}, Lokio/RealBufferedSource;->indexOf(B)J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long v2, v0, v2
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
.line 437
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 184
|
|
invoke-virtual {v0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 438
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
invoke-virtual {v0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
.line 185
|
|
invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->readUtf8(J)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
.line 439
|
|
:cond_1
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 190
|
|
invoke-static {p0, v0, v1}, Lokio/internal/BufferKt;->readUtf8Line(Lokio/Buffer;J)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonReadUtf8LineStrict(Lokio/RealBufferedSource;J)Ljava/lang/String;
|
|
.locals 13
|
|
|
|
const-string v0, "$this$commonReadUtf8LineStrict"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
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_4
|
|
|
|
const-wide v0, 0x7fffffffffffffffL
|
|
|
|
cmp-long v2, p1, v0
|
|
|
|
const-wide/16 v3, 0x1
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
move-wide v5, v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
add-long v5, p1, v3
|
|
|
|
:goto_1
|
|
const/16 v2, 0xa
|
|
|
|
int-to-byte v2, v2
|
|
|
|
const-wide/16 v9, 0x0
|
|
|
|
move-object v7, p0
|
|
|
|
move v8, v2
|
|
|
|
move-wide v11, v5
|
|
|
|
.line 197
|
|
invoke-virtual/range {v7 .. v12}, Lokio/RealBufferedSource;->indexOf(BJJ)J
|
|
|
|
move-result-wide v7
|
|
|
|
const-wide/16 v9, -0x1
|
|
|
|
cmp-long v9, v7, v9
|
|
|
|
if-eqz v9, :cond_2
|
|
|
|
.line 440
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 198
|
|
invoke-static {p0, v7, v8}, Lokio/internal/BufferKt;->readUtf8Line(Lokio/Buffer;J)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_2
|
|
cmp-long v0, v5, v0
|
|
|
|
if-gez v0, :cond_3
|
|
|
|
.line 200
|
|
invoke-virtual {p0, v5, v6}, Lokio/RealBufferedSource;->request(J)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 441
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
sub-long v7, v5, v3
|
|
|
|
.line 200
|
|
invoke-virtual {v0, v7, v8}, Lokio/Buffer;->getByte(J)B
|
|
|
|
move-result v0
|
|
|
|
const/16 v1, 0xd
|
|
|
|
int-to-byte v1, v1
|
|
|
|
if-ne v0, v1, :cond_3
|
|
|
|
add-long/2addr v3, v5
|
|
|
|
.line 201
|
|
invoke-virtual {p0, v3, v4}, Lokio/RealBufferedSource;->request(J)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 442
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 201
|
|
invoke-virtual {v0, v5, v6}, Lokio/Buffer;->getByte(J)B
|
|
|
|
move-result v0
|
|
|
|
if-ne v0, v2, :cond_3
|
|
|
|
.line 443
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 203
|
|
invoke-static {p0, v5, v6}, Lokio/internal/BufferKt;->readUtf8Line(Lokio/Buffer;J)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 205
|
|
:cond_3
|
|
new-instance v6, Lokio/Buffer;
|
|
|
|
invoke-direct {v6}, Lokio/Buffer;-><init>()V
|
|
|
|
.line 444
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
iget-object v1, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
invoke-virtual {v1}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v4
|
|
|
|
const/16 v1, 0x20
|
|
|
|
int-to-long v7, v1
|
|
|
|
.line 445
|
|
invoke-static {v7, v8, v4, v5}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide v4
|
|
|
|
move-object v1, v6
|
|
|
|
.line 206
|
|
invoke-virtual/range {v0 .. v5}, Lokio/Buffer;->copyTo(Lokio/Buffer;JJ)Lokio/Buffer;
|
|
|
|
.line 207
|
|
new-instance v0, Ljava/io/EOFException;
|
|
|
|
.line 208
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "\\n not found: limit="
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 446
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
invoke-virtual {p0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v2
|
|
|
|
.line 208
|
|
invoke-static {v2, v3, p1, p2}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide p0
|
|
|
|
invoke-virtual {v1, p0, p1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, " content="
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
.line 209
|
|
invoke-virtual {v6}, Lokio/Buffer;->readByteString()Lokio/ByteString;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lokio/ByteString;->hex()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, "\u2026"
|
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
.line 207
|
|
invoke-direct {v0, p0}, Ljava/io/EOFException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
|
|
.line 195
|
|
:cond_4
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, "limit < 0: "
|
|
|
|
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 commonRequest(Lokio/RealBufferedSource;J)Z
|
|
.locals 7
|
|
|
|
const-string v0, "$this$commonRequest"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v0, p1, v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
move v0, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v0, v1
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 58
|
|
iget-boolean v0, p0, Lokio/RealBufferedSource;->closed:Z
|
|
|
|
xor-int/2addr v0, v2
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 406
|
|
:cond_1
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
invoke-virtual {v0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v3
|
|
|
|
cmp-long v0, v3, p1
|
|
|
|
if-gez v0, :cond_2
|
|
|
|
.line 60
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->source:Lokio/Source;
|
|
|
|
.line 407
|
|
iget-object v3, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
const/16 v4, 0x2000
|
|
|
|
int-to-long v4, v4
|
|
|
|
.line 60
|
|
invoke-interface {v0, v3, v4, v5}, Lokio/Source;->read(Lokio/Buffer;J)J
|
|
|
|
move-result-wide v3
|
|
|
|
const-wide/16 v5, -0x1
|
|
|
|
cmp-long v0, v3, v5
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
return v1
|
|
|
|
:cond_2
|
|
return v2
|
|
|
|
.line 58
|
|
:cond_3
|
|
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
|
|
|
|
.line 57
|
|
:cond_4
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, "byteCount < 0: "
|
|
|
|
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 commonRequire(Lokio/RealBufferedSource;J)V
|
|
.locals 1
|
|
|
|
const-string v0, "$this$commonRequire"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 53
|
|
invoke-virtual {p0, p1, p2}, Lokio/RealBufferedSource;->request(J)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
new-instance p0, Ljava/io/EOFException;
|
|
|
|
invoke-direct {p0}, Ljava/io/EOFException;-><init>()V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final commonSelect(Lokio/RealBufferedSource;Lokio/Options;)I
|
|
.locals 8
|
|
|
|
const-string v0, "$this$commonSelect"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "options"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 81
|
|
iget-boolean v0, p0, Lokio/RealBufferedSource;->closed:Z
|
|
|
|
const/4 v1, 0x1
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 412
|
|
:cond_0
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 84
|
|
invoke-static {v0, p1, v1}, Lokio/internal/BufferKt;->selectPrefix(Lokio/Buffer;Lokio/Options;Z)I
|
|
|
|
move-result v0
|
|
|
|
const/4 v2, -0x2
|
|
|
|
const/4 v3, -0x1
|
|
|
|
if-eq v0, v2, :cond_2
|
|
|
|
if-eq v0, v3, :cond_1
|
|
|
|
.line 95
|
|
invoke-virtual {p1}, Lokio/Options;->getByteStrings$okio()[Lokio/ByteString;
|
|
|
|
move-result-object p1
|
|
|
|
aget-object p1, p1, v0
|
|
|
|
invoke-virtual {p1}, Lokio/ByteString;->size()I
|
|
|
|
move-result p1
|
|
|
|
.line 414
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
int-to-long v1, p1
|
|
|
|
.line 96
|
|
invoke-virtual {p0, v1, v2}, Lokio/Buffer;->skip(J)V
|
|
|
|
return v0
|
|
|
|
:cond_1
|
|
return v3
|
|
|
|
.line 91
|
|
:cond_2
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->source:Lokio/Source;
|
|
|
|
.line 413
|
|
iget-object v2, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
const/16 v4, 0x2000
|
|
|
|
int-to-long v4, v4
|
|
|
|
.line 91
|
|
invoke-interface {v0, v2, v4, v5}, Lokio/Source;->read(Lokio/Buffer;J)J
|
|
|
|
move-result-wide v4
|
|
|
|
const-wide/16 v6, -0x1
|
|
|
|
cmp-long v0, v4, v6
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v3
|
|
|
|
.line 81
|
|
:cond_3
|
|
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 commonSkip(Lokio/RealBufferedSource;J)V
|
|
.locals 4
|
|
|
|
const-string v0, "$this$commonSkip"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 299
|
|
iget-boolean v0, p0, Lokio/RealBufferedSource;->closed:Z
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
:goto_0
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v2, p1, v0
|
|
|
|
if-lez v2, :cond_2
|
|
|
|
.line 459
|
|
iget-object v2, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 301
|
|
invoke-virtual {v2}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v2
|
|
|
|
cmp-long v0, v2, v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->source:Lokio/Source;
|
|
|
|
.line 459
|
|
iget-object v1, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
const/16 v2, 0x2000
|
|
|
|
int-to-long v2, v2
|
|
|
|
.line 301
|
|
invoke-interface {v0, v1, v2, v3}, Lokio/Source;->read(Lokio/Buffer;J)J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 302
|
|
: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 460
|
|
:cond_1
|
|
:goto_1
|
|
iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
invoke-virtual {v0}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v0
|
|
|
|
.line 304
|
|
invoke-static {p1, p2, v0, v1}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide v0
|
|
|
|
.line 461
|
|
iget-object v2, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer;
|
|
|
|
.line 305
|
|
invoke-virtual {v2, v0, v1}, Lokio/Buffer;->skip(J)V
|
|
|
|
sub-long/2addr p1, v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return-void
|
|
|
|
.line 299
|
|
:cond_3
|
|
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 commonTimeout(Lokio/RealBufferedSource;)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 396
|
|
iget-object p0, p0, Lokio/RealBufferedSource;->source:Lokio/Source;
|
|
|
|
invoke-interface {p0}, Lokio/Source;->timeout()Lokio/Timeout;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final commonToString(Lokio/RealBufferedSource;)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 398
|
|
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/RealBufferedSource;->source:Lokio/Source;
|
|
|
|
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
|