.class public final Lokio/RealBufferedSource; .super Ljava/lang/Object; .source "RealBufferedSource.kt" # interfaces .implements Lokio/BufferedSource; # annotations .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nRealBufferedSource.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RealBufferedSource.kt\nokio/RealBufferedSource\n+ 2 RealBufferedSource.kt\nokio/internal/RealBufferedSourceKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 -Util.kt\nokio/-Util\n*L\n1#1,182:1\n61#1:188\n61#1:198\n61#1:205\n61#1:211\n61#1:213\n61#1:217\n61#1:222\n61#1:237\n61#1:241\n61#1:248\n61#1:261\n61#1:269\n61#1:270\n61#1:271\n61#1:277\n61#1:285\n61#1:298\n61#1:302\n61#1:303\n61#1:304\n61#1:305\n61#1:310\n61#1:322\n61#1:338\n61#1:348\n61#1:351\n61#1:354\n61#1:357\n61#1:360\n61#1:363\n61#1:369\n61#1:386\n61#1:406\n61#1:421\n61#1:438\n61#1:451\n61#1:472\n61#1:479\n35#2:183\n36#2,3:185\n39#2,6:189\n48#2:195\n49#2:197\n53#2,2:199\n57#2:201\n58#2,2:203\n60#2,3:206\n66#2,2:209\n71#2:212\n72#2:214\n76#2,2:215\n81#2:218\n83#2,2:220\n85#2,13:223\n104#2:236\n105#2:238\n109#2,2:239\n114#2,6:242\n120#2,9:249\n131#2,3:258\n134#2,5:262\n139#2:268\n143#2,5:272\n148#2,5:278\n155#2,2:283\n157#2,11:286\n171#2:297\n172#2:299\n176#2,2:300\n181#2,4:306\n185#2,6:311\n195#2:317\n196#2,3:319\n199#2,8:323\n207#2,3:332\n214#2,3:335\n217#2,7:339\n227#2,2:346\n232#2,2:349\n237#2,2:352\n242#2,2:355\n247#2,2:358\n252#2,2:361\n257#2,5:364\n262#2,11:370\n276#2,5:381\n281#2,14:387\n298#2,2:401\n300#2,2:404\n302#2,7:407\n311#2,2:414\n313#2,4:417\n317#2,11:422\n331#2,2:433\n334#2,2:436\n336#2,7:439\n347#2,2:446\n350#2,2:449\n352#2,7:452\n368#2:459\n370#2,11:461\n382#2:473\n386#2:474\n390#2,4:475\n394#2:480\n396#2:481\n398#2:482\n1#3:184\n1#3:196\n1#3:202\n1#3:219\n1#3:318\n1#3:403\n1#3:416\n1#3:435\n1#3:448\n1#3:460\n78#4:267\n78#4:331\n*E\n*S KotlinDebug\n*F\n+ 1 RealBufferedSource.kt\nokio/RealBufferedSource\n*L\n65#1:188\n66#1:198\n68#1:205\n69#1:211\n70#1:213\n71#1:217\n72#1:222\n73#1:237\n74#1:241\n76#1:248\n78#1:261\n81#1:269\n82#1:270\n86#1:271\n89#1:277\n90#1:285\n91#1:298\n92#1:302\n95#1:303\n96#1:304\n101#1:305\n104#1:310\n106#1:322\n107#1:338\n108#1:348\n109#1:351\n110#1:354\n111#1:357\n112#1:360\n113#1:363\n114#1:369\n115#1:386\n116#1:406\n120#1:421\n123#1:438\n126#1:451\n138#1:472\n178#1:479\n65#1:183\n65#1,3:185\n65#1,6:189\n66#1:195\n66#1:197\n67#1,2:199\n68#1:201\n68#1,2:203\n68#1,3:206\n69#1,2:209\n70#1:212\n70#1:214\n71#1,2:215\n72#1:218\n72#1,2:220\n72#1,13:223\n73#1:236\n73#1:238\n74#1,2:239\n76#1,6:242\n76#1,9:249\n78#1,3:258\n78#1,5:262\n78#1:268\n89#1,5:272\n89#1,5:278\n90#1,2:283\n90#1,11:286\n91#1:297\n91#1:299\n92#1,2:300\n104#1,4:306\n104#1,6:311\n106#1:317\n106#1,3:319\n106#1,8:323\n106#1,3:332\n107#1,3:335\n107#1,7:339\n108#1,2:346\n109#1,2:349\n110#1,2:352\n111#1,2:355\n112#1,2:358\n113#1,2:361\n114#1,5:364\n114#1,11:370\n115#1,5:381\n115#1,14:387\n116#1,2:401\n116#1,2:404\n116#1,7:407\n120#1,2:414\n120#1,4:417\n120#1,11:422\n123#1,2:433\n123#1,2:436\n123#1,7:439\n126#1,2:446\n126#1,2:449\n126#1,7:452\n138#1:459\n138#1,11:461\n138#1:473\n140#1:474\n178#1,4:475\n178#1:480\n179#1:481\n180#1:482\n65#1:184\n66#1:196\n68#1:202\n72#1:219\n106#1:318\n116#1:403\n120#1:416\n123#1:435\n126#1:448\n138#1:460\n78#1:267\n106#1:331\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; bv = { 0x1, 0x0, 0x3 } d1 = { "\u0000\u0086\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0006\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0002\n\u0002\u0008\u0002\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\u0005\n\u0002\u0010\u0008\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0010\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u000b\n\u0002\u0010\n\n\u0002\u0008\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\t\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0008\u0000\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0002\u0010\u0004J\u0008\u0010\u0005\u001a\u00020\u0006H\u0016J\u0008\u0010\u000e\u001a\u00020\u000fH\u0016J\u0008\u0010\u0010\u001a\u00020\rH\u0016J\u0010\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0013\u001a\u00020\u0014H\u0016J\u0018\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0013\u001a\u00020\u00142\u0006\u0010\u0015\u001a\u00020\u0012H\u0016J \u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0013\u001a\u00020\u00142\u0006\u0010\u0015\u001a\u00020\u00122\u0006\u0010\u0016\u001a\u00020\u0012H\u0016J\u0010\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0017\u001a\u00020\u0018H\u0016J\u0018\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0017\u001a\u00020\u00182\u0006\u0010\u0015\u001a\u00020\u0012H\u0016J\u0010\u0010\u0019\u001a\u00020\u00122\u0006\u0010\u001a\u001a\u00020\u0018H\u0016J\u0018\u0010\u0019\u001a\u00020\u00122\u0006\u0010\u001a\u001a\u00020\u00182\u0006\u0010\u0015\u001a\u00020\u0012H\u0016J\u0008\u0010\u001b\u001a\u00020\u001cH\u0016J\u0008\u0010\u001d\u001a\u00020\rH\u0016J\u0008\u0010\u001e\u001a\u00020\u0001H\u0016J\u0018\u0010\u001f\u001a\u00020\r2\u0006\u0010 \u001a\u00020\u00122\u0006\u0010\u0017\u001a\u00020\u0018H\u0016J(\u0010\u001f\u001a\u00020\r2\u0006\u0010 \u001a\u00020\u00122\u0006\u0010\u0017\u001a\u00020\u00182\u0006\u0010!\u001a\u00020\"2\u0006\u0010#\u001a\u00020\"H\u0016J\u0010\u0010$\u001a\u00020\"2\u0006\u0010%\u001a\u00020&H\u0016J\u0010\u0010$\u001a\u00020\"2\u0006\u0010%\u001a\u00020\'H\u0016J \u0010$\u001a\u00020\"2\u0006\u0010%\u001a\u00020\'2\u0006\u0010 \u001a\u00020\"2\u0006\u0010#\u001a\u00020\"H\u0016J\u0018\u0010$\u001a\u00020\u00122\u0006\u0010%\u001a\u00020\u00062\u0006\u0010#\u001a\u00020\u0012H\u0016J\u0010\u0010(\u001a\u00020\u00122\u0006\u0010%\u001a\u00020)H\u0016J\u0008\u0010*\u001a\u00020\u0014H\u0016J\u0008\u0010+\u001a\u00020\'H\u0016J\u0010\u0010+\u001a\u00020\'2\u0006\u0010#\u001a\u00020\u0012H\u0016J\u0008\u0010,\u001a\u00020\u0018H\u0016J\u0010\u0010,\u001a\u00020\u00182\u0006\u0010#\u001a\u00020\u0012H\u0016J\u0008\u0010-\u001a\u00020\u0012H\u0016J\u0010\u0010.\u001a\u00020\u000f2\u0006\u0010%\u001a\u00020\'H\u0016J\u0018\u0010.\u001a\u00020\u000f2\u0006\u0010%\u001a\u00020\u00062\u0006\u0010#\u001a\u00020\u0012H\u0016J\u0008\u0010/\u001a\u00020\u0012H\u0016J\u0008\u00100\u001a\u00020\"H\u0016J\u0008\u00101\u001a\u00020\"H\u0016J\u0008\u00102\u001a\u00020\u0012H\u0016J\u0008\u00103\u001a\u00020\u0012H\u0016J\u0008\u00104\u001a\u000205H\u0016J\u0008\u00106\u001a\u000205H\u0016J\u0010\u00107\u001a\u0002082\u0006\u00109\u001a\u00020:H\u0016J\u0018\u00107\u001a\u0002082\u0006\u0010#\u001a\u00020\u00122\u0006\u00109\u001a\u00020:H\u0016J\u0008\u0010;\u001a\u000208H\u0016J\u0010\u0010;\u001a\u0002082\u0006\u0010#\u001a\u00020\u0012H\u0016J\u0008\u0010<\u001a\u00020\"H\u0016J\n\u0010=\u001a\u0004\u0018\u000108H\u0016J\u0008\u0010>\u001a\u000208H\u0016J\u0010\u0010>\u001a\u0002082\u0006\u0010?\u001a\u00020\u0012H\u0016J\u0010\u0010@\u001a\u00020\r2\u0006\u0010#\u001a\u00020\u0012H\u0016J\u0010\u0010A\u001a\u00020\u000f2\u0006\u0010#\u001a\u00020\u0012H\u0016J\u0010\u0010B\u001a\u00020\"2\u0006\u0010C\u001a\u00020DH\u0016J\u0010\u0010E\u001a\u00020\u000f2\u0006\u0010#\u001a\u00020\u0012H\u0016J\u0008\u0010F\u001a\u00020GH\u0016J\u0008\u0010H\u001a\u000208H\u0016R\u001b\u0010\u0005\u001a\u00020\u00068\u00d6\u0002X\u0096\u0004\u00a2\u0006\u000c\u0012\u0004\u0008\u0007\u0010\u0008\u001a\u0004\u0008\t\u0010\nR\u0010\u0010\u000b\u001a\u00020\u00068\u0006X\u0087\u0004\u00a2\u0006\u0002\n\u0000R\u0012\u0010\u000c\u001a\u00020\r8\u0006@\u0006X\u0087\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u0010\u0002\u001a\u00020\u00038\u0006X\u0087\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006I" } d2 = { "Lokio/RealBufferedSource;", "Lokio/BufferedSource;", "source", "Lokio/Source;", "(Lokio/Source;)V", "buffer", "Lokio/Buffer;", "getBuffer$annotations", "()V", "getBuffer", "()Lokio/Buffer;", "bufferField", "closed", "", "close", "", "exhausted", "indexOf", "", "b", "", "fromIndex", "toIndex", "bytes", "Lokio/ByteString;", "indexOfElement", "targetBytes", "inputStream", "Ljava/io/InputStream;", "isOpen", "peek", "rangeEquals", "offset", "bytesOffset", "", "byteCount", "read", "sink", "Ljava/nio/ByteBuffer;", "", "readAll", "Lokio/Sink;", "readByte", "readByteArray", "readByteString", "readDecimalLong", "readFully", "readHexadecimalUnsignedLong", "readInt", "readIntLe", "readLong", "readLongLe", "readShort", "", "readShortLe", "readString", "", "charset", "Ljava/nio/charset/Charset;", "readUtf8", "readUtf8CodePoint", "readUtf8Line", "readUtf8LineStrict", "limit", "request", "require", "select", "options", "Lokio/Options;", "skip", "timeout", "Lokio/Timeout;", "toString", "okio" } k = 0x1 mv = { 0x1, 0x4, 0x0 } .end annotation # instance fields .field public final bufferField:Lokio/Buffer; .field public closed:Z .field public final source:Lokio/Source; # direct methods .method public constructor (Lokio/Source;)V .locals 1 const-string v0, "source" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 53 invoke-direct {p0}, Ljava/lang/Object;->()V iput-object p1, p0, Lokio/RealBufferedSource;->source:Lokio/Source; .line 56 new-instance p1, Lokio/Buffer; invoke-direct {p1}, Lokio/Buffer;->()V iput-object p1, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; return-void .end method .method public static synthetic getBuffer$annotations()V .locals 0 return-void .end method # virtual methods .method public buffer()Lokio/Buffer; .locals 0 iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; return-object p0 .end method .method public close()V .locals 1 iget-boolean v0, p0, Lokio/RealBufferedSource;->closed:Z if-eqz v0, :cond_0 goto :goto_0 :cond_0 const/4 v0, 0x1 iput-boolean v0, p0, Lokio/RealBufferedSource;->closed:Z iget-object v0, p0, Lokio/RealBufferedSource;->source:Lokio/Source; .line 477 invoke-interface {v0}, Lokio/Source;->close()V iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 478 invoke-virtual {p0}, Lokio/Buffer;->clear()V :goto_0 return-void .end method .method public exhausted()Z .locals 6 iget-boolean v0, p0, Lokio/RealBufferedSource;->closed:Z const/4 v1, 0x1 xor-int/2addr v0, v1 if-eqz v0, :cond_1 iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 197 invoke-virtual {v0}, Lokio/Buffer;->exhausted()Z move-result v0 if-eqz v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSource;->source:Lokio/Source; iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; const/16 v2, 0x2000 int-to-long v2, v2 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 195 :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;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public getBuffer()Lokio/Buffer; .locals 0 iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; return-object p0 .end method .method public indexOf(B)J .locals 6 const-wide/16 v2, 0x0 const-wide v4, 0x7fffffffffffffffL move-object v0, p0 move v1, p1 .line 117 invoke-virtual/range {v0 .. v5}, Lokio/RealBufferedSource;->indexOf(BJJ)J move-result-wide p0 return-wide p0 .end method .method public indexOf(BJ)J .locals 6 const-wide v4, 0x7fffffffffffffffL move-object v0, p0 move v1, p1 move-wide v2, p2 .line 118 invoke-virtual/range {v0 .. v5}, Lokio/RealBufferedSource;->indexOf(BJJ)J move-result-wide p0 return-wide p0 .end method .method public indexOf(BJJ)J .locals 10 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 iget-object v2, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; move v3, p1 move-wide v4, p2 move-wide v6, p4 .line 420 invoke-virtual/range {v2 .. v7}, Lokio/Buffer;->indexOf(BJJ)J move-result-wide v0 cmp-long v2, v0, v8 if-eqz v2, :cond_2 move-wide v8, v0 goto :goto_3 :cond_2 iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 421 invoke-virtual {v0}, Lokio/Buffer;->size()J move-result-wide v0 cmp-long v2, v0, p4 if-gez v2, :cond_4 iget-object v2, p0, Lokio/RealBufferedSource;->source:Lokio/Source; iget-object v3, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; const/16 v4, 0x2000 int-to-long v4, v4 .line 427 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 430 :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 417 :cond_5 new-instance p0, Ljava/lang/StringBuilder; const-string p1, "fromIndex=" invoke-direct {p0, p1}, Ljava/lang/StringBuilder;->(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;->(Ljava/lang/String;)V check-cast p1, Ljava/lang/Throwable; throw p1 .line 415 :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;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public indexOf(Lokio/ByteString;)J .locals 2 const-string v0, "bytes" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-wide/16 v0, 0x0 .line 122 invoke-virtual {p0, p1, v0, v1}, Lokio/RealBufferedSource;->indexOf(Lokio/ByteString;J)J move-result-wide p0 return-wide p0 .end method .method public indexOf(Lokio/ByteString;J)J .locals 8 const-string v0, "bytes" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-boolean v0, p0, Lokio/RealBufferedSource;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_2 :goto_0 iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 437 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 goto :goto_1 :cond_0 iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 438 invoke-virtual {v0}, Lokio/Buffer;->size()J move-result-wide v0 iget-object v4, p0, Lokio/RealBufferedSource;->source:Lokio/Source; iget-object v5, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; const/16 v6, 0x2000 int-to-long v6, v6 .line 442 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 move-wide v0, v2 :goto_1 return-wide v0 .line 445 :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 434 :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;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public indexOfElement(Lokio/ByteString;)J .locals 2 const-string v0, "targetBytes" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-wide/16 v0, 0x0 .line 124 invoke-virtual {p0, p1, v0, v1}, Lokio/RealBufferedSource;->indexOfElement(Lokio/ByteString;J)J move-result-wide p0 return-wide p0 .end method .method public indexOfElement(Lokio/ByteString;J)J .locals 8 const-string v0, "targetBytes" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-boolean v0, p0, Lokio/RealBufferedSource;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_2 :goto_0 iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 450 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 goto :goto_1 :cond_0 iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 451 invoke-virtual {v0}, Lokio/Buffer;->size()J move-result-wide v0 iget-object v4, p0, Lokio/RealBufferedSource;->source:Lokio/Source; iget-object v5, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; const/16 v6, 0x2000 int-to-long v6, v6 .line 455 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 move-wide v0, v2 :goto_1 return-wide v0 .line 458 :cond_1 invoke-static {p2, p3, v0, v1}, Ljava/lang/Math;->max(JJ)J move-result-wide p2 goto :goto_0 .line 447 :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;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public inputStream()Ljava/io/InputStream; .locals 1 .line 143 new-instance v0, Lokio/RealBufferedSource$inputStream$1; invoke-direct {v0, p0}, Lokio/RealBufferedSource$inputStream$1;->(Lokio/RealBufferedSource;)V check-cast v0, Ljava/io/InputStream; return-object v0 .end method .method public isOpen()Z .locals 0 iget-boolean p0, p0, Lokio/RealBufferedSource;->closed:Z xor-int/lit8 p0, p0, 0x1 return p0 .end method .method public peek()Lokio/BufferedSource; .locals 1 .line 474 new-instance v0, Lokio/PeekSource; check-cast p0, Lokio/BufferedSource; invoke-direct {v0, p0}, Lokio/PeekSource;->(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 rangeEquals(JLokio/ByteString;)Z .locals 7 const-string v0, "bytes" invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/4 v5, 0x0 .line 130 invoke-virtual {p3}, Lokio/ByteString;->size()I move-result v6 move-object v1, p0 move-wide v2, p1 move-object v4, p3 .line 128 invoke-virtual/range {v1 .. v6}, Lokio/RealBufferedSource;->rangeEquals(JLokio/ByteString;II)Z move-result p0 return p0 .end method .method public rangeEquals(JLokio/ByteString;II)Z .locals 7 const-string v0, "bytes" invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V 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_3 if-ltz p4, :cond_3 if-ltz p5, :cond_3 .line 464 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_4 int-to-long v3, v0 add-long/2addr v3, p1 const-wide/16 v5, 0x1 add-long/2addr v5, v3 .line 470 invoke-virtual {p0, v5, v6}, Lokio/RealBufferedSource;->request(J)Z move-result v5 if-nez v5, :cond_1 goto :goto_1 :cond_1 iget-object v5, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 471 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 goto :goto_1 :cond_2 add-int/lit8 v0, v0, 0x1 goto :goto_0 :cond_3 :goto_1 move v1, v2 :cond_4 return v1 .line 459 :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;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public read(Ljava/nio/ByteBuffer;)I .locals 4 const-string v0, "sink" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 81 invoke-virtual {v0}, Lokio/Buffer;->size()J move-result-wide v0 const-wide/16 v2, 0x0 cmp-long v0, v0, v2 if-nez v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSource;->source:Lokio/Source; iget-object v1, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; const/16 v2, 0x2000 int-to-long v2, v2 .line 82 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_0 const/4 p0, -0x1 return p0 :cond_0 iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 86 invoke-virtual {p0, p1}, Lokio/Buffer;->read(Ljava/nio/ByteBuffer;)I move-result p0 return p0 .end method .method public read([B)I .locals 2 const-string v0, "sink" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x0 .line 75 array-length v1, p1 invoke-virtual {p0, p1, v0, v1}, Lokio/RealBufferedSource;->read([BII)I move-result p0 return p0 .end method .method public read([BII)I .locals 9 const-string v0, "sink" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 258 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 iget-object p3, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 260 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 iget-object p3, p0, Lokio/RealBufferedSource;->source:Lokio/Source; iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; const/16 v1, 0x2000 int-to-long v1, v1 .line 262 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 goto :goto_0 :cond_0 iget-object p3, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 261 invoke-virtual {p3}, Lokio/Buffer;->size()J move-result-wide v0 .line 267 invoke-static {v7, v8, v0, v1}, Ljava/lang/Math;->min(JJ)J move-result-wide v0 long-to-int p3, v0 iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 268 invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->read([BII)I move-result p0 :goto_0 return p0 .end method .method public read(Lokio/Buffer;J)J .locals 4 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 iget-boolean v2, p0, Lokio/RealBufferedSource;->closed:Z xor-int/2addr v2, v3 if-eqz v2, :cond_2 iget-object v2, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 187 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; iget-object v1, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; const/16 v2, 0x2000 int-to-long v2, v2 .line 189 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 goto :goto_1 :cond_1 iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 188 invoke-virtual {v0}, Lokio/Buffer;->size()J move-result-wide v0 .line 193 invoke-static {p2, p3, v0, v1}, Ljava/lang/Math;->min(JJ)J move-result-wide p2 iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 194 invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->read(Lokio/Buffer;J)J move-result-wide v2 :goto_1 return-wide v2 .line 185 :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;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .line 183 :cond_3 new-instance p0, Ljava/lang/StringBuilder; const-string p1, "byteCount < 0: " invoke-direct {p0, p1}, Ljava/lang/StringBuilder;->(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;->(Ljava/lang/String;)V check-cast p1, Ljava/lang/Throwable; throw p1 .end method .method public readAll(Lokio/Sink;)J .locals 8 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 :cond_0 :goto_0 iget-object v4, p0, Lokio/RealBufferedSource;->source:Lokio/Source; iget-object v5, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; const/16 v6, 0x2000 int-to-long v6, v6 .line 284 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 iget-object v4, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 286 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 iget-object v6, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 289 invoke-interface {p1, v6, v4, v5}, Lokio/Sink;->write(Lokio/Buffer;J)V goto :goto_0 :cond_1 iget-object v4, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 292 invoke-virtual {v4}, Lokio/Buffer;->size()J move-result-wide v4 cmp-long v0, v4, v0 if-lez v0, :cond_2 iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 285 invoke-virtual {v0}, Lokio/Buffer;->size()J move-result-wide v0 add-long/2addr v2, v0 iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 .line 294 invoke-interface {p1, p0, v0, v1}, Lokio/Sink;->write(Lokio/Buffer;J)V :cond_2 return-wide v2 .end method .method public readByte()B .locals 2 const-wide/16 v0, 0x1 .line 209 invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 210 invoke-virtual {p0}, Lokio/Buffer;->readByte()B move-result p0 return p0 .end method .method public readByteArray()[B .locals 2 iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; iget-object v1, p0, Lokio/RealBufferedSource;->source:Lokio/Source; .line 236 invoke-virtual {v0, v1}, Lokio/Buffer;->writeAll(Lokio/Source;)J iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 238 invoke-virtual {p0}, Lokio/Buffer;->readByteArray()[B move-result-object p0 return-object p0 .end method .method public readByteArray(J)[B .locals 0 .line 239 invoke-virtual {p0, p1, p2}, Lokio/RealBufferedSource;->require(J)V iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 240 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->readByteArray(J)[B move-result-object p0 return-object p0 .end method .method public readByteString()Lokio/ByteString; .locals 2 iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; iget-object v1, p0, Lokio/RealBufferedSource;->source:Lokio/Source; .line 212 invoke-virtual {v0, v1}, Lokio/Buffer;->writeAll(Lokio/Source;)J iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 214 invoke-virtual {p0}, Lokio/Buffer;->readByteString()Lokio/ByteString; move-result-object p0 return-object p0 .end method .method public readByteString(J)Lokio/ByteString; .locals 0 .line 215 invoke-virtual {p0, p1, p2}, Lokio/RealBufferedSource;->require(J)V iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 216 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->readByteString(J)Lokio/ByteString; move-result-object p0 return-object p0 .end method .method public readDecimalLong()J .locals 10 const-wide/16 v0, 0x1 .line 364 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 367 invoke-virtual {p0, v6, v7}, Lokio/RealBufferedSource;->request(J)Z move-result v8 if-eqz v8, :cond_4 iget-object v8, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 368 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 373 :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;->(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;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 :cond_4 :goto_2 iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 380 invoke-virtual {p0}, Lokio/Buffer;->readDecimalLong()J move-result-wide v0 return-wide v0 .end method .method public readFully(Lokio/Buffer;J)V .locals 1 const-string v0, "sink" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 273 :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 iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 281 invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->readFully(Lokio/Buffer;J)V return-void :catch_0 move-exception p2 iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 277 check-cast p0, Lokio/Source; .line 276 invoke-virtual {p1, p0}, Lokio/Buffer;->writeAll(Lokio/Source;)J .line 278 check-cast p2, Ljava/lang/Throwable; throw p2 .end method .method public readFully([B)V .locals 6 const-string v0, "sink" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 243 :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 iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 256 invoke-virtual {p0, p1}, Lokio/Buffer;->readFully([B)V return-void :catch_0 move-exception v0 const/4 v1, 0x0 :goto_0 iget-object v2, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 248 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 iget-object v2, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; invoke-virtual {v2}, Lokio/Buffer;->size()J move-result-wide v3 long-to-int v3, v3 .line 249 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 250 :cond_0 new-instance p0, Ljava/lang/AssertionError; invoke-direct {p0}, Ljava/lang/AssertionError;->()V check-cast p0, Ljava/lang/Throwable; throw p0 .line 253 :cond_1 check-cast v0, Ljava/lang/Throwable; throw v0 .end method .method public readHexadecimalUnsignedLong()J .locals 5 const-wide/16 v0, 0x1 .line 381 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 384 invoke-virtual {p0, v2, v3}, Lokio/RealBufferedSource;->request(J)Z move-result v2 if-eqz v2, :cond_5 iget-object v2, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; int-to-long v3, v0 .line 385 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 393 :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;->(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;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 :cond_5 :goto_2 iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 400 invoke-virtual {p0}, Lokio/Buffer;->readHexadecimalUnsignedLong()J move-result-wide v0 return-wide v0 .end method .method public readInt()I .locals 2 const-wide/16 v0, 0x4 .line 352 invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 353 invoke-virtual {p0}, Lokio/Buffer;->readInt()I move-result p0 return p0 .end method .method public readIntLe()I .locals 2 const-wide/16 v0, 0x4 .line 355 invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 356 invoke-virtual {p0}, Lokio/Buffer;->readIntLe()I move-result p0 return p0 .end method .method public readLong()J .locals 2 const-wide/16 v0, 0x8 .line 358 invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 359 invoke-virtual {p0}, Lokio/Buffer;->readLong()J move-result-wide v0 return-wide v0 .end method .method public readLongLe()J .locals 2 const-wide/16 v0, 0x8 .line 361 invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 362 invoke-virtual {p0}, Lokio/Buffer;->readLongLe()J move-result-wide v0 return-wide v0 .end method .method public readShort()S .locals 2 const-wide/16 v0, 0x2 .line 346 invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 347 invoke-virtual {p0}, Lokio/Buffer;->readShort()S move-result p0 return p0 .end method .method public readShortLe()S .locals 2 const-wide/16 v0, 0x2 .line 349 invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 350 invoke-virtual {p0}, Lokio/Buffer;->readShortLe()S move-result p0 return p0 .end method .method public readString(JLjava/nio/charset/Charset;)Ljava/lang/String; .locals 1 const-string v0, "charset" invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 100 invoke-virtual {p0, p1, p2}, Lokio/RealBufferedSource;->require(J)V iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 101 invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->readString(JLjava/nio/charset/Charset;)Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public readString(Ljava/nio/charset/Charset;)Ljava/lang/String; .locals 2 const-string v0, "charset" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; iget-object v1, p0, Lokio/RealBufferedSource;->source:Lokio/Source; .line 95 invoke-virtual {v0, v1}, Lokio/Buffer;->writeAll(Lokio/Source;)J iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 96 invoke-virtual {p0, p1}, Lokio/Buffer;->readString(Ljava/nio/charset/Charset;)Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public readUtf8()Ljava/lang/String; .locals 2 iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; iget-object v1, p0, Lokio/RealBufferedSource;->source:Lokio/Source; .line 297 invoke-virtual {v0, v1}, Lokio/Buffer;->writeAll(Lokio/Source;)J iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 299 invoke-virtual {p0}, Lokio/Buffer;->readUtf8()Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public readUtf8(J)Ljava/lang/String; .locals 0 .line 300 invoke-virtual {p0, p1, p2}, Lokio/RealBufferedSource;->require(J)V iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 301 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->readUtf8(J)Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public readUtf8CodePoint()I .locals 3 const-wide/16 v0, 0x1 .line 335 invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; const-wide/16 v1, 0x0 .line 337 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 340 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 341 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 342 invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->require(J)V :cond_2 :goto_0 iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 345 invoke-virtual {p0}, Lokio/Buffer;->readUtf8CodePoint()I move-result p0 return p0 .end method .method public readUtf8Line()Ljava/lang/String; .locals 4 const/16 v0, 0xa int-to-byte v0, v0 .line 306 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 iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 309 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 iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 310 invoke-virtual {v0}, Lokio/Buffer;->size()J move-result-wide v0 .line 311 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 :cond_1 iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 316 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 readUtf8LineStrict()Ljava/lang/String; .locals 2 const-wide v0, 0x7fffffffffffffffL .line 105 invoke-virtual {p0, v0, v1}, Lokio/RealBufferedSource;->readUtf8LineStrict(J)Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public readUtf8LineStrict(J)Ljava/lang/String; .locals 13 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 320 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 iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 321 invoke-static {p0, v7, v8}, Lokio/internal/BufferKt;->readUtf8Line(Lokio/Buffer;J)Ljava/lang/String; move-result-object p0 goto :goto_2 :cond_2 cmp-long v0, v5, v0 if-gez v0, :cond_3 .line 324 invoke-virtual {p0, v5, v6}, Lokio/RealBufferedSource;->request(J)Z move-result v0 if-eqz v0, :cond_3 iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; sub-long v7, v5, v3 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 325 invoke-virtual {p0, v3, v4}, Lokio/RealBufferedSource;->request(J)Z move-result v0 if-eqz v0, :cond_3 iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; invoke-virtual {v0, v5, v6}, Lokio/Buffer;->getByte(J)B move-result v0 if-ne v0, v2, :cond_3 iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 327 invoke-static {p0, v5, v6}, Lokio/internal/BufferKt;->readUtf8Line(Lokio/Buffer;J)Ljava/lang/String; move-result-object p0 :goto_2 return-object p0 .line 329 :cond_3 new-instance v6, Lokio/Buffer; invoke-direct {v6}, Lokio/Buffer;->()V iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; const-wide/16 v2, 0x0 .line 322 invoke-virtual {v0}, Lokio/Buffer;->size()J move-result-wide v4 const/16 v1, 0x20 int-to-long v7, v1 .line 331 invoke-static {v7, v8, v4, v5}, Ljava/lang/Math;->min(JJ)J move-result-wide v4 move-object v1, v6 .line 330 invoke-virtual/range {v0 .. v5}, Lokio/Buffer;->copyTo(Lokio/Buffer;JJ)Lokio/Buffer; .line 332 new-instance v0, Ljava/io/EOFException; .line 333 new-instance v1, Ljava/lang/StringBuilder; const-string v2, "\\n not found: limit=" invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 322 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v2 .line 333 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 334 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 332 invoke-direct {v0, p0}, Ljava/io/EOFException;->(Ljava/lang/String;)V check-cast v0, Ljava/lang/Throwable; throw v0 .line 317 :cond_4 new-instance p0, Ljava/lang/StringBuilder; const-string v0, "limit < 0: " invoke-direct {p0, v0}, Ljava/lang/StringBuilder;->(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;->(Ljava/lang/String;)V check-cast p1, Ljava/lang/Throwable; throw p1 .end method .method public request(J)Z .locals 7 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 iget-boolean v0, p0, Lokio/RealBufferedSource;->closed:Z xor-int/2addr v0, v2 if-eqz v0, :cond_3 :cond_1 iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 205 invoke-virtual {v0}, Lokio/Buffer;->size()J move-result-wide v3 cmp-long v0, v3, p1 if-gez v0, :cond_2 iget-object v0, p0, Lokio/RealBufferedSource;->source:Lokio/Source; iget-object v3, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; const/16 v4, 0x2000 int-to-long v4, v4 .line 206 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 goto :goto_1 :cond_2 move v1, v2 :goto_1 return v1 .line 203 :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;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .line 201 :cond_4 new-instance p0, Ljava/lang/StringBuilder; const-string v0, "byteCount < 0: " invoke-direct {p0, v0}, Ljava/lang/StringBuilder;->(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;->(Ljava/lang/String;)V check-cast p1, Ljava/lang/Throwable; throw p1 .end method .method public require(J)V .locals 0 .line 199 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;->()V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public select(Lokio/Options;)I .locals 8 const-string v0, "options" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-boolean v0, p0, Lokio/RealBufferedSource;->closed:Z const/4 v1, 0x1 xor-int/2addr v0, v1 if-eqz v0, :cond_3 :cond_0 iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 221 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 233 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 iget-object p0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; int-to-long v1, p1 .line 234 invoke-virtual {p0, v1, v2}, Lokio/Buffer;->skip(J)V goto :goto_1 :cond_1 :goto_0 move v0, v3 goto :goto_1 :cond_2 iget-object v0, p0, Lokio/RealBufferedSource;->source:Lokio/Source; iget-object v2, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; const/16 v4, 0x2000 int-to-long v4, v4 .line 229 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 goto :goto_0 :goto_1 return v0 .line 218 :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;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public skip(J)V .locals 4 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 iget-object v2, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 405 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; iget-object v1, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; const/16 v2, 0x2000 int-to-long v2, v2 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 407 :cond_0 new-instance p0, Ljava/io/EOFException; invoke-direct {p0}, Ljava/io/EOFException;->()V check-cast p0, Ljava/lang/Throwable; throw p0 :cond_1 :goto_1 iget-object v0, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 406 invoke-virtual {v0}, Lokio/Buffer;->size()J move-result-wide v0 .line 409 invoke-static {p1, p2, v0, v1}, Ljava/lang/Math;->min(JJ)J move-result-wide v0 iget-object v2, p0, Lokio/RealBufferedSource;->bufferField:Lokio/Buffer; .line 410 invoke-virtual {v2, v0, v1}, Lokio/Buffer;->skip(J)V sub-long/2addr p1, v0 goto :goto_0 :cond_2 return-void .line 402 :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;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public timeout()Lokio/Timeout; .locals 0 iget-object p0, p0, Lokio/RealBufferedSource;->source:Lokio/Source; .line 481 invoke-interface {p0}, Lokio/Source;->timeout()Lokio/Timeout; move-result-object p0 return-object p0 .end method .method public toString()Ljava/lang/String; .locals 2 .line 482 new-instance v0, Ljava/lang/StringBuilder; const-string v1, "buffer(" invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(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