.class public final Lokio/Buffer; .super Ljava/lang/Object; .source "Buffer.kt" # interfaces .implements Lokio/BufferedSource; .implements Lokio/BufferedSink; .implements Ljava/lang/Cloneable; .implements Ljava/nio/channels/ByteChannel; # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lokio/Buffer$UnsafeCursor; } .end annotation .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nBuffer.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Buffer.kt\nokio/Buffer\n+ 2 -Util.kt\nokio/-Util\n+ 3 Buffer.kt\nokio/internal/BufferKt\n+ 4 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,1019:1\n78#2:1020\n75#2:1053\n75#2:1055\n66#2:1115\n66#2:1140\n72#2:1170\n69#2:1176\n78#2:1350\n66#2:1362\n75#2:1463\n78#2:1925\n237#3,32:1021\n272#3,10:1056\n285#3,18:1066\n399#3,2:1084\n105#3:1086\n401#3:1087\n107#3,18:1088\n306#3,9:1106\n315#3,15:1116\n333#3,9:1131\n342#3,20:1141\n365#3,9:1161\n374#3,5:1171\n379#3,17:1177\n636#3,56:1194\n695#3,55:1250\n752#3:1305\n755#3:1306\n756#3,6:1308\n766#3,7:1314\n776#3,6:1321\n784#3,5:1327\n816#3,6:1332\n826#3:1338\n827#3,10:1340\n837#3,2:1351\n842#3,9:1353\n852#3,61:1363\n590#3:1424\n593#3:1425\n594#3,5:1427\n601#3:1432\n604#3,7:1433\n613#3,17:1440\n405#3:1457\n408#3,5:1458\n413#3,10:1464\n426#3,5:1474\n429#3,2:1479\n917#3:1481\n918#3,87:1483\n1008#3,48:1570\n560#3:1618\n567#3,21:1619\n1059#3,7:1640\n1069#3,7:1647\n1079#3,4:1654\n1086#3,8:1658\n1097#3,10:1666\n1110#3,14:1676\n434#3,63:1690\n500#3,40:1753\n543#3:1793\n545#3,13:1795\n1127#3:1808\n1178#3:1809\n1179#3,38:1811\n1219#3,2:1849\n1221#3,4:1852\n1228#3,3:1856\n1232#3,4:1860\n105#3:1864\n1236#3,22:1865\n107#3,18:1887\n1262#3,2:1905\n1264#3,3:1908\n105#3:1911\n1267#3,13:1912\n1280#3,13:1926\n107#3,18:1939\n1297#3,2:1957\n1300#3:1960\n105#3:1961\n1301#3,50:1962\n107#3,18:2012\n1360#3,13:2030\n1376#3,32:2043\n1411#3,12:2075\n1426#3,18:2087\n1448#3:2105\n1449#3:2107\n1454#3,34:2108\n1#4:1054\n1#4:1307\n1#4:1339\n1#4:1426\n1#4:1482\n1#4:1794\n1#4:1810\n1#4:1851\n1#4:1859\n1#4:1907\n1#4:1959\n1#4:2106\n*E\n*S KotlinDebug\n*F\n+ 1 Buffer.kt\nokio/Buffer\n*L\n160#1:1020\n190#1:1053\n228#1:1055\n254#1:1115\n257#1:1140\n260#1:1170\n260#1:1176\n328#1:1350\n331#1:1362\n367#1:1463\n472#1:1925\n174#1,32:1021\n245#1,10:1056\n248#1,18:1066\n251#1,2:1084\n251#1:1086\n251#1:1087\n251#1,18:1088\n254#1,9:1106\n254#1,15:1116\n257#1,9:1131\n257#1,20:1141\n260#1,9:1161\n260#1,5:1171\n260#1,17:1177\n272#1,56:1194\n275#1,55:1250\n277#1:1305\n280#1:1306\n280#1,6:1308\n282#1,7:1314\n285#1,6:1321\n288#1,5:1327\n322#1,6:1332\n328#1:1338\n328#1,10:1340\n328#1,2:1351\n331#1,9:1353\n331#1,61:1363\n333#1:1424\n336#1:1425\n336#1,5:1427\n338#1:1432\n341#1,7:1433\n344#1,17:1440\n364#1:1457\n367#1,5:1458\n367#1,10:1464\n369#1,5:1474\n372#1,2:1479\n377#1:1481\n377#1,87:1483\n380#1,48:1570\n399#1:1618\n405#1,21:1619\n426#1,7:1640\n430#1,7:1647\n432#1,4:1654\n434#1,8:1658\n438#1,10:1666\n442#1,14:1676\n446#1,63:1690\n449#1,40:1753\n452#1:1793\n452#1,13:1795\n454#1:1808\n454#1:1809\n454#1,38:1811\n456#1,2:1849\n456#1,4:1852\n466#1,3:1856\n466#1,4:1860\n466#1:1864\n466#1,22:1865\n466#1,18:1887\n472#1,2:1905\n472#1,3:1908\n472#1:1911\n472#1,13:1912\n472#1,13:1926\n472#1,18:1939\n477#1,2:1957\n477#1:1960\n477#1:1961\n477#1,50:1962\n477#1,18:2012\n487#1,13:2030\n549#1,32:2043\n551#1,12:2075\n559#1,18:2087\n564#1:2105\n564#1:2107\n566#1,34:2108\n280#1:1307\n328#1:1339\n336#1:1426\n377#1:1482\n452#1:1794\n454#1:1810\n456#1:1851\n466#1:1859\n472#1:1907\n477#1:1959\n564#1:2106\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; bv = { 0x1, 0x0, 0x3 } d1 = { "\u0000\u00aa\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u001a\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0002\u0008\u0005\n\u0002\u0010\u0002\n\u0002\u0008\u0006\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\u0008\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\u0008\u0003\n\u0002\u0010\u0005\n\u0002\u0008\u0005\n\u0002\u0010\u0008\n\u0002\u0008\r\n\u0002\u0018\u0002\n\u0002\u0008\u0008\n\u0002\u0018\u0002\n\u0002\u0010\u0012\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u000f\n\u0002\u0010\n\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\n\n\u0002\u0018\u0002\n\u0002\u0008\u0007\n\u0002\u0018\u0002\n\u0002\u0008\u0007\n\u0002\u0018\u0002\n\u0002\u0008\u0017\u0018\u00002\u00020\u00012\u00020\u00022\u00020\u00032\u00020\u0004:\u0002\u0090\u0001B\u0005\u00a2\u0006\u0002\u0010\u0005J\u0008\u0010\u0006\u001a\u00020\u0000H\u0016J\u0006\u0010\u0011\u001a\u00020\u0012J\u0008\u0010\u0013\u001a\u00020\u0000H\u0016J\u0008\u0010\u0014\u001a\u00020\u0012H\u0016J\u0006\u0010\u0015\u001a\u00020\u000cJ\u0006\u0010\u0016\u001a\u00020\u0000J$\u0010\u0017\u001a\u00020\u00002\u0006\u0010\u0018\u001a\u00020\u00192\u0008\u0008\u0002\u0010\u001a\u001a\u00020\u000c2\u0008\u0008\u0002\u0010\u001b\u001a\u00020\u000cH\u0007J\u0018\u0010\u0017\u001a\u00020\u00002\u0006\u0010\u0018\u001a\u00020\u00002\u0008\u0008\u0002\u0010\u001a\u001a\u00020\u000cJ \u0010\u0017\u001a\u00020\u00002\u0006\u0010\u0018\u001a\u00020\u00002\u0008\u0008\u0002\u0010\u001a\u001a\u00020\u000c2\u0006\u0010\u001b\u001a\u00020\u000cJ\u0010\u0010\u001c\u001a\u00020\u001d2\u0006\u0010\u001e\u001a\u00020\u001fH\u0002J\u0008\u0010 \u001a\u00020\u0000H\u0016J\u0008\u0010!\u001a\u00020\u0000H\u0016J\u0013\u0010\"\u001a\u00020#2\u0008\u0010$\u001a\u0004\u0018\u00010%H\u0096\u0002J\u0008\u0010&\u001a\u00020#H\u0016J\u0008\u0010\'\u001a\u00020\u0012H\u0016J\u0016\u0010(\u001a\u00020)2\u0006\u0010*\u001a\u00020\u000cH\u0087\u0002\u00a2\u0006\u0002\u0008+J\u0015\u0010+\u001a\u00020)2\u0006\u0010,\u001a\u00020\u000cH\u0007\u00a2\u0006\u0002\u0008-J\u0008\u0010.\u001a\u00020/H\u0016J\u0018\u00100\u001a\u00020\u001d2\u0006\u0010\u001e\u001a\u00020\u001f2\u0006\u00101\u001a\u00020\u001dH\u0002J\u000e\u00102\u001a\u00020\u001d2\u0006\u00101\u001a\u00020\u001dJ\u000e\u00103\u001a\u00020\u001d2\u0006\u00101\u001a\u00020\u001dJ\u000e\u00104\u001a\u00020\u001d2\u0006\u00101\u001a\u00020\u001dJ\u0010\u00105\u001a\u00020\u000c2\u0006\u00106\u001a\u00020)H\u0016J\u0018\u00105\u001a\u00020\u000c2\u0006\u00106\u001a\u00020)2\u0006\u00107\u001a\u00020\u000cH\u0016J \u00105\u001a\u00020\u000c2\u0006\u00106\u001a\u00020)2\u0006\u00107\u001a\u00020\u000c2\u0006\u00108\u001a\u00020\u000cH\u0016J\u0010\u00105\u001a\u00020\u000c2\u0006\u00109\u001a\u00020\u001dH\u0016J\u0018\u00105\u001a\u00020\u000c2\u0006\u00109\u001a\u00020\u001d2\u0006\u00107\u001a\u00020\u000cH\u0016J\u0010\u0010:\u001a\u00020\u000c2\u0006\u0010;\u001a\u00020\u001dH\u0016J\u0018\u0010:\u001a\u00020\u000c2\u0006\u0010;\u001a\u00020\u001d2\u0006\u00107\u001a\u00020\u000cH\u0016J\u0008\u0010<\u001a\u00020=H\u0016J\u0008\u0010>\u001a\u00020#H\u0016J\u0006\u0010?\u001a\u00020\u001dJ\u0008\u0010@\u001a\u00020\u0019H\u0016J\u0008\u0010A\u001a\u00020\u0001H\u0016J\u0018\u0010B\u001a\u00020#2\u0006\u0010\u001a\u001a\u00020\u000c2\u0006\u00109\u001a\u00020\u001dH\u0016J(\u0010B\u001a\u00020#2\u0006\u0010\u001a\u001a\u00020\u000c2\u0006\u00109\u001a\u00020\u001d2\u0006\u0010C\u001a\u00020/2\u0006\u0010\u001b\u001a\u00020/H\u0016J\u0010\u0010D\u001a\u00020/2\u0006\u0010E\u001a\u00020FH\u0016J\u0010\u0010D\u001a\u00020/2\u0006\u0010E\u001a\u00020GH\u0016J \u0010D\u001a\u00020/2\u0006\u0010E\u001a\u00020G2\u0006\u0010\u001a\u001a\u00020/2\u0006\u0010\u001b\u001a\u00020/H\u0016J\u0018\u0010D\u001a\u00020\u000c2\u0006\u0010E\u001a\u00020\u00002\u0006\u0010\u001b\u001a\u00020\u000cH\u0016J\u0010\u0010H\u001a\u00020\u000c2\u0006\u0010E\u001a\u00020IH\u0016J\u0012\u0010J\u001a\u00020K2\u0008\u0008\u0002\u0010L\u001a\u00020KH\u0007J\u0008\u0010M\u001a\u00020)H\u0016J\u0008\u0010N\u001a\u00020GH\u0016J\u0010\u0010N\u001a\u00020G2\u0006\u0010\u001b\u001a\u00020\u000cH\u0016J\u0008\u0010O\u001a\u00020\u001dH\u0016J\u0010\u0010O\u001a\u00020\u001d2\u0006\u0010\u001b\u001a\u00020\u000cH\u0016J\u0008\u0010P\u001a\u00020\u000cH\u0016J\u000e\u0010Q\u001a\u00020\u00002\u0006\u0010R\u001a\u00020=J\u0016\u0010Q\u001a\u00020\u00002\u0006\u0010R\u001a\u00020=2\u0006\u0010\u001b\u001a\u00020\u000cJ \u0010Q\u001a\u00020\u00122\u0006\u0010R\u001a\u00020=2\u0006\u0010\u001b\u001a\u00020\u000c2\u0006\u0010S\u001a\u00020#H\u0002J\u0010\u0010T\u001a\u00020\u00122\u0006\u0010E\u001a\u00020GH\u0016J\u0018\u0010T\u001a\u00020\u00122\u0006\u0010E\u001a\u00020\u00002\u0006\u0010\u001b\u001a\u00020\u000cH\u0016J\u0008\u0010U\u001a\u00020\u000cH\u0016J\u0008\u0010V\u001a\u00020/H\u0016J\u0008\u0010W\u001a\u00020/H\u0016J\u0008\u0010X\u001a\u00020\u000cH\u0016J\u0008\u0010Y\u001a\u00020\u000cH\u0016J\u0008\u0010Z\u001a\u00020[H\u0016J\u0008\u0010\\\u001a\u00020[H\u0016J\u0010\u0010]\u001a\u00020\u001f2\u0006\u0010^\u001a\u00020_H\u0016J\u0018\u0010]\u001a\u00020\u001f2\u0006\u0010\u001b\u001a\u00020\u000c2\u0006\u0010^\u001a\u00020_H\u0016J\u0012\u0010`\u001a\u00020K2\u0008\u0008\u0002\u0010L\u001a\u00020KH\u0007J\u0008\u0010a\u001a\u00020\u001fH\u0016J\u0010\u0010a\u001a\u00020\u001f2\u0006\u0010\u001b\u001a\u00020\u000cH\u0016J\u0008\u0010b\u001a\u00020/H\u0016J\n\u0010c\u001a\u0004\u0018\u00010\u001fH\u0016J\u0008\u0010d\u001a\u00020\u001fH\u0016J\u0010\u0010d\u001a\u00020\u001f2\u0006\u0010e\u001a\u00020\u000cH\u0016J\u0010\u0010f\u001a\u00020#2\u0006\u0010\u001b\u001a\u00020\u000cH\u0016J\u0010\u0010g\u001a\u00020\u00122\u0006\u0010\u001b\u001a\u00020\u000cH\u0016J\u0010\u0010h\u001a\u00020/2\u0006\u0010i\u001a\u00020jH\u0016J\u0006\u0010k\u001a\u00020\u001dJ\u0006\u0010l\u001a\u00020\u001dJ\u0006\u0010m\u001a\u00020\u001dJ\r\u0010\r\u001a\u00020\u000cH\u0007\u00a2\u0006\u0002\u0008nJ\u0010\u0010o\u001a\u00020\u00122\u0006\u0010\u001b\u001a\u00020\u000cH\u0016J\u0006\u0010p\u001a\u00020\u001dJ\u000e\u0010p\u001a\u00020\u001d2\u0006\u0010\u001b\u001a\u00020/J\u0008\u0010q\u001a\u00020rH\u0016J\u0008\u0010s\u001a\u00020\u001fH\u0016J\u0015\u0010t\u001a\u00020\n2\u0006\u0010u\u001a\u00020/H\u0000\u00a2\u0006\u0002\u0008vJ\u0010\u0010w\u001a\u00020/2\u0006\u0010x\u001a\u00020FH\u0016J\u0010\u0010w\u001a\u00020\u00002\u0006\u0010x\u001a\u00020GH\u0016J \u0010w\u001a\u00020\u00002\u0006\u0010x\u001a\u00020G2\u0006\u0010\u001a\u001a\u00020/2\u0006\u0010\u001b\u001a\u00020/H\u0016J\u0018\u0010w\u001a\u00020\u00122\u0006\u0010x\u001a\u00020\u00002\u0006\u0010\u001b\u001a\u00020\u000cH\u0016J\u0010\u0010w\u001a\u00020\u00002\u0006\u0010y\u001a\u00020\u001dH\u0016J \u0010w\u001a\u00020\u00002\u0006\u0010y\u001a\u00020\u001d2\u0006\u0010\u001a\u001a\u00020/2\u0006\u0010\u001b\u001a\u00020/H\u0016J\u0018\u0010w\u001a\u00020\u00002\u0006\u0010x\u001a\u00020z2\u0006\u0010\u001b\u001a\u00020\u000cH\u0016J\u0010\u0010{\u001a\u00020\u000c2\u0006\u0010x\u001a\u00020zH\u0016J\u0010\u0010|\u001a\u00020\u00002\u0006\u00106\u001a\u00020/H\u0016J\u0010\u0010}\u001a\u00020\u00002\u0006\u0010~\u001a\u00020\u000cH\u0016J\u0010\u0010\u007f\u001a\u00020\u00002\u0006\u0010~\u001a\u00020\u000cH\u0016J\u0012\u0010\u0080\u0001\u001a\u00020\u00002\u0007\u0010\u0081\u0001\u001a\u00020/H\u0016J\u0012\u0010\u0082\u0001\u001a\u00020\u00002\u0007\u0010\u0081\u0001\u001a\u00020/H\u0016J\u0011\u0010\u0083\u0001\u001a\u00020\u00002\u0006\u0010~\u001a\u00020\u000cH\u0016J\u0011\u0010\u0084\u0001\u001a\u00020\u00002\u0006\u0010~\u001a\u00020\u000cH\u0016J\u0012\u0010\u0085\u0001\u001a\u00020\u00002\u0007\u0010\u0086\u0001\u001a\u00020/H\u0016J\u0012\u0010\u0087\u0001\u001a\u00020\u00002\u0007\u0010\u0086\u0001\u001a\u00020/H\u0016J\u001a\u0010\u0088\u0001\u001a\u00020\u00002\u0007\u0010\u0089\u0001\u001a\u00020\u001f2\u0006\u0010^\u001a\u00020_H\u0016J,\u0010\u0088\u0001\u001a\u00020\u00002\u0007\u0010\u0089\u0001\u001a\u00020\u001f2\u0007\u0010\u008a\u0001\u001a\u00020/2\u0007\u0010\u008b\u0001\u001a\u00020/2\u0006\u0010^\u001a\u00020_H\u0016J\u001b\u0010\u008c\u0001\u001a\u00020\u00002\u0006\u0010\u0018\u001a\u00020\u00192\u0008\u0008\u0002\u0010\u001b\u001a\u00020\u000cH\u0007J\u0012\u0010\u008d\u0001\u001a\u00020\u00002\u0007\u0010\u0089\u0001\u001a\u00020\u001fH\u0016J$\u0010\u008d\u0001\u001a\u00020\u00002\u0007\u0010\u0089\u0001\u001a\u00020\u001f2\u0007\u0010\u008a\u0001\u001a\u00020/2\u0007\u0010\u008b\u0001\u001a\u00020/H\u0016J\u0012\u0010\u008e\u0001\u001a\u00020\u00002\u0007\u0010\u008f\u0001\u001a\u00020/H\u0016R\u0014\u0010\u0006\u001a\u00020\u00008VX\u0096\u0004\u00a2\u0006\u0006\u001a\u0004\u0008\u0007\u0010\u0008R\u0014\u0010\t\u001a\u0004\u0018\u00010\n8\u0000@\u0000X\u0081\u000e\u00a2\u0006\u0002\n\u0000R&\u0010\r\u001a\u00020\u000c2\u0006\u0010\u000b\u001a\u00020\u000c8G@@X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\r\u0010\u000e\"\u0004\u0008\u000f\u0010\u0010\u00a8\u0006\u0091\u0001" } d2 = { "Lokio/Buffer;", "Lokio/BufferedSource;", "Lokio/BufferedSink;", "", "Ljava/nio/channels/ByteChannel;", "()V", "buffer", "getBuffer", "()Lokio/Buffer;", "head", "Lokio/Segment;", "", "", "size", "()J", "setSize$okio", "(J)V", "clear", "", "clone", "close", "completeSegmentByteCount", "copy", "copyTo", "out", "Ljava/io/OutputStream;", "offset", "byteCount", "digest", "Lokio/ByteString;", "algorithm", "", "emit", "emitCompleteSegments", "equals", "", "other", "", "exhausted", "flush", "get", "", "pos", "getByte", "index", "-deprecated_getByte", "hashCode", "", "hmac", "key", "hmacSha1", "hmacSha256", "hmacSha512", "indexOf", "b", "fromIndex", "toIndex", "bytes", "indexOfElement", "targetBytes", "inputStream", "Ljava/io/InputStream;", "isOpen", "md5", "outputStream", "peek", "rangeEquals", "bytesOffset", "read", "sink", "Ljava/nio/ByteBuffer;", "", "readAll", "Lokio/Sink;", "readAndWriteUnsafe", "Lokio/Buffer$UnsafeCursor;", "unsafeCursor", "readByte", "readByteArray", "readByteString", "readDecimalLong", "readFrom", "input", "forever", "readFully", "readHexadecimalUnsignedLong", "readInt", "readIntLe", "readLong", "readLongLe", "readShort", "", "readShortLe", "readString", "charset", "Ljava/nio/charset/Charset;", "readUnsafe", "readUtf8", "readUtf8CodePoint", "readUtf8Line", "readUtf8LineStrict", "limit", "request", "require", "select", "options", "Lokio/Options;", "sha1", "sha256", "sha512", "-deprecated_size", "skip", "snapshot", "timeout", "Lokio/Timeout;", "toString", "writableSegment", "minimumCapacity", "writableSegment$okio", "write", "source", "byteString", "Lokio/Source;", "writeAll", "writeByte", "writeDecimalLong", "v", "writeHexadecimalUnsignedLong", "writeInt", "i", "writeIntLe", "writeLong", "writeLongLe", "writeShort", "s", "writeShortLe", "writeString", "string", "beginIndex", "endIndex", "writeTo", "writeUtf8", "writeUtf8CodePoint", "codePoint", "UnsafeCursor", "okio" } k = 0x1 mv = { 0x1, 0x4, 0x0 } .end annotation # instance fields .field public head:Lokio/Segment; .field private size:J # direct methods .method public constructor ()V .locals 0 .line 69 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static synthetic copyTo$default(Lokio/Buffer;Ljava/io/OutputStream;JJILjava/lang/Object;)Lokio/Buffer; .locals 6 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation and-int/lit8 p7, p6, 0x2 if-eqz p7, :cond_0 const-wide/16 p2, 0x0 :cond_0 move-wide v2, p2 and-int/lit8 p2, p6, 0x4 if-eqz p2, :cond_1 .line 143 iget-wide p2, p0, Lokio/Buffer;->size:J sub-long p4, p2, v2 :cond_1 move-wide v4, p4 move-object v0, p0 move-object v1, p1 invoke-virtual/range {v0 .. v5}, Lokio/Buffer;->copyTo(Ljava/io/OutputStream;JJ)Lokio/Buffer; move-result-object p0 return-object p0 .end method .method public static synthetic copyTo$default(Lokio/Buffer;Lokio/Buffer;JILjava/lang/Object;)Lokio/Buffer; .locals 0 and-int/lit8 p4, p4, 0x2 if-eqz p4, :cond_0 const-wide/16 p2, 0x0 :cond_0 invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->copyTo(Lokio/Buffer;J)Lokio/Buffer; move-result-object p0 return-object p0 .end method .method public static synthetic copyTo$default(Lokio/Buffer;Lokio/Buffer;JJILjava/lang/Object;)Lokio/Buffer; .locals 6 and-int/lit8 p6, p6, 0x2 if-eqz p6, :cond_0 const-wide/16 p2, 0x0 :cond_0 move-wide v2, p2 move-object v0, p0 move-object v1, p1 move-wide v4, p4 invoke-virtual/range {v0 .. v5}, Lokio/Buffer;->copyTo(Lokio/Buffer;JJ)Lokio/Buffer; move-result-object p0 return-object p0 .end method .method private final digest(Ljava/lang/String;)Lokio/ByteString; .locals 5 .line 510 invoke-static {p1}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest; move-result-object p1 iget-object p0, p0, Lokio/Buffer;->head:Lokio/Segment; if-eqz p0, :cond_0 .line 512 iget-object v0, p0, Lokio/Segment;->data:[B iget v1, p0, Lokio/Segment;->pos:I iget v2, p0, Lokio/Segment;->limit:I iget v3, p0, Lokio/Segment;->pos:I sub-int/2addr v2, v3 invoke-virtual {p1, v0, v1, v2}, Ljava/security/MessageDigest;->update([BII)V .line 513 iget-object v0, p0, Lokio/Segment;->next:Lokio/Segment; invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V :goto_0 if-eq v0, p0, :cond_0 .line 515 iget-object v1, v0, Lokio/Segment;->data:[B iget v2, v0, Lokio/Segment;->pos:I iget v3, v0, Lokio/Segment;->limit:I iget v4, v0, Lokio/Segment;->pos:I sub-int/2addr v3, v4 invoke-virtual {p1, v1, v2, v3}, Ljava/security/MessageDigest;->update([BII)V .line 516 iget-object v0, v0, Lokio/Segment;->next:Lokio/Segment; invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V goto :goto_0 .line 519 :cond_0 new-instance p0, Lokio/ByteString; invoke-virtual {p1}, Ljava/security/MessageDigest;->digest()[B move-result-object p1 const-string v0, "messageDigest.digest()" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-direct {p0, p1}, Lokio/ByteString;->([B)V return-object p0 .end method .method private final hmac(Ljava/lang/String;Lokio/ByteString;)Lokio/ByteString; .locals 4 .line 533 :try_start_0 invoke-static {p1}, Ljavax/crypto/Mac;->getInstance(Ljava/lang/String;)Ljavax/crypto/Mac; move-result-object v0 .line 534 new-instance v1, Ljavax/crypto/spec/SecretKeySpec; invoke-virtual {p2}, Lokio/ByteString;->internalArray$okio()[B move-result-object p2 invoke-direct {v1, p2, p1}, Ljavax/crypto/spec/SecretKeySpec;->([BLjava/lang/String;)V check-cast v1, Ljava/security/Key; invoke-virtual {v0, v1}, Ljavax/crypto/Mac;->init(Ljava/security/Key;)V iget-object p0, p0, Lokio/Buffer;->head:Lokio/Segment; if-eqz p0, :cond_0 .line 536 iget-object p1, p0, Lokio/Segment;->data:[B iget p2, p0, Lokio/Segment;->pos:I iget v1, p0, Lokio/Segment;->limit:I iget v2, p0, Lokio/Segment;->pos:I sub-int/2addr v1, v2 invoke-virtual {v0, p1, p2, v1}, Ljavax/crypto/Mac;->update([BII)V .line 537 iget-object p1, p0, Lokio/Segment;->next:Lokio/Segment; invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V :goto_0 if-eq p1, p0, :cond_0 .line 539 iget-object p2, p1, Lokio/Segment;->data:[B iget v1, p1, Lokio/Segment;->pos:I iget v2, p1, Lokio/Segment;->limit:I iget v3, p1, Lokio/Segment;->pos:I sub-int/2addr v2, v3 invoke-virtual {v0, p2, v1, v2}, Ljavax/crypto/Mac;->update([BII)V .line 540 iget-object p1, p1, Lokio/Segment;->next:Lokio/Segment; invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V goto :goto_0 .line 543 :cond_0 new-instance p0, Lokio/ByteString; invoke-virtual {v0}, Ljavax/crypto/Mac;->doFinal()[B move-result-object p1 const-string p2, "mac.doFinal()" invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-direct {p0, p1}, Lokio/ByteString;->([B)V :try_end_0 .catch Ljava/security/InvalidKeyException; {:try_start_0 .. :try_end_0} :catch_0 return-object p0 :catch_0 move-exception p0 .line 545 new-instance p1, Ljava/lang/IllegalArgumentException; check-cast p0, Ljava/lang/Throwable; invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/Throwable;)V check-cast p1, Ljava/lang/Throwable; throw p1 .end method .method public static synthetic readAndWriteUnsafe$default(Lokio/Buffer;Lokio/Buffer$UnsafeCursor;ILjava/lang/Object;)Lokio/Buffer$UnsafeCursor; .locals 0 and-int/lit8 p2, p2, 0x1 if-eqz p2, :cond_0 .line 577 new-instance p1, Lokio/Buffer$UnsafeCursor; invoke-direct {p1}, Lokio/Buffer$UnsafeCursor;->()V :cond_0 invoke-virtual {p0, p1}, Lokio/Buffer;->readAndWriteUnsafe(Lokio/Buffer$UnsafeCursor;)Lokio/Buffer$UnsafeCursor; move-result-object p0 return-object p0 .end method .method private final readFrom(Ljava/io/InputStream;JZ)V .locals 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation :goto_0 const-wide/16 v0, 0x0 cmp-long v0, p2, v0 if-gtz v0, :cond_1 if-eqz p4, :cond_0 goto :goto_1 :cond_0 return-void :cond_1 :goto_1 const/4 v0, 0x1 .line 227 invoke-virtual {p0, v0}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v0 .line 228 iget v1, v0, Lokio/Segment;->limit:I rsub-int v1, v1, 0x2000 int-to-long v1, v1 .line 1055 invoke-static {p2, p3, v1, v2}, Ljava/lang/Math;->min(JJ)J move-result-wide v1 long-to-int v1, v1 .line 229 iget-object v2, v0, Lokio/Segment;->data:[B iget v3, v0, Lokio/Segment;->limit:I invoke-virtual {p1, v2, v3, v1}, Ljava/io/InputStream;->read([BII)I move-result v1 const/4 v2, -0x1 if-ne v1, v2, :cond_4 .line 231 iget p1, v0, Lokio/Segment;->pos:I iget p2, v0, Lokio/Segment;->limit:I if-ne p1, p2, :cond_2 .line 233 invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment; move-result-object p1 iput-object p1, p0, Lokio/Buffer;->head:Lokio/Segment; .line 234 invoke-static {v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V :cond_2 if-eqz p4, :cond_3 return-void .line 237 :cond_3 new-instance p0, Ljava/io/EOFException; invoke-direct {p0}, Ljava/io/EOFException;->()V check-cast p0, Ljava/lang/Throwable; throw p0 .line 239 :cond_4 iget v2, v0, Lokio/Segment;->limit:I add-int/2addr v2, v1 iput v2, v0, Lokio/Segment;->limit:I iget-wide v2, p0, Lokio/Buffer;->size:J int-to-long v0, v1 add-long/2addr v2, v0 iput-wide v2, p0, Lokio/Buffer;->size:J sub-long/2addr p2, v0 goto :goto_0 .end method .method public static synthetic readUnsafe$default(Lokio/Buffer;Lokio/Buffer$UnsafeCursor;ILjava/lang/Object;)Lokio/Buffer$UnsafeCursor; .locals 0 and-int/lit8 p2, p2, 0x1 if-eqz p2, :cond_0 .line 568 new-instance p1, Lokio/Buffer$UnsafeCursor; invoke-direct {p1}, Lokio/Buffer$UnsafeCursor;->()V :cond_0 invoke-virtual {p0, p1}, Lokio/Buffer;->readUnsafe(Lokio/Buffer$UnsafeCursor;)Lokio/Buffer$UnsafeCursor; move-result-object p0 return-object p0 .end method .method public static synthetic writeTo$default(Lokio/Buffer;Ljava/io/OutputStream;JILjava/lang/Object;)Lokio/Buffer; .locals 0 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation and-int/lit8 p4, p4, 0x2 if-eqz p4, :cond_0 .line 184 iget-wide p2, p0, Lokio/Buffer;->size:J :cond_0 invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->writeTo(Ljava/io/OutputStream;J)Lokio/Buffer; move-result-object p0 return-object p0 .end method # virtual methods .method public final -deprecated_getByte(J)B .locals 0 .annotation runtime Lkotlin/Deprecated; level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel; message = "moved to operator function" replaceWith = .subannotation Lkotlin/ReplaceWith; expression = "this[index]" imports = {} .end subannotation .end annotation .line 590 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->getByte(J)B move-result p0 return p0 .end method .method public final -deprecated_size()J .locals 2 .annotation runtime Lkotlin/Deprecated; level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel; message = "moved to val" replaceWith = .subannotation Lkotlin/ReplaceWith; expression = "size" imports = {} .end subannotation .end annotation iget-wide v0, p0, Lokio/Buffer;->size:J return-wide v0 .end method .method public buffer()Lokio/Buffer; .locals 0 return-object p0 .end method .method public final clear()V .locals 2 .line 1457 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 invoke-virtual {p0, v0, v1}, Lokio/Buffer;->skip(J)V return-void .end method .method public bridge synthetic clone()Ljava/lang/Object; .locals 0 .line 69 invoke-virtual {p0}, Lokio/Buffer;->clone()Lokio/Buffer; move-result-object p0 return-object p0 .end method .method public clone()Lokio/Buffer; .locals 0 .line 562 invoke-virtual {p0}, Lokio/Buffer;->copy()Lokio/Buffer; move-result-object p0 return-object p0 .end method .method public close()V .locals 0 return-void .end method .method public final completeSegmentByteCount()J .locals 5 .line 1056 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 const-wide/16 v2, 0x0 cmp-long v4, v0, v2 if-nez v4, :cond_0 goto :goto_0 :cond_0 iget-object p0, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1060 invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V iget-object p0, p0, Lokio/Segment;->prev:Lokio/Segment; invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V .line 1061 iget v2, p0, Lokio/Segment;->limit:I const/16 v3, 0x2000 if-ge v2, v3, :cond_1 iget-boolean v2, p0, Lokio/Segment;->owner:Z if-eqz v2, :cond_1 .line 1062 iget v2, p0, Lokio/Segment;->limit:I iget p0, p0, Lokio/Segment;->pos:I sub-int/2addr v2, p0 int-to-long v2, v2 sub-long/2addr v0, v2 :cond_1 move-wide v2, v0 :goto_0 return-wide v2 .end method .method public final copy()Lokio/Buffer; .locals 6 .line 2087 new-instance v0, Lokio/Buffer; invoke-direct {v0}, Lokio/Buffer;->()V .line 2088 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v1 const-wide/16 v3, 0x0 cmp-long v1, v1, v3 if-nez v1, :cond_0 goto :goto_1 :cond_0 iget-object v1, p0, Lokio/Buffer;->head:Lokio/Segment; .line 2090 invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V .line 2091 invoke-virtual {v1}, Lokio/Segment;->sharedCopy()Lokio/Segment; move-result-object v2 iput-object v2, v0, Lokio/Buffer;->head:Lokio/Segment; .line 2094 iput-object v2, v2, Lokio/Segment;->prev:Lokio/Segment; .line 2095 iget-object v3, v2, Lokio/Segment;->prev:Lokio/Segment; iput-object v3, v2, Lokio/Segment;->next:Lokio/Segment; .line 2097 iget-object v3, v1, Lokio/Segment;->next:Lokio/Segment; :goto_0 if-eq v3, v1, :cond_1 .line 2099 iget-object v4, v2, Lokio/Segment;->prev:Lokio/Segment; invoke-static {v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V invoke-virtual {v3}, Lokio/Segment;->sharedCopy()Lokio/Segment; move-result-object v5 invoke-virtual {v4, v5}, Lokio/Segment;->push(Lokio/Segment;)Lokio/Segment; .line 2100 iget-object v3, v3, Lokio/Segment;->next:Lokio/Segment; goto :goto_0 .line 2103 :cond_1 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v1 invoke-virtual {v0, v1, v2}, Lokio/Buffer;->setSize$okio(J)V :goto_1 return-object v0 .end method .method public final copyTo(Ljava/io/OutputStream;)Lokio/Buffer; .locals 8 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-wide/16 v2, 0x0 const-wide/16 v4, 0x0 const/4 v6, 0x6 const/4 v7, 0x0 move-object v0, p0 move-object v1, p1 invoke-static/range {v0 .. v7}, Lokio/Buffer;->copyTo$default(Lokio/Buffer;Ljava/io/OutputStream;JJILjava/lang/Object;)Lokio/Buffer; move-result-object p0 return-object p0 .end method .method public final copyTo(Ljava/io/OutputStream;J)Lokio/Buffer; .locals 8 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-wide/16 v4, 0x0 const/4 v6, 0x4 const/4 v7, 0x0 move-object v0, p0 move-object v1, p1 move-wide v2, p2 invoke-static/range {v0 .. v7}, Lokio/Buffer;->copyTo$default(Lokio/Buffer;Ljava/io/OutputStream;JJILjava/lang/Object;)Lokio/Buffer; move-result-object p0 return-object p0 .end method .method public final copyTo(Ljava/io/OutputStream;JJ)Lokio/Buffer; .locals 7 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "out" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-wide v1, p0, Lokio/Buffer;->size:J move-wide v3, p2 move-wide v5, p4 .line 147 invoke-static/range {v1 .. v6}, Lokio/-Util;->checkOffsetAndCount(JJJ)V const-wide/16 v0, 0x0 cmp-long v2, p4, v0 if-nez v2, :cond_0 return-object p0 :cond_0 iget-object v2, p0, Lokio/Buffer;->head:Lokio/Segment; .line 152 :goto_0 invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V iget v3, v2, Lokio/Segment;->limit:I iget v4, v2, Lokio/Segment;->pos:I sub-int/2addr v3, v4 int-to-long v3, v3 cmp-long v3, p2, v3 if-ltz v3, :cond_1 .line 153 iget v3, v2, Lokio/Segment;->limit:I iget v4, v2, Lokio/Segment;->pos:I sub-int/2addr v3, v4 int-to-long v3, v3 sub-long/2addr p2, v3 .line 154 iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment; goto :goto_0 :cond_1 :goto_1 cmp-long v3, p4, v0 if-lez v3, :cond_2 .line 159 invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V iget v3, v2, Lokio/Segment;->pos:I int-to-long v3, v3 add-long/2addr v3, p2 long-to-int p2, v3 .line 160 iget p3, v2, Lokio/Segment;->limit:I sub-int/2addr p3, p2 int-to-long v3, p3 .line 1020 invoke-static {v3, v4, p4, p5}, Ljava/lang/Math;->min(JJ)J move-result-wide v3 long-to-int p3, v3 .line 161 iget-object v3, v2, Lokio/Segment;->data:[B invoke-virtual {p1, v3, p2, p3}, Ljava/io/OutputStream;->write([BII)V int-to-long p2, p3 sub-long/2addr p4, p2 .line 164 iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment; move-wide p2, v0 goto :goto_1 :cond_2 return-object p0 .end method .method public final copyTo(Lokio/Buffer;J)Lokio/Buffer; .locals 8 const-string v0, "out" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-wide v0, p0, Lokio/Buffer;->size:J sub-long v6, v0, p2 move-object v2, p0 move-object v3, p1 move-wide v4, p2 .line 179 invoke-virtual/range {v2 .. v7}, Lokio/Buffer;->copyTo(Lokio/Buffer;JJ)Lokio/Buffer; move-result-object p0 return-object p0 .end method .method public final copyTo(Lokio/Buffer;JJ)Lokio/Buffer; .locals 7 const-string v0, "out" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 1023 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v1 move-wide v3, p2 move-wide v5, p4 invoke-static/range {v1 .. v6}, Lokio/-Util;->checkOffsetAndCount(JJJ)V const-wide/16 v0, 0x0 cmp-long v2, p4, v0 if-nez v2, :cond_0 goto :goto_3 .line 1026 :cond_0 invoke-virtual {p1}, Lokio/Buffer;->size()J move-result-wide v2 add-long/2addr v2, p4 invoke-virtual {p1, v2, v3}, Lokio/Buffer;->setSize$okio(J)V iget-object v2, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1030 :goto_0 invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V iget v3, v2, Lokio/Segment;->limit:I iget v4, v2, Lokio/Segment;->pos:I sub-int/2addr v3, v4 int-to-long v3, v3 cmp-long v3, p2, v3 if-ltz v3, :cond_1 .line 1031 iget v3, v2, Lokio/Segment;->limit:I iget v4, v2, Lokio/Segment;->pos:I sub-int/2addr v3, v4 int-to-long v3, v3 sub-long/2addr p2, v3 .line 1032 iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment; goto :goto_0 :cond_1 :goto_1 cmp-long v3, p4, v0 if-lez v3, :cond_3 .line 1037 invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V invoke-virtual {v2}, Lokio/Segment;->sharedCopy()Lokio/Segment; move-result-object v3 .line 1038 iget v4, v3, Lokio/Segment;->pos:I long-to-int p2, p2 add-int/2addr v4, p2 iput v4, v3, Lokio/Segment;->pos:I .line 1039 iget p2, v3, Lokio/Segment;->pos:I long-to-int p3, p4 add-int/2addr p2, p3 iget p3, v3, Lokio/Segment;->limit:I invoke-static {p2, p3}, Ljava/lang/Math;->min(II)I move-result p2 iput p2, v3, Lokio/Segment;->limit:I .line 1040 iget-object p2, p1, Lokio/Buffer;->head:Lokio/Segment; if-nez p2, :cond_2 .line 1041 iput-object v3, v3, Lokio/Segment;->prev:Lokio/Segment; .line 1042 iget-object p2, v3, Lokio/Segment;->prev:Lokio/Segment; iput-object p2, v3, Lokio/Segment;->next:Lokio/Segment; .line 1043 iget-object p2, v3, Lokio/Segment;->next:Lokio/Segment; iput-object p2, p1, Lokio/Buffer;->head:Lokio/Segment; goto :goto_2 .line 1045 :cond_2 invoke-static {p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V iget-object p2, p2, Lokio/Segment;->prev:Lokio/Segment; invoke-static {p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V invoke-virtual {p2, v3}, Lokio/Segment;->push(Lokio/Segment;)Lokio/Segment; .line 1047 :goto_2 iget p2, v3, Lokio/Segment;->limit:I iget p3, v3, Lokio/Segment;->pos:I sub-int/2addr p2, p3 int-to-long p2, p2 sub-long/2addr p4, p2 .line 1049 iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment; move-wide p2, v0 goto :goto_1 :cond_3 :goto_3 return-object p0 .end method .method public emit()Lokio/Buffer; .locals 0 return-object p0 .end method .method public bridge synthetic emit()Lokio/BufferedSink; .locals 0 .line 69 invoke-virtual {p0}, Lokio/Buffer;->emit()Lokio/Buffer; move-result-object p0 check-cast p0, Lokio/BufferedSink; return-object p0 .end method .method public emitCompleteSegments()Lokio/Buffer; .locals 0 return-object p0 .end method .method public bridge synthetic emitCompleteSegments()Lokio/BufferedSink; .locals 0 .line 69 invoke-virtual {p0}, Lokio/Buffer;->emitCompleteSegments()Lokio/Buffer; move-result-object p0 check-cast p0, Lokio/BufferedSink; return-object p0 .end method .method public equals(Ljava/lang/Object;)Z .locals 18 move-object/from16 v0, p0 move-object/from16 v1, p1 const/4 v2, 0x1 if-ne v0, v1, :cond_0 goto/16 :goto_3 .line 2044 :cond_0 instance-of v3, v1, Lokio/Buffer; const/4 v4, 0x0 if-nez v3, :cond_1 :goto_0 move v2, v4 goto/16 :goto_3 .line 2045 :cond_1 invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J move-result-wide v5 check-cast v1, Lokio/Buffer; invoke-virtual {v1}, Lokio/Buffer;->size()J move-result-wide v7 cmp-long v3, v5, v7 if-eqz v3, :cond_2 goto :goto_0 .line 2046 :cond_2 invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J move-result-wide v5 const-wide/16 v7, 0x0 cmp-long v3, v5, v7 if-nez v3, :cond_3 goto :goto_3 :cond_3 iget-object v3, v0, Lokio/Buffer;->head:Lokio/Segment; .line 2048 invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V .line 2049 iget-object v1, v1, Lokio/Buffer;->head:Lokio/Segment; invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V .line 2050 iget v5, v3, Lokio/Segment;->pos:I .line 2051 iget v6, v1, Lokio/Segment;->pos:I move-wide v9, v7 .line 2055 :goto_1 invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J move-result-wide v11 cmp-long v11, v9, v11 if-gez v11, :cond_8 .line 2056 iget v11, v3, Lokio/Segment;->limit:I sub-int/2addr v11, v5 iget v12, v1, Lokio/Segment;->limit:I sub-int/2addr v12, v6 invoke-static {v11, v12}, Ljava/lang/Math;->min(II)I move-result v11 int-to-long v11, v11 move-wide v13, v7 :goto_2 cmp-long v15, v13, v11 if-gez v15, :cond_5 .line 2059 iget-object v15, v3, Lokio/Segment;->data:[B add-int/lit8 v16, v5, 0x1 aget-byte v5, v15, v5 iget-object v15, v1, Lokio/Segment;->data:[B add-int/lit8 v17, v6, 0x1 aget-byte v6, v15, v6 if-eq v5, v6, :cond_4 goto :goto_0 :cond_4 const-wide/16 v5, 0x1 add-long/2addr v13, v5 move/from16 v5, v16 move/from16 v6, v17 goto :goto_2 .line 2062 :cond_5 iget v13, v3, Lokio/Segment;->limit:I if-ne v5, v13, :cond_6 .line 2063 iget-object v3, v3, Lokio/Segment;->next:Lokio/Segment; invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V .line 2064 iget v5, v3, Lokio/Segment;->pos:I .line 2067 :cond_6 iget v13, v1, Lokio/Segment;->limit:I if-ne v6, v13, :cond_7 .line 2068 iget-object v1, v1, Lokio/Segment;->next:Lokio/Segment; invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V .line 2069 iget v6, v1, Lokio/Segment;->pos:I :cond_7 add-long/2addr v9, v11 goto :goto_1 :cond_8 :goto_3 return v2 .end method .method public exhausted()Z .locals 4 iget-wide v0, p0, Lokio/Buffer;->size:J const-wide/16 v2, 0x0 cmp-long p0, v0, v2 if-nez p0, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 return p0 .end method .method public flush()V .locals 0 return-void .end method .method public getBuffer()Lokio/Buffer; .locals 0 return-object p0 .end method .method public final getByte(J)B .locals 6 .line 1084 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 const-wide/16 v4, 0x1 move-wide v2, p1 invoke-static/range {v0 .. v5}, Lokio/-Util;->checkOffsetAndCount(JJJ)V iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; if-eqz v0, :cond_3 .line 1088 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v1 sub-long/2addr v1, p1 cmp-long v1, v1, p1 if-gez v1, :cond_1 .line 1090 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v1 :goto_0 cmp-long p0, v1, p1 if-lez p0, :cond_0 .line 1092 iget-object v0, v0, Lokio/Segment;->prev:Lokio/Segment; invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V .line 1093 iget p0, v0, Lokio/Segment;->limit:I iget v3, v0, Lokio/Segment;->pos:I sub-int/2addr p0, v3 int-to-long v3, p0 sub-long/2addr v1, v3 goto :goto_0 .line 1087 :cond_0 invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V iget-object p0, v0, Lokio/Segment;->data:[B iget v0, v0, Lokio/Segment;->pos:I int-to-long v3, v0 add-long/2addr v3, p1 sub-long/2addr v3, v1 long-to-int p1, v3 aget-byte p0, p0, p1 goto :goto_2 :cond_1 const-wide/16 v1, 0x0 .line 1100 :goto_1 iget p0, v0, Lokio/Segment;->limit:I iget v3, v0, Lokio/Segment;->pos:I sub-int/2addr p0, v3 int-to-long v3, p0 add-long/2addr v3, v1 cmp-long p0, v3, p1 if-lez p0, :cond_2 .line 1087 invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V iget-object p0, v0, Lokio/Segment;->data:[B iget v0, v0, Lokio/Segment;->pos:I int-to-long v3, v0 add-long/2addr v3, p1 sub-long/2addr v3, v1 long-to-int p1, v3 aget-byte p0, p0, p1 :goto_2 return p0 .line 1102 :cond_2 iget-object v0, v0, Lokio/Segment;->next:Lokio/Segment; invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V move-wide v1, v3 goto :goto_1 :cond_3 const/4 p0, 0x0 .line 1086 move-object p1, p0 check-cast p1, Lokio/Segment; .line 1087 invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V iget-object p1, p0, Lokio/Segment;->data:[B throw p0 .end method .method public hashCode()I .locals 5 iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; if-eqz v0, :cond_2 const/4 v1, 0x1 .line 2078 :cond_0 iget v2, v0, Lokio/Segment;->pos:I .line 2079 iget v3, v0, Lokio/Segment;->limit:I :goto_0 if-ge v2, v3, :cond_1 mul-int/lit8 v1, v1, 0x1f .line 2081 iget-object v4, v0, Lokio/Segment;->data:[B aget-byte v4, v4, v2 add-int/2addr v1, v4 add-int/lit8 v2, v2, 0x1 goto :goto_0 .line 2084 :cond_1 iget-object v0, v0, Lokio/Segment;->next:Lokio/Segment; invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V iget-object v2, p0, Lokio/Buffer;->head:Lokio/Segment; if-ne v0, v2, :cond_0 goto :goto_1 :cond_2 const/4 v1, 0x0 :goto_1 return v1 .end method .method public final hmacSha1(Lokio/ByteString;)Lokio/ByteString; .locals 1 const-string v0, "key" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "HmacSHA1" .line 523 invoke-direct {p0, v0, p1}, Lokio/Buffer;->hmac(Ljava/lang/String;Lokio/ByteString;)Lokio/ByteString; move-result-object p0 return-object p0 .end method .method public final hmacSha256(Lokio/ByteString;)Lokio/ByteString; .locals 1 const-string v0, "key" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "HmacSHA256" .line 526 invoke-direct {p0, v0, p1}, Lokio/Buffer;->hmac(Ljava/lang/String;Lokio/ByteString;)Lokio/ByteString; move-result-object p0 return-object p0 .end method .method public final hmacSha512(Lokio/ByteString;)Lokio/ByteString; .locals 1 const-string v0, "key" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "HmacSHA512" .line 529 invoke-direct {p0, v0, p1}, Lokio/Buffer;->hmac(Ljava/lang/String;Lokio/ByteString;)Lokio/ByteString; move-result-object p0 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 458 invoke-virtual/range {v0 .. v5}, Lokio/Buffer;->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 464 invoke-virtual/range {v0 .. v5}, Lokio/Buffer;->indexOf(BJJ)J move-result-wide p0 return-wide p0 .end method .method public indexOf(BJJ)J .locals 9 const-wide/16 v0, 0x0 cmp-long v2, v0, p2 if-lez v2, :cond_0 goto :goto_0 :cond_0 cmp-long v2, p4, p2 if-ltz v2, :cond_1 const/4 v2, 0x1 goto :goto_1 :cond_1 :goto_0 const/4 v2, 0x0 :goto_1 if-eqz v2, :cond_d .line 1860 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v2 cmp-long v2, p4, v2 if-lez v2, :cond_2 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide p4 :cond_2 cmp-long v2, p2, p4 const-wide/16 v3, -0x1 if-nez v2, :cond_3 goto/16 :goto_9 :cond_3 iget-object v2, p0, Lokio/Buffer;->head:Lokio/Segment; if-eqz v2, :cond_b .line 1887 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v5 sub-long/2addr v5, p2 cmp-long v5, v5, p2 if-gez v5, :cond_7 .line 1889 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 :goto_2 cmp-long p0, v0, p2 if-lez p0, :cond_4 .line 1891 iget-object v2, v2, Lokio/Segment;->prev:Lokio/Segment; invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V .line 1892 iget p0, v2, Lokio/Segment;->limit:I iget v5, v2, Lokio/Segment;->pos:I sub-int/2addr p0, v5 int-to-long v5, p0 sub-long/2addr v0, v5 goto :goto_2 :cond_4 if-eqz v2, :cond_c :goto_3 cmp-long p0, v0, p4 if-gez p0, :cond_c .line 1870 iget-object p0, v2, Lokio/Segment;->data:[B .line 1871 iget v5, v2, Lokio/Segment;->limit:I int-to-long v5, v5 iget v7, v2, Lokio/Segment;->pos:I int-to-long v7, v7 add-long/2addr v7, p4 sub-long/2addr v7, v0 invoke-static {v5, v6, v7, v8}, Ljava/lang/Math;->min(JJ)J move-result-wide v5 long-to-int v5, v5 .line 1872 iget v6, v2, Lokio/Segment;->pos:I int-to-long v6, v6 add-long/2addr v6, p2 sub-long/2addr v6, v0 long-to-int p2, v6 :goto_4 if-ge p2, v5, :cond_6 .line 1874 aget-byte p3, p0, p2 if-ne p3, p1, :cond_5 .line 1875 :goto_5 iget p0, v2, Lokio/Segment;->pos:I sub-int/2addr p2, p0 int-to-long p0, p2 add-long v3, p0, v0 goto :goto_9 :cond_5 add-int/lit8 p2, p2, 0x1 goto :goto_4 .line 1881 :cond_6 iget p0, v2, Lokio/Segment;->limit:I iget p2, v2, Lokio/Segment;->pos:I sub-int/2addr p0, p2 int-to-long p2, p0 add-long/2addr v0, p2 .line 1883 iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment; invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V move-wide p2, v0 goto :goto_3 .line 1899 :cond_7 :goto_6 iget p0, v2, Lokio/Segment;->limit:I iget v5, v2, Lokio/Segment;->pos:I sub-int/2addr p0, v5 int-to-long v5, p0 add-long/2addr v5, v0 cmp-long p0, v5, p2 if-lez p0, :cond_a if-eqz v2, :cond_c :goto_7 cmp-long p0, v0, p4 if-gez p0, :cond_c .line 1870 iget-object p0, v2, Lokio/Segment;->data:[B .line 1871 iget v5, v2, Lokio/Segment;->limit:I int-to-long v5, v5 iget v7, v2, Lokio/Segment;->pos:I int-to-long v7, v7 add-long/2addr v7, p4 sub-long/2addr v7, v0 invoke-static {v5, v6, v7, v8}, Ljava/lang/Math;->min(JJ)J move-result-wide v5 long-to-int v5, v5 .line 1872 iget v6, v2, Lokio/Segment;->pos:I int-to-long v6, v6 add-long/2addr v6, p2 sub-long/2addr v6, v0 long-to-int p2, v6 :goto_8 if-ge p2, v5, :cond_9 .line 1874 aget-byte p3, p0, p2 if-ne p3, p1, :cond_8 goto :goto_5 :cond_8 add-int/lit8 p2, p2, 0x1 goto :goto_8 .line 1881 :cond_9 iget p0, v2, Lokio/Segment;->limit:I iget p2, v2, Lokio/Segment;->pos:I sub-int/2addr p0, p2 int-to-long p2, p0 add-long/2addr v0, p2 .line 1883 iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment; invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V move-wide p2, v0 goto :goto_7 .line 1901 :cond_a iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment; invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V move-wide v0, v5 goto :goto_6 :cond_b const/4 p0, 0x0 .line 1864 check-cast p0, Lokio/Segment; :cond_c :goto_9 return-wide v3 .line 1858 :cond_d new-instance p1, Ljava/lang/StringBuilder; const-string v0, "size=" invoke-direct {p1, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 invoke-virtual {p1, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; move-result-object p0 const-string p1, " fromIndex=" invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p0 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 .end method .method public indexOf(Lokio/ByteString;)J .locals 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation 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 469 invoke-virtual {p0, p1, v0, v1}, Lokio/Buffer;->indexOf(Lokio/ByteString;J)J move-result-wide p0 return-wide p0 .end method .method public indexOf(Lokio/ByteString;J)J .locals 16 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation move-wide/from16 v0, p2 const-string v2, "bytes" move-object/from16 v3, p1 invoke-static {v3, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 1906 invoke-virtual/range {p1 .. p1}, Lokio/ByteString;->size()I move-result v2 const/4 v4, 0x0 const/4 v5, 0x1 if-lez v2, :cond_0 move v2, v5 goto :goto_0 :cond_0 move v2, v4 :goto_0 if-eqz v2, :cond_d const-wide/16 v6, 0x0 cmp-long v2, v0, v6 if-ltz v2, :cond_1 move v2, v5 goto :goto_1 :cond_1 move v2, v4 :goto_1 if-eqz v2, :cond_c move-object/from16 v2, p0 iget-object v8, v2, Lokio/Buffer;->head:Lokio/Segment; if-eqz v8, :cond_a .line 1939 invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J move-result-wide v11 sub-long/2addr v11, v0 cmp-long v11, v11, v0 const-wide/16 v12, 0x1 if-gez v11, :cond_5 .line 1941 invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J move-result-wide v6 :goto_2 cmp-long v11, v6, v0 if-lez v11, :cond_2 .line 1943 iget-object v8, v8, Lokio/Segment;->prev:Lokio/Segment; invoke-static {v8}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V .line 1944 iget v11, v8, Lokio/Segment;->limit:I iget v14, v8, Lokio/Segment;->pos:I sub-int/2addr v11, v14 int-to-long v14, v11 sub-long/2addr v6, v14 goto :goto_2 :cond_2 if-eqz v8, :cond_b .line 1917 invoke-virtual/range {p1 .. p1}, Lokio/ByteString;->internalArray$okio()[B move-result-object v11 .line 1918 aget-byte v4, v11, v4 .line 1919 invoke-virtual/range {p1 .. p1}, Lokio/ByteString;->size()I move-result v3 .line 1920 invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J move-result-wide v14 int-to-long v9, v3 sub-long/2addr v14, v9 add-long/2addr v14, v12 :goto_3 cmp-long v2, v6, v14 if-gez v2, :cond_b .line 1923 iget-object v2, v8, Lokio/Segment;->data:[B .line 1924 iget v9, v8, Lokio/Segment;->limit:I iget v10, v8, Lokio/Segment;->pos:I int-to-long v12, v10 add-long/2addr v12, v14 sub-long/2addr v12, v6 int-to-long v9, v9 .line 1925 invoke-static {v9, v10, v12, v13}, Ljava/lang/Math;->min(JJ)J move-result-wide v9 long-to-int v9, v9 .line 1926 iget v10, v8, Lokio/Segment;->pos:I int-to-long v12, v10 add-long/2addr v12, v0 sub-long/2addr v12, v6 long-to-int v0, v12 :goto_4 if-ge v0, v9, :cond_4 .line 1927 aget-byte v1, v2, v0 if-ne v1, v4, :cond_3 add-int/lit8 v1, v0, 0x1 invoke-static {v8, v1, v11, v5, v3}, Lokio/internal/BufferKt;->rangeEquals(Lokio/Segment;I[BII)Z move-result v1 if-eqz v1, :cond_3 .line 1928 iget v1, v8, Lokio/Segment;->pos:I sub-int/2addr v0, v1 int-to-long v0, v0 add-long v9, v0, v6 goto/16 :goto_8 :cond_3 add-int/lit8 v0, v0, 0x1 goto :goto_4 .line 1933 :cond_4 iget v0, v8, Lokio/Segment;->limit:I iget v1, v8, Lokio/Segment;->pos:I sub-int/2addr v0, v1 int-to-long v0, v0 add-long/2addr v6, v0 .line 1935 iget-object v8, v8, Lokio/Segment;->next:Lokio/Segment; invoke-static {v8}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V move-wide v0, v6 goto :goto_3 .line 1951 :cond_5 :goto_5 iget v9, v8, Lokio/Segment;->limit:I iget v10, v8, Lokio/Segment;->pos:I sub-int/2addr v9, v10 int-to-long v9, v9 add-long/2addr v9, v6 cmp-long v11, v9, v0 if-lez v11, :cond_9 if-eqz v8, :cond_b .line 1917 invoke-virtual/range {p1 .. p1}, Lokio/ByteString;->internalArray$okio()[B move-result-object v9 .line 1918 aget-byte v4, v9, v4 .line 1919 invoke-virtual/range {p1 .. p1}, Lokio/ByteString;->size()I move-result v3 .line 1920 invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J move-result-wide v10 int-to-long v14, v3 sub-long/2addr v10, v14 add-long/2addr v10, v12 :goto_6 cmp-long v2, v6, v10 if-gez v2, :cond_b .line 1923 iget-object v2, v8, Lokio/Segment;->data:[B .line 1924 iget v12, v8, Lokio/Segment;->limit:I iget v13, v8, Lokio/Segment;->pos:I int-to-long v13, v13 add-long/2addr v13, v10 sub-long/2addr v13, v6 move-wide/from16 p0, v6 int-to-long v5, v12 .line 1925 invoke-static {v5, v6, v13, v14}, Ljava/lang/Math;->min(JJ)J move-result-wide v5 long-to-int v5, v5 .line 1926 iget v6, v8, Lokio/Segment;->pos:I int-to-long v6, v6 add-long/2addr v6, v0 move-wide/from16 v0, p0 sub-long/2addr v6, v0 long-to-int v6, v6 :goto_7 if-ge v6, v5, :cond_8 .line 1927 aget-byte v7, v2, v6 if-ne v7, v4, :cond_6 add-int/lit8 v7, v6, 0x1 const/4 v14, 0x1 invoke-static {v8, v7, v9, v14, v3}, Lokio/internal/BufferKt;->rangeEquals(Lokio/Segment;I[BII)Z move-result v7 if-eqz v7, :cond_7 .line 1928 iget v2, v8, Lokio/Segment;->pos:I sub-int/2addr v6, v2 int-to-long v2, v6 add-long v9, v2, v0 goto :goto_8 :cond_6 const/4 v14, 0x1 :cond_7 add-int/lit8 v6, v6, 0x1 goto :goto_7 :cond_8 const/4 v14, 0x1 .line 1933 iget v2, v8, Lokio/Segment;->limit:I iget v5, v8, Lokio/Segment;->pos:I sub-int/2addr v2, v5 int-to-long v5, v2 add-long v6, v0, v5 .line 1935 iget-object v8, v8, Lokio/Segment;->next:Lokio/Segment; invoke-static {v8}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V move-wide v0, v6 move v5, v14 goto :goto_6 :cond_9 move v14, v5 .line 1953 iget-object v8, v8, Lokio/Segment;->next:Lokio/Segment; invoke-static {v8}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V move-wide v6, v9 goto :goto_5 :cond_a const/4 v0, 0x0 .line 1911 check-cast v0, Lokio/Segment; :cond_b const-wide/16 v9, -0x1 :goto_8 return-wide v9 .line 1908 :cond_c new-instance v2, Ljava/lang/StringBuilder; const-string v3, "fromIndex < 0: " invoke-direct {v2, v3}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v2, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 new-instance v1, Ljava/lang/IllegalArgumentException; invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {v1, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast v1, Ljava/lang/Throwable; throw v1 .line 1906 :cond_d new-instance v0, Ljava/lang/IllegalArgumentException; const-string v1, "bytes is empty" invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v1 invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast v0, Ljava/lang/Throwable; throw v0 .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 474 invoke-virtual {p0, p1, v0, v1}, Lokio/Buffer;->indexOfElement(Lokio/ByteString;J)J move-result-wide p0 return-wide p0 .end method .method public indexOfElement(Lokio/ByteString;J)J .locals 11 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 cmp-long v2, p2, v0 const/4 v3, 0x0 const/4 v4, 0x1 if-ltz v2, :cond_0 move v2, v4 goto :goto_0 :cond_0 move v2, v3 :goto_0 if-eqz v2, :cond_13 iget-object v2, p0, Lokio/Buffer;->head:Lokio/Segment; const-wide/16 v5, -0x1 if-eqz v2, :cond_11 .line 2012 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v7 sub-long/2addr v7, p2 cmp-long v7, v7, p2 const/4 v8, 0x2 if-gez v7, :cond_9 .line 2014 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 :goto_1 cmp-long v7, v0, p2 if-lez v7, :cond_1 .line 2016 iget-object v2, v2, Lokio/Segment;->prev:Lokio/Segment; invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V .line 2017 iget v7, v2, Lokio/Segment;->limit:I iget v9, v2, Lokio/Segment;->pos:I sub-int/2addr v7, v9 int-to-long v9, v7 sub-long/2addr v0, v9 goto :goto_1 :cond_1 if-eqz v2, :cond_12 .line 1968 invoke-virtual {p1}, Lokio/ByteString;->size()I move-result v7 if-ne v7, v8, :cond_5 .line 1970 invoke-virtual {p1, v3}, Lokio/ByteString;->getByte(I)B move-result v3 .line 1971 invoke-virtual {p1, v4}, Lokio/ByteString;->getByte(I)B move-result p1 .line 1972 :goto_2 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v7 cmp-long v4, v0, v7 if-gez v4, :cond_12 .line 1973 iget-object v4, v2, Lokio/Segment;->data:[B .line 1974 iget v7, v2, Lokio/Segment;->pos:I int-to-long v7, v7 add-long/2addr v7, p2 sub-long/2addr v7, v0 long-to-int p2, v7 .line 1975 iget p3, v2, Lokio/Segment;->limit:I :goto_3 if-ge p2, p3, :cond_4 .line 1977 aget-byte v7, v4, p2 if-eq v7, v3, :cond_3 if-ne v7, p1, :cond_2 goto :goto_4 :cond_2 add-int/lit8 p2, p2, 0x1 goto :goto_3 .line 1979 :cond_3 :goto_4 iget p0, v2, Lokio/Segment;->pos:I :goto_5 sub-int/2addr p2, p0 int-to-long p0, p2 add-long v5, p0, v0 goto/16 :goto_10 .line 1985 :cond_4 iget p2, v2, Lokio/Segment;->limit:I iget p3, v2, Lokio/Segment;->pos:I sub-int/2addr p2, p3 int-to-long p2, p2 add-long/2addr v0, p2 .line 1987 iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment; invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V move-wide p2, v0 goto :goto_2 .line 1991 :cond_5 invoke-virtual {p1}, Lokio/ByteString;->internalArray$okio()[B move-result-object p1 .line 1992 :goto_6 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v7 cmp-long v4, v0, v7 if-gez v4, :cond_12 .line 1993 iget-object v4, v2, Lokio/Segment;->data:[B .line 1994 iget v7, v2, Lokio/Segment;->pos:I int-to-long v7, v7 add-long/2addr v7, p2 sub-long/2addr v7, v0 long-to-int p2, v7 .line 1995 iget p3, v2, Lokio/Segment;->limit:I :goto_7 if-ge p2, p3, :cond_8 .line 1997 aget-byte v7, v4, p2 .line 1998 array-length v8, p1 move v9, v3 :goto_8 if-ge v9, v8, :cond_7 aget-byte v10, p1, v9 if-ne v7, v10, :cond_6 .line 1999 :goto_9 iget p0, v2, Lokio/Segment;->pos:I goto :goto_5 :cond_6 add-int/lit8 v9, v9, 0x1 goto :goto_8 :cond_7 add-int/lit8 p2, p2, 0x1 goto :goto_7 .line 2005 :cond_8 iget p2, v2, Lokio/Segment;->limit:I iget p3, v2, Lokio/Segment;->pos:I sub-int/2addr p2, p3 int-to-long p2, p2 add-long/2addr v0, p2 .line 2007 iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment; invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V move-wide p2, v0 goto :goto_6 .line 2024 :cond_9 :goto_a iget v7, v2, Lokio/Segment;->limit:I iget v9, v2, Lokio/Segment;->pos:I sub-int/2addr v7, v9 int-to-long v9, v7 add-long/2addr v9, v0 cmp-long v7, v9, p2 if-lez v7, :cond_10 if-eqz v2, :cond_12 .line 1968 invoke-virtual {p1}, Lokio/ByteString;->size()I move-result v7 if-ne v7, v8, :cond_c .line 1970 invoke-virtual {p1, v3}, Lokio/ByteString;->getByte(I)B move-result v3 .line 1971 invoke-virtual {p1, v4}, Lokio/ByteString;->getByte(I)B move-result p1 .line 1972 :goto_b invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v7 cmp-long v4, v0, v7 if-gez v4, :cond_12 .line 1973 iget-object v4, v2, Lokio/Segment;->data:[B .line 1974 iget v7, v2, Lokio/Segment;->pos:I int-to-long v7, v7 add-long/2addr v7, p2 sub-long/2addr v7, v0 long-to-int p2, v7 .line 1975 iget p3, v2, Lokio/Segment;->limit:I :goto_c if-ge p2, p3, :cond_b .line 1977 aget-byte v7, v4, p2 if-eq v7, v3, :cond_3 if-ne v7, p1, :cond_a goto/16 :goto_4 :cond_a add-int/lit8 p2, p2, 0x1 goto :goto_c .line 1985 :cond_b iget p2, v2, Lokio/Segment;->limit:I iget p3, v2, Lokio/Segment;->pos:I sub-int/2addr p2, p3 int-to-long p2, p2 add-long/2addr v0, p2 .line 1987 iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment; invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V move-wide p2, v0 goto :goto_b .line 1991 :cond_c invoke-virtual {p1}, Lokio/ByteString;->internalArray$okio()[B move-result-object p1 .line 1992 :goto_d invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v7 cmp-long v4, v0, v7 if-gez v4, :cond_12 .line 1993 iget-object v4, v2, Lokio/Segment;->data:[B .line 1994 iget v7, v2, Lokio/Segment;->pos:I int-to-long v7, v7 add-long/2addr v7, p2 sub-long/2addr v7, v0 long-to-int p2, v7 .line 1995 iget p3, v2, Lokio/Segment;->limit:I :goto_e if-ge p2, p3, :cond_f .line 1997 aget-byte v7, v4, p2 .line 1998 array-length v8, p1 move v9, v3 :goto_f if-ge v9, v8, :cond_e aget-byte v10, p1, v9 if-ne v7, v10, :cond_d goto/16 :goto_9 :cond_d add-int/lit8 v9, v9, 0x1 goto :goto_f :cond_e add-int/lit8 p2, p2, 0x1 goto :goto_e .line 2005 :cond_f iget p2, v2, Lokio/Segment;->limit:I iget p3, v2, Lokio/Segment;->pos:I sub-int/2addr p2, p3 int-to-long p2, p2 add-long/2addr v0, p2 .line 2007 iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment; invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V move-wide p2, v0 goto :goto_d .line 2026 :cond_10 iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment; invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V move-wide v0, v9 goto/16 :goto_a :cond_11 const/4 p0, 0x0 .line 1961 check-cast p0, Lokio/Segment; :cond_12 :goto_10 return-wide v5 .line 1958 :cond_13 new-instance p0, Ljava/lang/StringBuilder; const-string p1, "fromIndex < 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 inputStream()Ljava/io/InputStream; .locals 1 .line 116 new-instance v0, Lokio/Buffer$inputStream$1; invoke-direct {v0, p0}, Lokio/Buffer$inputStream$1;->(Lokio/Buffer;)V check-cast v0, Ljava/io/InputStream; return-object v0 .end method .method public isOpen()Z .locals 0 const/4 p0, 0x1 return p0 .end method .method public final md5()Lokio/ByteString; .locals 1 const-string v0, "MD5" .line 498 invoke-direct {p0, v0}, Lokio/Buffer;->digest(Ljava/lang/String;)Lokio/ByteString; move-result-object p0 return-object p0 .end method .method public outputStream()Ljava/io/OutputStream; .locals 1 .line 81 new-instance v0, Lokio/Buffer$outputStream$1; invoke-direct {v0, p0}, Lokio/Buffer$outputStream$1;->(Lokio/Buffer;)V check-cast v0, Ljava/io/OutputStream; return-object v0 .end method .method public peek()Lokio/BufferedSource; .locals 1 .line 112 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 480 invoke-virtual {p3}, Lokio/ByteString;->size()I move-result v6 move-object v1, p0 move-wide v2, p1 move-object v4, p3 invoke-virtual/range {v1 .. v6}, Lokio/Buffer;->rangeEquals(JLokio/ByteString;II)Z move-result p0 return p0 .end method .method public rangeEquals(JLokio/ByteString;II)Z .locals 6 const-string v0, "bytes" invoke-static {p3, 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 if-ltz v0, :cond_3 if-ltz p4, :cond_3 if-ltz p5, :cond_3 .line 2033 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v2 sub-long/2addr v2, p1 int-to-long v4, p5 cmp-long v0, v2, v4 if-ltz v0, :cond_3 .line 2034 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, v1 :goto_0 if-ge v0, p5, :cond_2 int-to-long v2, v0 add-long/2addr v2, p1 .line 2038 invoke-virtual {p0, v2, v3}, Lokio/Buffer;->getByte(J)B move-result v2 add-int v3, p4, v0 invoke-virtual {p3, v3}, Lokio/ByteString;->getByte(I)B move-result v3 if-eq v2, v3, :cond_1 goto :goto_1 :cond_1 add-int/lit8 v0, v0, 0x1 goto :goto_0 :cond_2 const/4 v1, 0x1 :cond_3 :goto_1 return v1 .end method .method public read(Ljava/nio/ByteBuffer;)I .locals 6 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "sink" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; if-eqz v0, :cond_1 .line 350 invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I move-result v1 iget v2, v0, Lokio/Segment;->limit:I iget v3, v0, Lokio/Segment;->pos:I sub-int/2addr v2, v3 invoke-static {v1, v2}, Ljava/lang/Math;->min(II)I move-result v1 .line 351 iget-object v2, v0, Lokio/Segment;->data:[B iget v3, v0, Lokio/Segment;->pos:I invoke-virtual {p1, v2, v3, v1}, Ljava/nio/ByteBuffer;->put([BII)Ljava/nio/ByteBuffer; .line 353 iget p1, v0, Lokio/Segment;->pos:I add-int/2addr p1, v1 iput p1, v0, Lokio/Segment;->pos:I iget-wide v2, p0, Lokio/Buffer;->size:J int-to-long v4, v1 sub-long/2addr v2, v4 iput-wide v2, p0, Lokio/Buffer;->size:J .line 356 iget p1, v0, Lokio/Segment;->pos:I iget v2, v0, Lokio/Segment;->limit:I if-ne p1, v2, :cond_0 .line 357 invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment; move-result-object p1 iput-object p1, p0, Lokio/Buffer;->head:Lokio/Segment; .line 358 invoke-static {v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V :cond_0 return v1 :cond_1 const/4 p0, -0x1 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 1432 array-length v1, p1 invoke-virtual {p0, p1, v0, v1}, Lokio/Buffer;->read([BII)I move-result p0 return p0 .end method .method public read([BII)I .locals 7 const-string v0, "sink" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 1440 array-length v0, p1 int-to-long v1, v0 int-to-long v3, p2 int-to-long v5, p3 invoke-static/range {v1 .. v6}, Lokio/-Util;->checkOffsetAndCount(JJJ)V iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; if-eqz v0, :cond_0 .line 1443 iget v1, v0, Lokio/Segment;->limit:I iget v2, v0, Lokio/Segment;->pos:I sub-int/2addr v1, v2 invoke-static {p3, v1}, Ljava/lang/Math;->min(II)I move-result p3 .line 1444 iget-object v1, v0, Lokio/Segment;->data:[B .line 1445 iget v2, v0, Lokio/Segment;->pos:I iget v3, v0, Lokio/Segment;->pos:I add-int/2addr v3, p3 .line 1444 invoke-static {v1, p1, p2, v2, v3}, Lkotlin/collections/ArraysKt;->copyInto([B[BIII)[B .line 1448 iget p1, v0, Lokio/Segment;->pos:I add-int/2addr p1, p3 iput p1, v0, Lokio/Segment;->pos:I .line 1449 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide p1 int-to-long v1, p3 sub-long/2addr p1, v1 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->setSize$okio(J)V .line 1451 iget p1, v0, Lokio/Segment;->pos:I iget p2, v0, Lokio/Segment;->limit:I if-ne p1, p2, :cond_1 .line 1452 invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment; move-result-object p1 iput-object p1, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1453 invoke-static {v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V goto :goto_0 :cond_0 const/4 p3, -0x1 :cond_1 :goto_0 return p3 .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 if-ltz v2, :cond_0 const/4 v2, 0x1 goto :goto_0 :cond_0 const/4 v2, 0x0 :goto_0 if-eqz v2, :cond_3 .line 1852 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v2 cmp-long v0, v2, v0 if-nez v0, :cond_1 const-wide/16 p0, -0x1 goto :goto_1 .line 1853 :cond_1 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 cmp-long v0, p2, v0 if-lez v0, :cond_2 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide p2 .line 1854 :cond_2 invoke-virtual {p1, p0, p2, p3}, Lokio/Buffer;->write(Lokio/Buffer;J)V move-wide p0, p2 :goto_1 return-wide p0 .line 1850 :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 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "sink" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 1327 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 const-wide/16 v2, 0x0 cmp-long v2, v0, v2 if-lez v2, :cond_0 .line 1329 invoke-interface {p1, p0, v0, v1}, Lokio/Sink;->write(Lokio/Buffer;J)V :cond_0 return-wide v0 .end method .method public final readAndWriteUnsafe()Lokio/Buffer$UnsafeCursor; .locals 2 const/4 v0, 0x0 const/4 v1, 0x1 invoke-static {p0, v0, v1, v0}, Lokio/Buffer;->readAndWriteUnsafe$default(Lokio/Buffer;Lokio/Buffer$UnsafeCursor;ILjava/lang/Object;)Lokio/Buffer$UnsafeCursor; move-result-object p0 return-object p0 .end method .method public final readAndWriteUnsafe(Lokio/Buffer$UnsafeCursor;)Lokio/Buffer$UnsafeCursor; .locals 2 const-string v0, "unsafeCursor" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 578 iget-object v0, p1, Lokio/Buffer$UnsafeCursor;->buffer:Lokio/Buffer; const/4 v1, 0x1 if-nez v0, :cond_0 move v0, v1 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 if-eqz v0, :cond_1 .line 580 move-object v0, p0 check-cast v0, Lokio/Buffer; iput-object p0, p1, Lokio/Buffer$UnsafeCursor;->buffer:Lokio/Buffer; .line 581 iput-boolean v1, p1, Lokio/Buffer$UnsafeCursor;->readWrite:Z return-object p1 .line 578 :cond_1 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "already attached to a buffer" 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 readByte()B .locals 9 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation .line 1066 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 const-wide/16 v2, 0x0 cmp-long v0, v0, v2 if-eqz v0, :cond_1 iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1068 invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V .line 1069 iget v1, v0, Lokio/Segment;->pos:I .line 1070 iget v2, v0, Lokio/Segment;->limit:I .line 1072 iget-object v3, v0, Lokio/Segment;->data:[B add-int/lit8 v4, v1, 0x1 .line 1073 aget-byte v1, v3, v1 .line 1074 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v5 const-wide/16 v7, 0x1 sub-long/2addr v5, v7 invoke-virtual {p0, v5, v6}, Lokio/Buffer;->setSize$okio(J)V if-ne v4, v2, :cond_0 .line 1077 invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment; move-result-object v2 iput-object v2, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1078 invoke-static {v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V goto :goto_0 .line 1080 :cond_0 iput v4, v0, Lokio/Segment;->pos:I :goto_0 return v1 .line 1066 :cond_1 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 readByteArray()[B .locals 2 .line 1424 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 invoke-virtual {p0, v0, v1}, Lokio/Buffer;->readByteArray(J)[B move-result-object p0 return-object p0 .end method .method public readByteArray(J)[B .locals 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation const-wide/16 v0, 0x0 cmp-long v0, p1, v0 if-ltz v0, :cond_0 const v0, 0x7fffffff int-to-long v0, v0 cmp-long v0, p1, v0 if-gtz v0, :cond_0 const/4 v0, 0x1 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 if-eqz v0, :cond_2 .line 1427 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 cmp-long v0, v0, p1 if-ltz v0, :cond_1 long-to-int p1, p1 .line 1429 new-array p1, p1, [B .line 1430 invoke-virtual {p0, p1}, Lokio/Buffer;->readFully([B)V return-object p1 .line 1427 :cond_1 new-instance p0, Ljava/io/EOFException; invoke-direct {p0}, Ljava/io/EOFException;->()V check-cast p0, Ljava/lang/Throwable; throw p0 .line 1425 :cond_2 new-instance p0, Ljava/lang/StringBuilder; const-string v0, "byteCount: " 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 readByteString()Lokio/ByteString; .locals 2 .line 1305 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 invoke-virtual {p0, v0, v1}, Lokio/Buffer;->readByteString(J)Lokio/ByteString; move-result-object p0 return-object p0 .end method .method public readByteString(J)Lokio/ByteString; .locals 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation const-wide/16 v0, 0x0 cmp-long v0, p1, v0 if-ltz v0, :cond_0 const v0, 0x7fffffff int-to-long v0, v0 cmp-long v0, p1, v0 if-gtz v0, :cond_0 const/4 v0, 0x1 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 if-eqz v0, :cond_3 .line 1308 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 cmp-long v0, v0, p1 if-ltz v0, :cond_2 const/16 v0, 0x1000 int-to-long v0, v0 cmp-long v0, p1, v0 if-ltz v0, :cond_1 long-to-int v0, p1 .line 1311 invoke-virtual {p0, v0}, Lokio/Buffer;->snapshot(I)Lokio/ByteString; move-result-object v0 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->skip(J)V goto :goto_1 .line 1313 :cond_1 new-instance v0, Lokio/ByteString; invoke-virtual {p0, p1, p2}, Lokio/Buffer;->readByteArray(J)[B move-result-object p0 invoke-direct {v0, p0}, Lokio/ByteString;->([B)V :goto_1 return-object v0 .line 1308 :cond_2 new-instance p0, Ljava/io/EOFException; invoke-direct {p0}, Ljava/io/EOFException;->()V check-cast p0, Ljava/lang/Throwable; throw p0 .line 1306 :cond_3 new-instance p0, Ljava/lang/StringBuilder; const-string v0, "byteCount: " 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 readDecimalLong()J .locals 15 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation .line 1194 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 const-wide/16 v2, 0x0 cmp-long v0, v0, v2 if-eqz v0, :cond_b const/4 v0, 0x0 const-wide/16 v4, -0x7 move v1, v0 move-wide v5, v4 move-wide v3, v2 move v2, v1 :cond_0 iget-object v7, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1205 invoke-static {v7}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V .line 1207 iget-object v8, v7, Lokio/Segment;->data:[B .line 1208 iget v9, v7, Lokio/Segment;->pos:I .line 1209 iget v10, v7, Lokio/Segment;->limit:I :goto_0 if-ge v9, v10, :cond_7 .line 1212 aget-byte v11, v8, v9 const/16 v12, 0x30 int-to-byte v12, v12 if-lt v11, v12, :cond_4 const/16 v13, 0x39 int-to-byte v13, v13 if-gt v11, v13, :cond_4 sub-int/2addr v12, v11 const-wide v13, -0xcccccccccccccccL cmp-long v13, v3, v13 if-ltz v13, :cond_2 if-nez v13, :cond_1 int-to-long v13, v12 cmp-long v13, v13, v5 if-gez v13, :cond_1 goto :goto_1 :cond_1 const-wide/16 v13, 0xa mul-long/2addr v3, v13 int-to-long v11, v12 add-long/2addr v3, v11 goto :goto_2 .line 1218 :cond_2 :goto_1 new-instance p0, Lokio/Buffer; invoke-direct {p0}, Lokio/Buffer;->()V invoke-virtual {p0, v3, v4}, Lokio/Buffer;->writeDecimalLong(J)Lokio/Buffer; move-result-object p0 invoke-virtual {p0, v11}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; move-result-object p0 if-nez v1, :cond_3 .line 1219 invoke-virtual {p0}, Lokio/Buffer;->readByte()B .line 1220 :cond_3 new-instance v0, Ljava/lang/NumberFormatException; new-instance v1, Ljava/lang/StringBuilder; const-string v2, "Number too large: " invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p0}, Lokio/Buffer;->readUtf8()Ljava/lang/String; move-result-object p0 invoke-virtual {v1, p0}, 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 invoke-direct {v0, p0}, Ljava/lang/NumberFormatException;->(Ljava/lang/String;)V check-cast v0, Ljava/lang/Throwable; throw v0 :cond_4 const/16 v12, 0x2d int-to-byte v12, v12 const/4 v13, 0x1 if-ne v11, v12, :cond_5 if-nez v0, :cond_5 const-wide/16 v11, 0x1 sub-long/2addr v5, v11 move v1, v13 :goto_2 add-int/lit8 v9, v9, 0x1 add-int/lit8 v0, v0, 0x1 goto :goto_0 :cond_5 if-eqz v0, :cond_6 move v2, v13 goto :goto_3 .line 1229 :cond_6 new-instance p0, Ljava/lang/NumberFormatException; .line 1230 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 invoke-static {v11}, Lokio/-Util;->toHexString(B)Ljava/lang/String; move-result-object v1 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 .line 1229 invoke-direct {p0, v0}, Ljava/lang/NumberFormatException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 :cond_7 :goto_3 if-ne v9, v10, :cond_8 .line 1241 invoke-virtual {v7}, Lokio/Segment;->pop()Lokio/Segment; move-result-object v8 iput-object v8, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1242 invoke-static {v7}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V goto :goto_4 .line 1244 :cond_8 iput v9, v7, Lokio/Segment;->pos:I :goto_4 if-nez v2, :cond_9 iget-object v7, p0, Lokio/Buffer;->head:Lokio/Segment; if-nez v7, :cond_0 .line 1248 :cond_9 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v5 int-to-long v7, v0 sub-long/2addr v5, v7 invoke-virtual {p0, v5, v6}, Lokio/Buffer;->setSize$okio(J)V if-eqz v1, :cond_a goto :goto_5 :cond_a neg-long v3, v3 :goto_5 return-wide v3 .line 1194 :cond_b 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 final readFrom(Ljava/io/InputStream;)Lokio/Buffer; .locals 3 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "input" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-wide v0, 0x7fffffffffffffffL const/4 v2, 0x1 .line 211 invoke-direct {p0, p1, v0, v1, v2}, Lokio/Buffer;->readFrom(Ljava/io/InputStream;JZ)V return-object p0 .end method .method public final readFrom(Ljava/io/InputStream;J)Lokio/Buffer; .locals 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "input" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-wide/16 v0, 0x0 cmp-long v0, p2, v0 const/4 v1, 0x0 if-ltz v0, :cond_0 const/4 v0, 0x1 goto :goto_0 :cond_0 move v0, v1 :goto_0 if-eqz v0, :cond_1 .line 219 invoke-direct {p0, p1, p2, p3, v1}, Lokio/Buffer;->readFrom(Ljava/io/InputStream;JZ)V return-object p0 .line 218 :cond_1 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 readFully(Lokio/Buffer;J)V .locals 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation const-string v0, "sink" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 1321 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 cmp-long v0, v0, p2 if-ltz v0, :cond_0 .line 1325 invoke-virtual {p1, p0, p2, p3}, Lokio/Buffer;->write(Lokio/Buffer;J)V return-void .line 1322 :cond_0 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide p2 invoke-virtual {p1, p0, p2, p3}, Lokio/Buffer;->write(Lokio/Buffer;J)V .line 1323 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 readFully([B)V .locals 3 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation 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 1434 :goto_0 array-length v1, p1 if-ge v0, v1, :cond_1 .line 1435 array-length v1, p1 sub-int/2addr v1, v0 invoke-virtual {p0, p1, v0, v1}, Lokio/Buffer;->read([BII)I move-result v1 const/4 v2, -0x1 if-eq v1, v2, :cond_0 add-int/2addr v0, v1 goto :goto_0 .line 1436 :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 return-void .end method .method public readHexadecimalUnsignedLong()J .locals 14 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation .line 1250 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 const-wide/16 v2, 0x0 cmp-long v0, v0, v2 if-eqz v0, :cond_9 const/4 v0, 0x0 move v1, v0 move-wide v4, v2 :cond_0 iget-object v6, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1257 invoke-static {v6}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V .line 1259 iget-object v7, v6, Lokio/Segment;->data:[B .line 1260 iget v8, v6, Lokio/Segment;->pos:I .line 1261 iget v9, v6, Lokio/Segment;->limit:I :goto_0 if-ge v8, v9, :cond_6 .line 1266 aget-byte v10, v7, v8 const/16 v11, 0x30 int-to-byte v11, v11 if-lt v10, v11, :cond_1 const/16 v12, 0x39 int-to-byte v12, v12 if-gt v10, v12, :cond_1 sub-int v11, v10, v11 goto :goto_2 :cond_1 const/16 v11, 0x61 int-to-byte v11, v11 if-lt v10, v11, :cond_2 const/16 v12, 0x66 int-to-byte v12, v12 if-gt v10, v12, :cond_2 :goto_1 sub-int v11, v10, v11 add-int/lit8 v11, v11, 0xa goto :goto_2 :cond_2 const/16 v11, 0x41 int-to-byte v11, v11 if-lt v10, v11, :cond_4 const/16 v12, 0x46 int-to-byte v12, v12 if-gt v10, v12, :cond_4 goto :goto_1 :goto_2 const-wide/high16 v12, -0x1000000000000000L # -3.105036184601418E231 and-long/2addr v12, v4 cmp-long v12, v12, v2 if-nez v12, :cond_3 const/4 v10, 0x4 shl-long/2addr v4, v10 int-to-long v10, v11 or-long/2addr v4, v10 add-int/lit8 v8, v8, 0x1 add-int/lit8 v0, v0, 0x1 goto :goto_0 .line 1285 :cond_3 new-instance p0, Lokio/Buffer; invoke-direct {p0}, Lokio/Buffer;->()V invoke-virtual {p0, v4, v5}, Lokio/Buffer;->writeHexadecimalUnsignedLong(J)Lokio/Buffer; move-result-object p0 invoke-virtual {p0, v10}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; move-result-object p0 .line 1286 new-instance v0, Ljava/lang/NumberFormatException; new-instance v1, Ljava/lang/StringBuilder; const-string v2, "Number too large: " invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p0}, Lokio/Buffer;->readUtf8()Ljava/lang/String; move-result-object p0 invoke-virtual {v1, p0}, 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 invoke-direct {v0, p0}, Ljava/lang/NumberFormatException;->(Ljava/lang/String;)V check-cast v0, Ljava/lang/Throwable; throw v0 :cond_4 if-eqz v0, :cond_5 const/4 v1, 0x1 goto :goto_3 .line 1275 :cond_5 new-instance p0, Ljava/lang/NumberFormatException; .line 1276 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 invoke-static {v10}, Lokio/-Util;->toHexString(B)Ljava/lang/String; move-result-object v1 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 .line 1275 invoke-direct {p0, v0}, Ljava/lang/NumberFormatException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 :cond_6 :goto_3 if-ne v8, v9, :cond_7 .line 1296 invoke-virtual {v6}, Lokio/Segment;->pop()Lokio/Segment; move-result-object v7 iput-object v7, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1297 invoke-static {v6}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V goto :goto_4 .line 1299 :cond_7 iput v8, v6, Lokio/Segment;->pos:I :goto_4 if-nez v1, :cond_8 iget-object v6, p0, Lokio/Buffer;->head:Lokio/Segment; if-nez v6, :cond_0 .line 1303 :cond_8 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v1 int-to-long v6, v0 sub-long/2addr v1, v6 invoke-virtual {p0, v1, v2}, Lokio/Buffer;->setSize$okio(J)V return-wide v4 .line 1250 :cond_9 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 readInt()I .locals 9 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation .line 1131 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 const-wide/16 v2, 0x4 cmp-long v0, v0, v2 if-ltz v0, :cond_2 iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1133 invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V .line 1134 iget v1, v0, Lokio/Segment;->pos:I .line 1135 iget v4, v0, Lokio/Segment;->limit:I sub-int v5, v4, v1 int-to-long v5, v5 cmp-long v5, v5, v2 if-gez v5, :cond_0 .line 1139 invoke-virtual {p0}, Lokio/Buffer;->readByte()B move-result v0 and-int/lit16 v0, v0, 0xff shl-int/lit8 v0, v0, 0x18 .line 1141 invoke-virtual {p0}, Lokio/Buffer;->readByte()B move-result v1 and-int/lit16 v1, v1, 0xff shl-int/lit8 v1, v1, 0x10 or-int/2addr v0, v1 .line 1142 invoke-virtual {p0}, Lokio/Buffer;->readByte()B move-result v1 and-int/lit16 v1, v1, 0xff shl-int/lit8 v1, v1, 0x8 or-int/2addr v0, v1 .line 1143 invoke-virtual {p0}, Lokio/Buffer;->readByte()B move-result p0 and-int/lit16 p0, p0, 0xff or-int/2addr p0, v0 goto :goto_1 .line 1146 :cond_0 iget-object v5, v0, Lokio/Segment;->data:[B add-int/lit8 v6, v1, 0x1 .line 1147 aget-byte v7, v5, v1 and-int/lit16 v7, v7, 0xff shl-int/lit8 v7, v7, 0x18 add-int/lit8 v8, v1, 0x2 .line 1148 aget-byte v6, v5, v6 and-int/lit16 v6, v6, 0xff shl-int/lit8 v6, v6, 0x10 or-int/2addr v6, v7 add-int/lit8 v7, v1, 0x3 .line 1149 aget-byte v8, v5, v8 and-int/lit16 v8, v8, 0xff shl-int/lit8 v8, v8, 0x8 or-int/2addr v6, v8 add-int/lit8 v1, v1, 0x4 .line 1150 aget-byte v5, v5, v7 and-int/lit16 v5, v5, 0xff or-int/2addr v5, v6 .line 1151 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v6 sub-long/2addr v6, v2 invoke-virtual {p0, v6, v7}, Lokio/Buffer;->setSize$okio(J)V if-ne v1, v4, :cond_1 .line 1154 invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment; move-result-object v1 iput-object v1, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1155 invoke-static {v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V goto :goto_0 .line 1157 :cond_1 iput v1, v0, Lokio/Segment;->pos:I :goto_0 move p0, v5 :goto_1 return p0 .line 1131 :cond_2 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 readIntLe()I .locals 0 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation .line 266 invoke-virtual {p0}, Lokio/Buffer;->readInt()I move-result p0 invoke-static {p0}, Lokio/-Util;->reverseBytes(I)I move-result p0 return p0 .end method .method public readLong()J .locals 15 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation .line 1161 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 const-wide/16 v2, 0x8 cmp-long v0, v0, v2 if-ltz v0, :cond_2 iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1163 invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V .line 1164 iget v1, v0, Lokio/Segment;->pos:I .line 1165 iget v4, v0, Lokio/Segment;->limit:I sub-int v5, v4, v1 int-to-long v5, v5 cmp-long v5, v5, v2 const/16 v6, 0x20 if-gez v5, :cond_0 .line 1169 invoke-virtual {p0}, Lokio/Buffer;->readInt()I move-result v0 int-to-long v0, v0 const-wide v2, 0xffffffffL and-long/2addr v0, v2 shl-long/2addr v0, v6 .line 1171 invoke-virtual {p0}, Lokio/Buffer;->readInt()I move-result p0 int-to-long v4, p0 and-long/2addr v2, v4 or-long/2addr v0, v2 goto :goto_1 .line 1174 :cond_0 iget-object v5, v0, Lokio/Segment;->data:[B add-int/lit8 v7, v1, 0x1 .line 1175 aget-byte v8, v5, v1 int-to-long v8, v8 const-wide/16 v10, 0xff and-long/2addr v8, v10 const/16 v12, 0x38 shl-long/2addr v8, v12 add-int/lit8 v12, v1, 0x2 .line 1177 aget-byte v7, v5, v7 int-to-long v13, v7 and-long/2addr v13, v10 const/16 v7, 0x30 shl-long/2addr v13, v7 or-long v7, v8, v13 add-int/lit8 v9, v1, 0x3 .line 1178 aget-byte v12, v5, v12 int-to-long v12, v12 and-long/2addr v12, v10 const/16 v14, 0x28 shl-long/2addr v12, v14 or-long/2addr v7, v12 add-int/lit8 v12, v1, 0x4 .line 1179 aget-byte v9, v5, v9 int-to-long v13, v9 and-long/2addr v13, v10 shl-long/2addr v13, v6 or-long v6, v7, v13 add-int/lit8 v8, v1, 0x5 .line 1180 aget-byte v9, v5, v12 int-to-long v12, v9 and-long/2addr v12, v10 const/16 v9, 0x18 shl-long/2addr v12, v9 or-long/2addr v6, v12 add-int/lit8 v9, v1, 0x6 .line 1181 aget-byte v8, v5, v8 int-to-long v12, v8 and-long/2addr v12, v10 const/16 v8, 0x10 shl-long/2addr v12, v8 or-long/2addr v6, v12 add-int/lit8 v8, v1, 0x7 .line 1182 aget-byte v9, v5, v9 int-to-long v12, v9 and-long/2addr v12, v10 const/16 v9, 0x8 shl-long/2addr v12, v9 or-long/2addr v6, v12 add-int/2addr v1, v9 .line 1183 aget-byte v5, v5, v8 int-to-long v8, v5 and-long/2addr v8, v10 or-long v5, v6, v8 .line 1184 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v7 sub-long/2addr v7, v2 invoke-virtual {p0, v7, v8}, Lokio/Buffer;->setSize$okio(J)V if-ne v1, v4, :cond_1 .line 1187 invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment; move-result-object v1 iput-object v1, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1188 invoke-static {v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V goto :goto_0 .line 1190 :cond_1 iput v1, v0, Lokio/Segment;->pos:I :goto_0 move-wide v0, v5 :goto_1 return-wide v0 .line 1161 :cond_2 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 readLongLe()J .locals 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation .line 269 invoke-virtual {p0}, Lokio/Buffer;->readLong()J move-result-wide v0 invoke-static {v0, v1}, Lokio/-Util;->reverseBytes(J)J move-result-wide v0 return-wide v0 .end method .method public readShort()S .locals 9 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation .line 1106 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 const-wide/16 v2, 0x2 cmp-long v0, v0, v2 if-ltz v0, :cond_2 iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1108 invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V .line 1109 iget v1, v0, Lokio/Segment;->pos:I .line 1110 iget v4, v0, Lokio/Segment;->limit:I sub-int v5, v4, v1 const/4 v6, 0x2 if-ge v5, v6, :cond_0 .line 1114 invoke-virtual {p0}, Lokio/Buffer;->readByte()B move-result v0 and-int/lit16 v0, v0, 0xff shl-int/lit8 v0, v0, 0x8 invoke-virtual {p0}, Lokio/Buffer;->readByte()B move-result p0 and-int/lit16 p0, p0, 0xff or-int/2addr p0, v0 int-to-short p0, p0 goto :goto_1 .line 1119 :cond_0 iget-object v5, v0, Lokio/Segment;->data:[B add-int/lit8 v7, v1, 0x1 .line 1120 aget-byte v8, v5, v1 and-int/lit16 v8, v8, 0xff shl-int/lit8 v8, v8, 0x8 add-int/2addr v1, v6 aget-byte v5, v5, v7 and-int/lit16 v5, v5, 0xff or-int/2addr v5, v8 .line 1121 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v6 sub-long/2addr v6, v2 invoke-virtual {p0, v6, v7}, Lokio/Buffer;->setSize$okio(J)V if-ne v1, v4, :cond_1 .line 1124 invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment; move-result-object v1 iput-object v1, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1125 invoke-static {v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V goto :goto_0 .line 1127 :cond_1 iput v1, v0, Lokio/Segment;->pos:I :goto_0 int-to-short p0, v5 :goto_1 return p0 .line 1106 :cond_2 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 readShortLe()S .locals 0 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation .line 263 invoke-virtual {p0}, Lokio/Buffer;->readShort()S move-result p0 invoke-static {p0}, Lokio/-Util;->reverseBytes(S)S move-result p0 return p0 .end method .method public readString(JLjava/nio/charset/Charset;)Ljava/lang/String; .locals 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation const-string v0, "charset" invoke-static {p3, 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 v1, 0x7fffffff int-to-long v1, v1 cmp-long v1, p1, v1 if-gtz v1, :cond_0 const/4 v1, 0x1 goto :goto_0 :cond_0 const/4 v1, 0x0 :goto_0 if-eqz v1, :cond_5 iget-wide v1, p0, Lokio/Buffer;->size:J cmp-long v1, v1, p1 if-ltz v1, :cond_4 if-nez v0, :cond_1 const-string p0, "" return-object p0 :cond_1 iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; .line 303 invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V .line 304 iget v1, v0, Lokio/Segment;->pos:I int-to-long v1, v1 add-long/2addr v1, p1 iget v3, v0, Lokio/Segment;->limit:I int-to-long v3, v3 cmp-long v1, v1, v3 if-lez v1, :cond_2 .line 306 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->readByteArray(J)[B move-result-object p0 new-instance p1, Ljava/lang/String; invoke-direct {p1, p0, p3}, Ljava/lang/String;->([BLjava/nio/charset/Charset;)V return-object p1 .line 309 :cond_2 iget-object v1, v0, Lokio/Segment;->data:[B iget v2, v0, Lokio/Segment;->pos:I long-to-int v3, p1 new-instance v4, Ljava/lang/String; invoke-direct {v4, v1, v2, v3, p3}, Ljava/lang/String;->([BIILjava/nio/charset/Charset;)V .line 310 iget p3, v0, Lokio/Segment;->pos:I add-int/2addr p3, v3 iput p3, v0, Lokio/Segment;->pos:I iget-wide v1, p0, Lokio/Buffer;->size:J sub-long/2addr v1, p1 iput-wide v1, p0, Lokio/Buffer;->size:J .line 313 iget p1, v0, Lokio/Segment;->pos:I iget p2, v0, Lokio/Segment;->limit:I if-ne p1, p2, :cond_3 .line 314 invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment; move-result-object p1 iput-object p1, p0, Lokio/Buffer;->head:Lokio/Segment; .line 315 invoke-static {v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V :cond_3 return-object v4 .line 300 :cond_4 new-instance p0, Ljava/io/EOFException; invoke-direct {p0}, Ljava/io/EOFException;->()V check-cast p0, Ljava/lang/Throwable; throw p0 .line 299 :cond_5 new-instance p0, Ljava/lang/StringBuilder; const-string p3, "byteCount: " invoke-direct {p0, p3}, 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 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-wide v0, p0, Lokio/Buffer;->size:J .line 295 invoke-virtual {p0, v0, v1, p1}, Lokio/Buffer;->readString(JLjava/nio/charset/Charset;)Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public final readUnsafe()Lokio/Buffer$UnsafeCursor; .locals 2 const/4 v0, 0x0 const/4 v1, 0x1 invoke-static {p0, v0, v1, v0}, Lokio/Buffer;->readUnsafe$default(Lokio/Buffer;Lokio/Buffer$UnsafeCursor;ILjava/lang/Object;)Lokio/Buffer$UnsafeCursor; move-result-object p0 return-object p0 .end method .method public final readUnsafe(Lokio/Buffer$UnsafeCursor;)Lokio/Buffer$UnsafeCursor; .locals 2 const-string v0, "unsafeCursor" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 569 iget-object v0, p1, Lokio/Buffer$UnsafeCursor;->buffer:Lokio/Buffer; const/4 v1, 0x0 if-nez v0, :cond_0 const/4 v0, 0x1 goto :goto_0 :cond_0 move v0, v1 :goto_0 if-eqz v0, :cond_1 .line 571 move-object v0, p0 check-cast v0, Lokio/Buffer; iput-object p0, p1, Lokio/Buffer$UnsafeCursor;->buffer:Lokio/Buffer; .line 572 iput-boolean v1, p1, Lokio/Buffer$UnsafeCursor;->readWrite:Z return-object p1 .line 569 :cond_1 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "already attached to a buffer" 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 readUtf8()Ljava/lang/String; .locals 3 iget-wide v0, p0, Lokio/Buffer;->size:J .line 290 sget-object v2, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset; invoke-virtual {p0, v0, v1, v2}, Lokio/Buffer;->readString(JLjava/nio/charset/Charset;)Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public readUtf8(J)Ljava/lang/String; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation .line 293 sget-object v0, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset; invoke-virtual {p0, p1, p2, v0}, Lokio/Buffer;->readString(JLjava/nio/charset/Charset;)Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public readUtf8CodePoint()I .locals 12 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation .line 1353 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 const-wide/16 v2, 0x0 cmp-long v0, v0, v2 if-eqz v0, :cond_b .line 1355 invoke-virtual {p0, v2, v3}, Lokio/Buffer;->getByte(J)B move-result v0 and-int/lit16 v1, v0, 0x80 const/4 v2, 0x1 const/16 v3, 0x80 const v4, 0xfffd if-nez v1, :cond_0 and-int/lit8 v1, v0, 0x7f const/4 v5, 0x0 move v6, v5 move v5, v2 goto :goto_0 :cond_0 and-int/lit16 v1, v0, 0xe0 const/16 v5, 0xc0 if-ne v1, v5, :cond_1 and-int/lit8 v1, v0, 0x1f const/4 v5, 0x2 move v6, v3 goto :goto_0 :cond_1 and-int/lit16 v1, v0, 0xf0 const/16 v5, 0xe0 if-ne v1, v5, :cond_2 and-int/lit8 v1, v0, 0xf const/4 v5, 0x3 const/16 v6, 0x800 goto :goto_0 :cond_2 and-int/lit16 v1, v0, 0xf8 const/16 v5, 0xf0 if-ne v1, v5, :cond_a and-int/lit8 v1, v0, 0x7 const/4 v5, 0x4 const/high16 v6, 0x10000 .line 1392 :goto_0 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v7 int-to-long v9, v5 cmp-long v7, v7, v9 if-ltz v7, :cond_9 :goto_1 if-ge v2, v5, :cond_4 int-to-long v7, v2 .line 1400 invoke-virtual {p0, v7, v8}, Lokio/Buffer;->getByte(J)B move-result v0 and-int/lit16 v11, v0, 0xc0 if-ne v11, v3, :cond_3 shl-int/lit8 v1, v1, 0x6 and-int/lit8 v0, v0, 0x3f or-int/2addr v1, v0 add-int/lit8 v2, v2, 0x1 goto :goto_1 .line 1406 :cond_3 invoke-virtual {p0, v7, v8}, Lokio/Buffer;->skip(J)V goto :goto_3 .line 1411 :cond_4 invoke-virtual {p0, v9, v10}, Lokio/Buffer;->skip(J)V const p0, 0x10ffff if-le v1, p0, :cond_5 goto :goto_3 :cond_5 const p0, 0xd800 if-le p0, v1, :cond_6 goto :goto_2 :cond_6 const p0, 0xdfff if-lt p0, v1, :cond_7 goto :goto_3 :cond_7 :goto_2 if-ge v1, v6, :cond_8 goto :goto_3 :cond_8 move v4, v1 goto :goto_3 .line 1393 :cond_9 new-instance v1, Ljava/io/EOFException; new-instance v2, Ljava/lang/StringBuilder; const-string v3, "size < " invoke-direct {v2, v3}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v2 const-string v3, ": " invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v3 invoke-virtual {v2, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; move-result-object p0 const-string v2, " (to read code point prefixed 0x" invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p0 invoke-static {v0}, Lokio/-Util;->toHexString(B)Ljava/lang/String; move-result-object v0 invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)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 invoke-direct {v1, p0}, Ljava/io/EOFException;->(Ljava/lang/String;)V check-cast v1, Ljava/lang/Throwable; throw v1 :cond_a const-wide/16 v0, 0x1 .line 1387 invoke-virtual {p0, v0, v1}, Lokio/Buffer;->skip(J)V :goto_3 return v4 .line 1353 :cond_b 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 readUtf8Line()Ljava/lang/String; .locals 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation const/16 v0, 0xa int-to-byte v0, v0 .line 1332 invoke-virtual {p0, v0}, Lokio/Buffer;->indexOf(B)J move-result-wide v0 const-wide/16 v2, -0x1 cmp-long v2, v0, v2 if-eqz v2, :cond_0 .line 1335 invoke-static {p0, v0, v1}, Lokio/internal/BufferKt;->readUtf8Line(Lokio/Buffer;J)Ljava/lang/String; move-result-object p0 goto :goto_0 .line 1336 :cond_0 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 const-wide/16 v2, 0x0 cmp-long v0, v0, v2 if-eqz v0, :cond_1 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 invoke-virtual {p0, v0, v1}, Lokio/Buffer;->readUtf8(J)Ljava/lang/String; move-result-object p0 goto :goto_0 :cond_1 const/4 p0, 0x0 :goto_0 return-object p0 .end method .method public readUtf8LineStrict()Ljava/lang/String; .locals 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation const-wide v0, 0x7fffffffffffffffL .line 325 invoke-virtual {p0, v0, v1}, Lokio/Buffer;->readUtf8LineStrict(J)Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public readUtf8LineStrict(J)Ljava/lang/String; .locals 11 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation 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 goto :goto_1 :cond_1 add-long v0, p1, v3 :goto_1 const/16 v2, 0xa int-to-byte v2, v2 const-wide/16 v7, 0x0 move-object v5, p0 move v6, v2 move-wide v9, v0 .line 1341 invoke-virtual/range {v5 .. v10}, Lokio/Buffer;->indexOf(BJJ)J move-result-wide v5 const-wide/16 v7, -0x1 cmp-long v7, v5, v7 if-eqz v7, :cond_2 .line 1342 invoke-static {p0, v5, v6}, Lokio/internal/BufferKt;->readUtf8Line(Lokio/Buffer;J)Ljava/lang/String; move-result-object p0 goto :goto_2 .line 1345 :cond_2 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v5 cmp-long v5, v0, v5 if-gez v5, :cond_3 sub-long v3, v0, v3 .line 1344 invoke-virtual {p0, v3, v4}, Lokio/Buffer;->getByte(J)B move-result v3 const/16 v4, 0xd int-to-byte v4, v4 if-ne v3, v4, :cond_3 .line 1345 invoke-virtual {p0, v0, v1}, Lokio/Buffer;->getByte(J)B move-result v3 if-ne v3, v2, :cond_3 .line 1346 invoke-static {p0, v0, v1}, Lokio/internal/BufferKt;->readUtf8Line(Lokio/Buffer;J)Ljava/lang/String; move-result-object p0 :goto_2 return-object p0 .line 1348 :cond_3 new-instance v6, Lokio/Buffer; invoke-direct {v6}, Lokio/Buffer;->()V const-wide/16 v2, 0x0 .line 1349 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 const/16 v4, 0x20 int-to-long v4, v4 .line 1350 invoke-static {v4, v5, v0, v1}, Ljava/lang/Math;->min(JJ)J move-result-wide v4 move-object v0, p0 move-object v1, v6 .line 1349 invoke-virtual/range {v0 .. v5}, Lokio/Buffer;->copyTo(Lokio/Buffer;JJ)Lokio/Buffer; .line 1351 new-instance v0, Ljava/io/EOFException; new-instance v1, Ljava/lang/StringBuilder; const-string v2, "\\n not found: limit=" invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v2 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 1352 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/16 p1, 0x2026 invoke-virtual {p0, p1}, 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 .line 1351 invoke-direct {v0, p0}, Ljava/io/EOFException;->(Ljava/lang/String;)V check-cast v0, Ljava/lang/Throwable; throw v0 .line 1338 :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 2 iget-wide v0, p0, Lokio/Buffer;->size:J cmp-long p0, v0, p1 if-ltz p0, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 return p0 .end method .method public require(J)V .locals 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation iget-wide v0, p0, Lokio/Buffer;->size:J cmp-long p0, v0, p1 if-ltz p0, :cond_0 return-void .line 106 :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 3 const-string v0, "options" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x2 const/4 v1, 0x0 const/4 v2, 0x0 .line 1314 invoke-static {p0, p1, v2, v0, v1}, Lokio/internal/BufferKt;->selectPrefix$default(Lokio/Buffer;Lokio/Options;ZILjava/lang/Object;)I move-result v0 const/4 v1, -0x1 if-ne v0, v1, :cond_0 move v0, v1 goto :goto_0 .line 1318 :cond_0 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 int-to-long v1, p1 .line 1319 invoke-virtual {p0, v1, v2}, Lokio/Buffer;->skip(J)V :goto_0 return v0 .end method .method public final setSize$okio(J)V .locals 0 iput-wide p1, p0, Lokio/Buffer;->size:J return-void .end method .method public final sha1()Lokio/ByteString; .locals 1 const-string v0, "SHA-1" .line 501 invoke-direct {p0, v0}, Lokio/Buffer;->digest(Ljava/lang/String;)Lokio/ByteString; move-result-object p0 return-object p0 .end method .method public final sha256()Lokio/ByteString; .locals 1 const-string v0, "SHA-256" .line 504 invoke-direct {p0, v0}, Lokio/Buffer;->digest(Ljava/lang/String;)Lokio/ByteString; move-result-object p0 return-object p0 .end method .method public final sha512()Lokio/ByteString; .locals 1 const-string v0, "SHA-512" .line 507 invoke-direct {p0, v0}, Lokio/Buffer;->digest(Ljava/lang/String;)Lokio/ByteString; move-result-object p0 return-object p0 .end method .method public final size()J .locals 2 iget-wide v0, p0, Lokio/Buffer;->size:J return-wide v0 .end method .method public skip(J)V .locals 6 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation :cond_0 :goto_0 const-wide/16 v0, 0x0 cmp-long v0, p1, v0 if-lez v0, :cond_2 iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; if-eqz v0, :cond_1 .line 1462 iget v1, v0, Lokio/Segment;->limit:I iget v2, v0, Lokio/Segment;->pos:I sub-int/2addr v1, v2 int-to-long v1, v1 .line 1463 invoke-static {p1, p2, v1, v2}, Ljava/lang/Math;->min(JJ)J move-result-wide v1 long-to-int v1, v1 .line 1464 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v2 int-to-long v4, v1 sub-long/2addr v2, v4 invoke-virtual {p0, v2, v3}, Lokio/Buffer;->setSize$okio(J)V sub-long/2addr p1, v4 .line 1466 iget v2, v0, Lokio/Segment;->pos:I add-int/2addr v2, v1 iput v2, v0, Lokio/Segment;->pos:I .line 1468 iget v1, v0, Lokio/Segment;->pos:I iget v2, v0, Lokio/Segment;->limit:I if-ne v1, v2, :cond_0 .line 1469 invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment; move-result-object v1 iput-object v1, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1470 invoke-static {v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V goto :goto_0 .line 1460 :cond_1 new-instance p0, Ljava/io/EOFException; invoke-direct {p0}, Ljava/io/EOFException;->()V check-cast p0, Ljava/lang/Throwable; throw p0 :cond_2 return-void .end method .method public final snapshot()Lokio/ByteString; .locals 4 .line 2105 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 const v2, 0x7fffffff int-to-long v2, v2 cmp-long v0, v0, v2 if-gtz v0, :cond_0 const/4 v0, 0x1 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 if-eqz v0, :cond_1 .line 2107 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 long-to-int v0, v0 invoke-virtual {p0, v0}, Lokio/Buffer;->snapshot(I)Lokio/ByteString; move-result-object p0 return-object p0 .line 2105 :cond_1 new-instance v0, Ljava/lang/StringBuilder; const-string v1, "size > Int.MAX_VALUE: " invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v1 invoke-virtual {v0, v1, v2}, 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 v0, Ljava/lang/IllegalStateException; invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p0 invoke-direct {v0, p0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast v0, Ljava/lang/Throwable; throw v0 .end method .method public final snapshot(I)Lokio/ByteString; .locals 6 if-nez p1, :cond_0 .line 2108 sget-object p0, Lokio/ByteString;->EMPTY:Lokio/ByteString; goto :goto_2 .line 2109 :cond_0 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 const-wide/16 v2, 0x0 int-to-long v4, p1 invoke-static/range {v0 .. v5}, Lokio/-Util;->checkOffsetAndCount(JJJ)V iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; const/4 v1, 0x0 move v2, v1 move v3, v2 :goto_0 if-ge v2, p1, :cond_2 .line 2116 invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V iget v4, v0, Lokio/Segment;->limit:I iget v5, v0, Lokio/Segment;->pos:I if-eq v4, v5, :cond_1 .line 2119 iget v4, v0, Lokio/Segment;->limit:I iget v5, v0, Lokio/Segment;->pos:I sub-int/2addr v4, v5 add-int/2addr v2, v4 add-int/lit8 v3, v3, 0x1 .line 2121 iget-object v0, v0, Lokio/Segment;->next:Lokio/Segment; goto :goto_0 .line 2117 :cond_1 new-instance p0, Ljava/lang/AssertionError; const-string p1, "s.limit == s.pos" invoke-direct {p0, p1}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V check-cast p0, Ljava/lang/Throwable; throw p0 .line 2125 :cond_2 new-array v0, v3, [[B mul-int/lit8 v3, v3, 0x2 .line 2126 new-array v2, v3, [I iget-object p0, p0, Lokio/Buffer;->head:Lokio/Segment; move v3, v1 :goto_1 if-ge v1, p1, :cond_3 .line 2131 invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V iget-object v4, p0, Lokio/Segment;->data:[B aput-object v4, v0, v3 .line 2132 iget v4, p0, Lokio/Segment;->limit:I iget v5, p0, Lokio/Segment;->pos:I sub-int/2addr v4, v5 add-int/2addr v1, v4 .line 2134 invoke-static {v1, p1}, Ljava/lang/Math;->min(II)I move-result v4 aput v4, v2, v3 .line 2135 move-object v4, v0 check-cast v4, [Ljava/lang/Object; array-length v4, v4 add-int/2addr v4, v3 iget v5, p0, Lokio/Segment;->pos:I aput v5, v2, v4 const/4 v4, 0x1 .line 2136 iput-boolean v4, p0, Lokio/Segment;->shared:Z add-int/2addr v3, v4 .line 2138 iget-object p0, p0, Lokio/Segment;->next:Lokio/Segment; goto :goto_1 .line 2141 :cond_3 new-instance p0, Lokio/SegmentedByteString; check-cast v0, [[B invoke-direct {p0, v0, v2}, Lokio/SegmentedByteString;->([[B[I)V check-cast p0, Lokio/ByteString; :goto_2 return-object p0 .end method .method public timeout()Lokio/Timeout; .locals 0 .line 495 sget-object p0, Lokio/Timeout;->NONE:Lokio/Timeout; return-object p0 .end method .method public toString()Ljava/lang/String; .locals 0 .line 557 invoke-virtual {p0}, Lokio/Buffer;->snapshot()Lokio/ByteString; move-result-object p0 invoke-virtual {p0}, Lokio/ByteString;->toString()Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public final writableSegment$okio(I)Lokio/Segment; .locals 2 const/16 v0, 0x2000 const/4 v1, 0x1 if-lt p1, v1, :cond_0 if-gt p1, v0, :cond_0 goto :goto_0 :cond_0 const/4 v1, 0x0 :goto_0 if-eqz v1, :cond_4 iget-object v1, p0, Lokio/Buffer;->head:Lokio/Segment; if-nez v1, :cond_1 .line 1796 invoke-static {}, Lokio/SegmentPool;->take()Lokio/Segment; move-result-object p1 iput-object p1, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1798 iput-object p1, p1, Lokio/Segment;->prev:Lokio/Segment; .line 1799 iput-object p1, p1, Lokio/Segment;->next:Lokio/Segment; goto :goto_1 .line 1803 :cond_1 invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V iget-object p0, v1, Lokio/Segment;->prev:Lokio/Segment; .line 1804 invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V iget v1, p0, Lokio/Segment;->limit:I add-int/2addr v1, p1 if-gt v1, v0, :cond_2 iget-boolean p1, p0, Lokio/Segment;->owner:Z if-nez p1, :cond_3 .line 1805 :cond_2 invoke-static {}, Lokio/SegmentPool;->take()Lokio/Segment; move-result-object p1 invoke-virtual {p0, p1}, Lokio/Segment;->push(Lokio/Segment;)Lokio/Segment; move-result-object p0 :cond_3 move-object p1, p0 :goto_1 return-object p1 .line 1793 :cond_4 new-instance p0, Ljava/lang/IllegalArgumentException; const-string p1, "unexpected capacity" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public write(Ljava/nio/ByteBuffer;)I .locals 6 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "source" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 409 invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I move-result v0 move v1, v0 :goto_0 if-lez v1, :cond_0 const/4 v2, 0x1 .line 412 invoke-virtual {p0, v2}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v2 .line 414 iget v3, v2, Lokio/Segment;->limit:I rsub-int v3, v3, 0x2000 invoke-static {v1, v3}, Ljava/lang/Math;->min(II)I move-result v3 .line 415 iget-object v4, v2, Lokio/Segment;->data:[B iget v5, v2, Lokio/Segment;->limit:I invoke-virtual {p1, v4, v5, v3}, Ljava/nio/ByteBuffer;->get([BII)Ljava/nio/ByteBuffer; sub-int/2addr v1, v3 .line 418 iget v4, v2, Lokio/Segment;->limit:I add-int/2addr v4, v3 iput v4, v2, Lokio/Segment;->limit:I goto :goto_0 :cond_0 iget-wide v1, p0, Lokio/Buffer;->size:J int-to-long v3, v0 add-long/2addr v1, v3 iput-wide v1, p0, Lokio/Buffer;->size:J return v0 .end method .method public write(Lokio/ByteString;)Lokio/Buffer; .locals 2 const-string v0, "byteString" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x0 .line 1475 invoke-virtual {p1}, Lokio/ByteString;->size()I move-result v1 .line 1477 invoke-virtual {p1, p0, v0, v1}, Lokio/ByteString;->write$okio(Lokio/Buffer;II)V return-object p0 .end method .method public write(Lokio/ByteString;II)Lokio/Buffer; .locals 1 const-string v0, "byteString" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 1479 invoke-virtual {p1, p0, p2, p3}, Lokio/ByteString;->write$okio(Lokio/Buffer;II)V return-object p0 .end method .method public write(Lokio/Source;J)Lokio/Buffer; .locals 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "source" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V :goto_0 const-wide/16 v0, 0x0 cmp-long v0, p2, v0 if-lez v0, :cond_1 .line 1649 invoke-interface {p1, p0, p2, p3}, Lokio/Source;->read(Lokio/Buffer;J)J move-result-wide v0 const-wide/16 v2, -0x1 cmp-long v2, v0, v2 if-eqz v2, :cond_0 sub-long/2addr p2, v0 goto :goto_0 .line 1650 :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 return-object p0 .end method .method public write([B)Lokio/Buffer; .locals 2 const-string v0, "source" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x0 .line 1618 array-length v1, p1 invoke-virtual {p0, p1, v0, v1}, Lokio/Buffer;->write([BII)Lokio/Buffer; move-result-object p0 return-object p0 .end method .method public write([BII)Lokio/Buffer; .locals 9 const-string v0, "source" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 1620 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 add-int/2addr p3, p2 :goto_0 if-ge p2, p3, :cond_0 const/4 v0, 0x1 .line 1624 invoke-virtual {p0, v0}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v0 sub-int v1, p3, p2 .line 1626 iget v2, v0, Lokio/Segment;->limit:I rsub-int v2, v2, 0x2000 invoke-static {v1, v2}, Ljava/lang/Math;->min(II)I move-result v1 .line 1628 iget-object v2, v0, Lokio/Segment;->data:[B .line 1629 iget v3, v0, Lokio/Segment;->limit:I add-int v4, p2, v1 .line 1627 invoke-static {p1, v2, v3, p2, v4}, Lkotlin/collections/ArraysKt;->copyInto([B[BIII)[B .line 1635 iget p2, v0, Lokio/Segment;->limit:I add-int/2addr p2, v1 iput p2, v0, Lokio/Segment;->limit:I move p2, v4 goto :goto_0 .line 1638 :cond_0 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide p1 add-long/2addr p1, v7 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->setSize$okio(J)V return-object p0 .end method .method public bridge synthetic write(Lokio/ByteString;)Lokio/BufferedSink; .locals 0 .line 69 invoke-virtual {p0, p1}, Lokio/Buffer;->write(Lokio/ByteString;)Lokio/Buffer; move-result-object p0 check-cast p0, Lokio/BufferedSink; return-object p0 .end method .method public bridge synthetic write(Lokio/ByteString;II)Lokio/BufferedSink; .locals 0 .line 69 invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->write(Lokio/ByteString;II)Lokio/Buffer; move-result-object p0 check-cast p0, Lokio/BufferedSink; return-object p0 .end method .method public bridge synthetic write(Lokio/Source;J)Lokio/BufferedSink; .locals 0 .line 69 invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->write(Lokio/Source;J)Lokio/Buffer; move-result-object p0 check-cast p0, Lokio/BufferedSink; return-object p0 .end method .method public bridge synthetic write([B)Lokio/BufferedSink; .locals 0 .line 69 invoke-virtual {p0, p1}, Lokio/Buffer;->write([B)Lokio/Buffer; move-result-object p0 check-cast p0, Lokio/BufferedSink; return-object p0 .end method .method public bridge synthetic write([BII)Lokio/BufferedSink; .locals 0 .line 69 invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->write([BII)Lokio/Buffer; move-result-object p0 check-cast p0, Lokio/BufferedSink; return-object p0 .end method .method public write(Lokio/Buffer;J)V .locals 8 const-string v0, "source" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x0 if-eq p1, p0, :cond_0 const/4 v1, 0x1 goto :goto_0 :cond_0 move v1, v0 :goto_0 if-eqz v1, :cond_7 .line 1811 invoke-virtual {p1}, Lokio/Buffer;->size()J move-result-wide v2 const-wide/16 v4, 0x0 move-wide v6, p2 invoke-static/range {v2 .. v7}, Lokio/-Util;->checkOffsetAndCount(JJJ)V :goto_1 const-wide/16 v1, 0x0 cmp-long v1, p2, v1 if-lez v1, :cond_6 .line 1815 iget-object v1, p1, Lokio/Buffer;->head:Lokio/Segment; invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V iget v1, v1, Lokio/Segment;->limit:I iget-object v2, p1, Lokio/Buffer;->head:Lokio/Segment; invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V iget v2, v2, Lokio/Segment;->pos:I sub-int/2addr v1, v2 int-to-long v1, v1 cmp-long v1, p2, v1 if-gez v1, :cond_4 iget-object v1, p0, Lokio/Buffer;->head:Lokio/Segment; if-eqz v1, :cond_1 .line 1816 invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V iget-object v1, v1, Lokio/Segment;->prev:Lokio/Segment; goto :goto_2 :cond_1 const/4 v1, 0x0 :goto_2 if-eqz v1, :cond_3 .line 1818 iget-boolean v2, v1, Lokio/Segment;->owner:Z if-eqz v2, :cond_3 iget v2, v1, Lokio/Segment;->limit:I int-to-long v2, v2 add-long/2addr v2, p2 iget-boolean v4, v1, Lokio/Segment;->shared:Z if-eqz v4, :cond_2 move v4, v0 goto :goto_3 :cond_2 iget v4, v1, Lokio/Segment;->pos:I :goto_3 int-to-long v4, v4 sub-long/2addr v2, v4 const/16 v4, 0x2000 int-to-long v4, v4 cmp-long v2, v2, v4 if-gtz v2, :cond_3 .line 1820 iget-object v0, p1, Lokio/Buffer;->head:Lokio/Segment; invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V long-to-int v2, p2 invoke-virtual {v0, v1, v2}, Lokio/Segment;->writeTo(Lokio/Segment;I)V .line 1821 invoke-virtual {p1}, Lokio/Buffer;->size()J move-result-wide v0 sub-long/2addr v0, p2 invoke-virtual {p1, v0, v1}, Lokio/Buffer;->setSize$okio(J)V .line 1822 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 add-long/2addr v0, p2 invoke-virtual {p0, v0, v1}, Lokio/Buffer;->setSize$okio(J)V goto :goto_5 .line 1827 :cond_3 iget-object v1, p1, Lokio/Buffer;->head:Lokio/Segment; invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V long-to-int v2, p2 invoke-virtual {v1, v2}, Lokio/Segment;->split(I)Lokio/Segment; move-result-object v1 iput-object v1, p1, Lokio/Buffer;->head:Lokio/Segment; .line 1832 :cond_4 iget-object v1, p1, Lokio/Buffer;->head:Lokio/Segment; .line 1833 invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V iget v2, v1, Lokio/Segment;->limit:I iget v3, v1, Lokio/Segment;->pos:I sub-int/2addr v2, v3 int-to-long v2, v2 .line 1834 invoke-virtual {v1}, Lokio/Segment;->pop()Lokio/Segment; move-result-object v4 iput-object v4, p1, Lokio/Buffer;->head:Lokio/Segment; iget-object v4, p0, Lokio/Buffer;->head:Lokio/Segment; if-nez v4, :cond_5 iput-object v1, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1837 iput-object v1, v1, Lokio/Segment;->prev:Lokio/Segment; .line 1838 iget-object v4, v1, Lokio/Segment;->prev:Lokio/Segment; iput-object v4, v1, Lokio/Segment;->next:Lokio/Segment; goto :goto_4 .line 1840 :cond_5 invoke-static {v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V iget-object v4, v4, Lokio/Segment;->prev:Lokio/Segment; .line 1841 invoke-static {v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V invoke-virtual {v4, v1}, Lokio/Segment;->push(Lokio/Segment;)Lokio/Segment; move-result-object v1 .line 1842 invoke-virtual {v1}, Lokio/Segment;->compact()V .line 1844 :goto_4 invoke-virtual {p1}, Lokio/Buffer;->size()J move-result-wide v4 sub-long/2addr v4, v2 invoke-virtual {p1, v4, v5}, Lokio/Buffer;->setSize$okio(J)V .line 1845 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v4 add-long/2addr v4, v2 invoke-virtual {p0, v4, v5}, Lokio/Buffer;->setSize$okio(J)V sub-long/2addr p2, v2 goto/16 :goto_1 :cond_6 :goto_5 return-void .line 1809 :cond_7 new-instance p0, Ljava/lang/IllegalArgumentException; const-string p1, "source == this" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public writeAll(Lokio/Source;)J .locals 6 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "source" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-wide/16 v0, 0x0 :goto_0 const/16 v2, 0x2000 int-to-long v2, v2 .line 1642 invoke-interface {p1, p0, v2, v3}, Lokio/Source;->read(Lokio/Buffer;J)J move-result-wide v2 const-wide/16 v4, -0x1 cmp-long v4, v2, v4 if-nez v4, :cond_0 return-wide v0 :cond_0 add-long/2addr v0, v2 goto :goto_0 .end method .method public writeByte(I)Lokio/Buffer; .locals 4 const/4 v0, 0x1 .line 1654 invoke-virtual {p0, v0}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v0 .line 1655 iget-object v1, v0, Lokio/Segment;->data:[B iget v2, v0, Lokio/Segment;->limit:I add-int/lit8 v3, v2, 0x1 iput v3, v0, Lokio/Segment;->limit:I int-to-byte p1, p1 aput-byte p1, v1, v2 .line 1656 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 const-wide/16 v2, 0x1 add-long/2addr v0, v2 invoke-virtual {p0, v0, v1}, Lokio/Buffer;->setSize$okio(J)V return-object p0 .end method .method public bridge synthetic writeByte(I)Lokio/BufferedSink; .locals 0 .line 69 invoke-virtual {p0, p1}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; move-result-object p0 check-cast p0, Lokio/BufferedSink; return-object p0 .end method .method public writeDecimalLong(J)Lokio/Buffer; .locals 12 const-wide/16 v0, 0x0 cmp-long v2, p1, v0 if-nez v2, :cond_0 const/16 p1, 0x30 .line 1693 invoke-virtual {p0, p1}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; move-result-object p0 goto/16 :goto_3 :cond_0 const/4 v3, 0x1 if-gez v2, :cond_2 neg-long p1, p1 cmp-long v2, p1, v0 if-gez v2, :cond_1 const-string p1, "-9223372036854775808" .line 1700 invoke-virtual {p0, p1}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;)Lokio/Buffer; move-result-object p0 goto/16 :goto_3 :cond_1 move v2, v3 goto :goto_0 :cond_2 const/4 v2, 0x0 :goto_0 const-wide/32 v4, 0x5f5e100 cmp-long v4, p1, v4 const/16 v5, 0xa if-gez v4, :cond_a const-wide/16 v6, 0x2710 cmp-long v4, p1, v6 if-gez v4, :cond_6 const-wide/16 v6, 0x64 cmp-long v4, p1, v6 if-gez v4, :cond_4 const-wide/16 v6, 0xa cmp-long v4, p1, v6 if-gez v4, :cond_3 goto/16 :goto_1 :cond_3 const/4 v3, 0x2 goto/16 :goto_1 :cond_4 const-wide/16 v3, 0x3e8 cmp-long v3, p1, v3 if-gez v3, :cond_5 const/4 v3, 0x3 goto/16 :goto_1 :cond_5 const/4 v3, 0x4 goto/16 :goto_1 :cond_6 const-wide/32 v3, 0xf4240 cmp-long v3, p1, v3 if-gez v3, :cond_8 const-wide/32 v3, 0x186a0 cmp-long v3, p1, v3 if-gez v3, :cond_7 const/4 v3, 0x5 goto/16 :goto_1 :cond_7 const/4 v3, 0x6 goto/16 :goto_1 :cond_8 const-wide/32 v3, 0x989680 cmp-long v3, p1, v3 if-gez v3, :cond_9 const/4 v3, 0x7 goto/16 :goto_1 :cond_9 const/16 v3, 0x8 goto/16 :goto_1 :cond_a const-wide v3, 0xe8d4a51000L cmp-long v3, p1, v3 if-gez v3, :cond_e const-wide v3, 0x2540be400L cmp-long v3, p1, v3 if-gez v3, :cond_c const-wide/32 v3, 0x3b9aca00 cmp-long v3, p1, v3 if-gez v3, :cond_b const/16 v3, 0x9 goto :goto_1 :cond_b move v3, v5 goto :goto_1 :cond_c const-wide v3, 0x174876e800L cmp-long v3, p1, v3 if-gez v3, :cond_d const/16 v3, 0xb goto :goto_1 :cond_d const/16 v3, 0xc goto :goto_1 :cond_e const-wide v3, 0x38d7ea4c68000L cmp-long v3, p1, v3 if-gez v3, :cond_11 const-wide v3, 0x9184e72a000L cmp-long v3, p1, v3 if-gez v3, :cond_f const/16 v3, 0xd goto :goto_1 :cond_f const-wide v3, 0x5af3107a4000L cmp-long v3, p1, v3 if-gez v3, :cond_10 const/16 v3, 0xe goto :goto_1 :cond_10 const/16 v3, 0xf goto :goto_1 :cond_11 const-wide v3, 0x16345785d8a0000L cmp-long v3, p1, v3 if-gez v3, :cond_13 const-wide v3, 0x2386f26fc10000L cmp-long v3, p1, v3 if-gez v3, :cond_12 const/16 v3, 0x10 goto :goto_1 :cond_12 const/16 v3, 0x11 goto :goto_1 :cond_13 const-wide v3, 0xde0b6b3a7640000L cmp-long v3, p1, v3 if-gez v3, :cond_14 const/16 v3, 0x12 goto :goto_1 :cond_14 const/16 v3, 0x13 :goto_1 if-eqz v2, :cond_15 add-int/lit8 v3, v3, 0x1 .line 1738 :cond_15 invoke-virtual {p0, v3}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v4 .line 1739 iget-object v6, v4, Lokio/Segment;->data:[B .line 1740 iget v7, v4, Lokio/Segment;->limit:I add-int/2addr v7, v3 :goto_2 cmp-long v8, p1, v0 if-eqz v8, :cond_16 int-to-long v8, v5 .line 1742 rem-long v10, p1, v8 long-to-int v10, v10 add-int/lit8 v7, v7, -0x1 .line 1743 invoke-static {}, Lokio/internal/BufferKt;->getHEX_DIGIT_BYTES()[B move-result-object v11 aget-byte v10, v11, v10 aput-byte v10, v6, v7 .line 1744 div-long/2addr p1, v8 goto :goto_2 :cond_16 if-eqz v2, :cond_17 add-int/lit8 v7, v7, -0x1 const/16 p1, 0x2d int-to-byte p1, p1 .line 1747 aput-byte p1, v6, v7 .line 1750 :cond_17 iget p1, v4, Lokio/Segment;->limit:I add-int/2addr p1, v3 iput p1, v4, Lokio/Segment;->limit:I .line 1751 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide p1 int-to-long v0, v3 add-long/2addr p1, v0 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->setSize$okio(J)V :goto_3 return-object p0 .end method .method public bridge synthetic writeDecimalLong(J)Lokio/BufferedSink; .locals 0 .line 69 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->writeDecimalLong(J)Lokio/Buffer; move-result-object p0 check-cast p0, Lokio/BufferedSink; return-object p0 .end method .method public writeHexadecimalUnsignedLong(J)Lokio/Buffer; .locals 12 const-wide/16 v0, 0x0 cmp-long v0, p1, v0 if-nez v0, :cond_0 const/16 p1, 0x30 .line 1756 invoke-virtual {p0, p1}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; move-result-object p0 goto :goto_1 :cond_0 const/4 v0, 0x1 ushr-long v1, p1, v0 or-long/2addr v1, p1 const/4 v3, 0x2 ushr-long v4, v1, v3 or-long/2addr v1, v4 const/4 v4, 0x4 ushr-long v5, v1, v4 or-long/2addr v1, v5 const/16 v5, 0x8 ushr-long v6, v1, v5 or-long/2addr v1, v6 const/16 v6, 0x10 ushr-long v7, v1, v6 or-long/2addr v1, v7 const/16 v7, 0x20 ushr-long v8, v1, v7 or-long/2addr v1, v8 ushr-long v8, v1, v0 const-wide v10, 0x5555555555555555L # 1.1945305291614955E103 and-long/2addr v8, v10 sub-long/2addr v1, v8 ushr-long v8, v1, v3 const-wide v10, 0x3333333333333333L # 4.667261458395856E-62 and-long/2addr v8, v10 and-long/2addr v1, v10 add-long/2addr v8, v1 ushr-long v1, v8, v4 add-long/2addr v1, v8 const-wide v8, 0xf0f0f0f0f0f0f0fL # 3.815736827118017E-236 and-long/2addr v1, v8 ushr-long v8, v1, v5 add-long/2addr v1, v8 ushr-long v5, v1, v6 add-long/2addr v1, v5 const-wide/16 v5, 0x3f and-long v8, v1, v5 ushr-long/2addr v1, v7 and-long/2addr v1, v5 add-long/2addr v8, v1 const/4 v1, 0x3 int-to-long v1, v1 add-long/2addr v8, v1 int-to-long v1, v4 .line 1779 div-long/2addr v8, v1 long-to-int v1, v8 .line 1781 invoke-virtual {p0, v1}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v2 .line 1782 iget-object v3, v2, Lokio/Segment;->data:[B .line 1783 iget v5, v2, Lokio/Segment;->limit:I add-int/2addr v5, v1 sub-int/2addr v5, v0 .line 1784 iget v0, v2, Lokio/Segment;->limit:I :goto_0 if-lt v5, v0, :cond_1 .line 1786 invoke-static {}, Lokio/internal/BufferKt;->getHEX_DIGIT_BYTES()[B move-result-object v6 const-wide/16 v7, 0xf and-long/2addr v7, p1 long-to-int v7, v7 aget-byte v6, v6, v7 aput-byte v6, v3, v5 ushr-long/2addr p1, v4 add-int/lit8 v5, v5, -0x1 goto :goto_0 .line 1790 :cond_1 iget p1, v2, Lokio/Segment;->limit:I add-int/2addr p1, v1 iput p1, v2, Lokio/Segment;->limit:I .line 1791 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide p1 int-to-long v0, v1 add-long/2addr p1, v0 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->setSize$okio(J)V :goto_1 return-object p0 .end method .method public bridge synthetic writeHexadecimalUnsignedLong(J)Lokio/BufferedSink; .locals 0 .line 69 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->writeHexadecimalUnsignedLong(J)Lokio/Buffer; move-result-object p0 check-cast p0, Lokio/BufferedSink; return-object p0 .end method .method public writeInt(I)Lokio/Buffer; .locals 7 const/4 v0, 0x4 .line 1666 invoke-virtual {p0, v0}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v1 .line 1667 iget-object v2, v1, Lokio/Segment;->data:[B .line 1668 iget v3, v1, Lokio/Segment;->limit:I add-int/lit8 v4, v3, 0x1 ushr-int/lit8 v5, p1, 0x18 and-int/lit16 v5, v5, 0xff int-to-byte v5, v5 .line 1669 aput-byte v5, v2, v3 add-int/lit8 v5, v3, 0x2 ushr-int/lit8 v6, p1, 0x10 and-int/lit16 v6, v6, 0xff int-to-byte v6, v6 .line 1670 aput-byte v6, v2, v4 add-int/lit8 v4, v3, 0x3 ushr-int/lit8 v6, p1, 0x8 and-int/lit16 v6, v6, 0xff int-to-byte v6, v6 .line 1671 aput-byte v6, v2, v5 add-int/2addr v3, v0 and-int/lit16 p1, p1, 0xff int-to-byte p1, p1 .line 1672 aput-byte p1, v2, v4 .line 1673 iput v3, v1, Lokio/Segment;->limit:I .line 1674 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 const-wide/16 v2, 0x4 add-long/2addr v0, v2 invoke-virtual {p0, v0, v1}, Lokio/Buffer;->setSize$okio(J)V return-object p0 .end method .method public bridge synthetic writeInt(I)Lokio/BufferedSink; .locals 0 .line 69 invoke-virtual {p0, p1}, Lokio/Buffer;->writeInt(I)Lokio/Buffer; move-result-object p0 check-cast p0, Lokio/BufferedSink; return-object p0 .end method .method public writeIntLe(I)Lokio/Buffer; .locals 0 .line 440 invoke-static {p1}, Lokio/-Util;->reverseBytes(I)I move-result p1 invoke-virtual {p0, p1}, Lokio/Buffer;->writeInt(I)Lokio/Buffer; move-result-object p0 return-object p0 .end method .method public bridge synthetic writeIntLe(I)Lokio/BufferedSink; .locals 0 .line 69 invoke-virtual {p0, p1}, Lokio/Buffer;->writeIntLe(I)Lokio/Buffer; move-result-object p0 check-cast p0, Lokio/BufferedSink; return-object p0 .end method .method public writeLong(J)Lokio/Buffer; .locals 11 const/16 v0, 0x8 .line 1676 invoke-virtual {p0, v0}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v1 .line 1677 iget-object v2, v1, Lokio/Segment;->data:[B .line 1678 iget v3, v1, Lokio/Segment;->limit:I add-int/lit8 v4, v3, 0x1 const/16 v5, 0x38 ushr-long v5, p1, v5 const-wide/16 v7, 0xff and-long/2addr v5, v7 long-to-int v5, v5 int-to-byte v5, v5 .line 1679 aput-byte v5, v2, v3 add-int/lit8 v5, v3, 0x2 const/16 v6, 0x30 ushr-long v9, p1, v6 and-long/2addr v9, v7 long-to-int v6, v9 int-to-byte v6, v6 .line 1680 aput-byte v6, v2, v4 add-int/lit8 v4, v3, 0x3 const/16 v6, 0x28 ushr-long v9, p1, v6 and-long/2addr v9, v7 long-to-int v6, v9 int-to-byte v6, v6 .line 1681 aput-byte v6, v2, v5 add-int/lit8 v5, v3, 0x4 const/16 v6, 0x20 ushr-long v9, p1, v6 and-long/2addr v9, v7 long-to-int v6, v9 int-to-byte v6, v6 .line 1682 aput-byte v6, v2, v4 add-int/lit8 v4, v3, 0x5 const/16 v6, 0x18 ushr-long v9, p1, v6 and-long/2addr v9, v7 long-to-int v6, v9 int-to-byte v6, v6 .line 1683 aput-byte v6, v2, v5 add-int/lit8 v5, v3, 0x6 const/16 v6, 0x10 ushr-long v9, p1, v6 and-long/2addr v9, v7 long-to-int v6, v9 int-to-byte v6, v6 .line 1684 aput-byte v6, v2, v4 add-int/lit8 v4, v3, 0x7 ushr-long v9, p1, v0 and-long/2addr v9, v7 long-to-int v6, v9 int-to-byte v6, v6 .line 1685 aput-byte v6, v2, v5 add-int/2addr v3, v0 and-long/2addr p1, v7 long-to-int p1, p1 int-to-byte p1, p1 .line 1686 aput-byte p1, v2, v4 .line 1687 iput v3, v1, Lokio/Segment;->limit:I .line 1688 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide p1 const-wide/16 v0, 0x8 add-long/2addr p1, v0 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->setSize$okio(J)V return-object p0 .end method .method public bridge synthetic writeLong(J)Lokio/BufferedSink; .locals 0 .line 69 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->writeLong(J)Lokio/Buffer; move-result-object p0 check-cast p0, Lokio/BufferedSink; return-object p0 .end method .method public writeLongLe(J)Lokio/Buffer; .locals 0 .line 444 invoke-static {p1, p2}, Lokio/-Util;->reverseBytes(J)J move-result-wide p1 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->writeLong(J)Lokio/Buffer; move-result-object p0 return-object p0 .end method .method public bridge synthetic writeLongLe(J)Lokio/BufferedSink; .locals 0 .line 69 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->writeLongLe(J)Lokio/Buffer; move-result-object p0 check-cast p0, Lokio/BufferedSink; return-object p0 .end method .method public writeShort(I)Lokio/Buffer; .locals 6 const/4 v0, 0x2 .line 1658 invoke-virtual {p0, v0}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v1 .line 1659 iget-object v2, v1, Lokio/Segment;->data:[B .line 1660 iget v3, v1, Lokio/Segment;->limit:I add-int/lit8 v4, v3, 0x1 ushr-int/lit8 v5, p1, 0x8 and-int/lit16 v5, v5, 0xff int-to-byte v5, v5 .line 1661 aput-byte v5, v2, v3 add-int/2addr v3, v0 and-int/lit16 p1, p1, 0xff int-to-byte p1, p1 .line 1662 aput-byte p1, v2, v4 .line 1663 iput v3, v1, Lokio/Segment;->limit:I .line 1664 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 const-wide/16 v2, 0x2 add-long/2addr v0, v2 invoke-virtual {p0, v0, v1}, Lokio/Buffer;->setSize$okio(J)V return-object p0 .end method .method public bridge synthetic writeShort(I)Lokio/BufferedSink; .locals 0 .line 69 invoke-virtual {p0, p1}, Lokio/Buffer;->writeShort(I)Lokio/Buffer; move-result-object p0 check-cast p0, Lokio/BufferedSink; return-object p0 .end method .method public writeShortLe(I)Lokio/Buffer; .locals 0 int-to-short p1, p1 .line 436 invoke-static {p1}, Lokio/-Util;->reverseBytes(S)S move-result p1 invoke-virtual {p0, p1}, Lokio/Buffer;->writeShort(I)Lokio/Buffer; move-result-object p0 return-object p0 .end method .method public bridge synthetic writeShortLe(I)Lokio/BufferedSink; .locals 0 .line 69 invoke-virtual {p0, p1}, Lokio/Buffer;->writeShortLe(I)Lokio/Buffer; move-result-object p0 check-cast p0, Lokio/BufferedSink; return-object p0 .end method .method public writeString(Ljava/lang/String;IILjava/nio/charset/Charset;)Lokio/Buffer; .locals 3 const-string v0, "string" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "charset" invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x1 const/4 v1, 0x0 if-ltz p2, :cond_0 move v2, v0 goto :goto_0 :cond_0 move v2, v1 :goto_0 if-eqz v2, :cond_7 if-lt p3, p2, :cond_1 move v2, v0 goto :goto_1 :cond_1 move v2, v1 :goto_1 if-eqz v2, :cond_6 .line 393 invoke-virtual {p1}, Ljava/lang/String;->length()I move-result v2 if-gt p3, v2, :cond_2 goto :goto_2 :cond_2 move v0, v1 :goto_2 if-eqz v0, :cond_5 .line 394 sget-object v0, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset; invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_3 invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;II)Lokio/Buffer; move-result-object p0 return-object p0 .line 395 :cond_3 invoke-virtual {p1, p2, p3}, Ljava/lang/String;->substring(II)Ljava/lang/String; move-result-object p1 const-string p2, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)" invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V if-eqz p1, :cond_4 invoke-virtual {p1, p4}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B move-result-object p1 const-string p2, "(this as java.lang.String).getBytes(charset)" invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V .line 396 array-length p2, p1 invoke-virtual {p0, p1, v1, p2}, Lokio/Buffer;->write([BII)Lokio/Buffer; move-result-object p0 return-object p0 .line 395 :cond_4 new-instance p0, Ljava/lang/NullPointerException; const-string p1, "null cannot be cast to non-null type java.lang.String" invoke-direct {p0, p1}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V throw p0 .line 393 :cond_5 new-instance p0, Ljava/lang/StringBuilder; const-string p2, "endIndex > string.length: " invoke-direct {p0, p2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p0, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p0 const-string p2, " > " invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p1}, Ljava/lang/String;->length()I move-result p1 invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(I)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 392 :cond_6 new-instance p0, Ljava/lang/StringBuilder; const-string p1, "endIndex < beginIndex: " invoke-direct {p0, p1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p0, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p0 const-string p1, " < " invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(I)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 391 :cond_7 new-instance p0, Ljava/lang/StringBuilder; const-string p1, "beginIndex < 0: " invoke-direct {p0, p1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(I)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 writeString(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/Buffer; .locals 2 const-string v0, "string" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "charset" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x0 .line 382 invoke-virtual {p1}, Ljava/lang/String;->length()I move-result v1 invoke-virtual {p0, p1, v0, v1, p2}, Lokio/Buffer;->writeString(Ljava/lang/String;IILjava/nio/charset/Charset;)Lokio/Buffer; move-result-object p0 return-object p0 .end method .method public bridge synthetic writeString(Ljava/lang/String;IILjava/nio/charset/Charset;)Lokio/BufferedSink; .locals 0 .line 69 invoke-virtual {p0, p1, p2, p3, p4}, Lokio/Buffer;->writeString(Ljava/lang/String;IILjava/nio/charset/Charset;)Lokio/Buffer; move-result-object p0 check-cast p0, Lokio/BufferedSink; return-object p0 .end method .method public bridge synthetic writeString(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/BufferedSink; .locals 0 .line 69 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->writeString(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/Buffer; move-result-object p0 check-cast p0, Lokio/BufferedSink; return-object p0 .end method .method public final writeTo(Ljava/io/OutputStream;)Lokio/Buffer; .locals 6 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-wide/16 v2, 0x0 const/4 v4, 0x2 const/4 v5, 0x0 move-object v0, p0 move-object v1, p1 invoke-static/range {v0 .. v5}, Lokio/Buffer;->writeTo$default(Lokio/Buffer;Ljava/io/OutputStream;JILjava/lang/Object;)Lokio/Buffer; move-result-object p0 return-object p0 .end method .method public final writeTo(Ljava/io/OutputStream;J)Lokio/Buffer; .locals 7 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "out" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-wide v1, p0, Lokio/Buffer;->size:J const-wide/16 v3, 0x0 move-wide v5, p2 .line 186 invoke-static/range {v1 .. v6}, Lokio/-Util;->checkOffsetAndCount(JJJ)V iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; :cond_0 :goto_0 const-wide/16 v1, 0x0 cmp-long v1, p2, v1 if-lez v1, :cond_1 .line 190 invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V iget v1, v0, Lokio/Segment;->limit:I iget v2, v0, Lokio/Segment;->pos:I sub-int/2addr v1, v2 int-to-long v1, v1 .line 1053 invoke-static {p2, p3, v1, v2}, Ljava/lang/Math;->min(JJ)J move-result-wide v1 long-to-int v1, v1 .line 191 iget-object v2, v0, Lokio/Segment;->data:[B iget v3, v0, Lokio/Segment;->pos:I invoke-virtual {p1, v2, v3, v1}, Ljava/io/OutputStream;->write([BII)V .line 193 iget v2, v0, Lokio/Segment;->pos:I add-int/2addr v2, v1 iput v2, v0, Lokio/Segment;->pos:I iget-wide v2, p0, Lokio/Buffer;->size:J int-to-long v4, v1 sub-long/2addr v2, v4 iput-wide v2, p0, Lokio/Buffer;->size:J sub-long/2addr p2, v4 .line 197 iget v1, v0, Lokio/Segment;->pos:I iget v2, v0, Lokio/Segment;->limit:I if-ne v1, v2, :cond_0 .line 199 invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment; move-result-object v1 iput-object v1, p0, Lokio/Buffer;->head:Lokio/Segment; .line 201 invoke-static {v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V move-object v0, v1 goto :goto_0 :cond_1 return-object p0 .end method .method public writeUtf8(Ljava/lang/String;)Lokio/Buffer; .locals 2 const-string v0, "string" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x0 .line 374 invoke-virtual {p1}, Ljava/lang/String;->length()I move-result v1 invoke-virtual {p0, p1, v0, v1}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;II)Lokio/Buffer; move-result-object p0 return-object p0 .end method .method public writeUtf8(Ljava/lang/String;II)Lokio/Buffer; .locals 12 const-string v0, "string" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x0 const/4 v1, 0x1 if-ltz p2, :cond_0 move v2, v1 goto :goto_0 :cond_0 move v2, v0 :goto_0 if-eqz v2, :cond_f if-lt p3, p2, :cond_1 move v2, v1 goto :goto_1 :cond_1 move v2, v0 :goto_1 if-eqz v2, :cond_e .line 1484 invoke-virtual {p1}, Ljava/lang/String;->length()I move-result v2 if-gt p3, v2, :cond_2 move v2, v1 goto :goto_2 :cond_2 move v2, v0 :goto_2 if-eqz v2, :cond_d :goto_3 if-ge p2, p3, :cond_c .line 1489 invoke-virtual {p1, p2}, Ljava/lang/String;->charAt(I)C move-result v2 const/16 v3, 0x80 if-ge v2, v3, :cond_5 .line 1493 invoke-virtual {p0, v1}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v4 .line 1494 iget-object v5, v4, Lokio/Segment;->data:[B .line 1495 iget v6, v4, Lokio/Segment;->limit:I sub-int/2addr v6, p2 rsub-int v7, v6, 0x2000 .line 1496 invoke-static {p3, v7}, Ljava/lang/Math;->min(II)I move-result v7 add-int/lit8 v8, p2, 0x1 add-int/2addr p2, v6 int-to-byte v2, v2 .line 1499 aput-byte v2, v5, p2 :goto_4 if-ge v8, v7, :cond_4 .line 1504 invoke-virtual {p1, v8}, Ljava/lang/String;->charAt(I)C move-result p2 if-lt p2, v3, :cond_3 goto :goto_5 :cond_3 add-int/lit8 v2, v8, 0x1 add-int/2addr v8, v6 int-to-byte p2, p2 .line 1506 aput-byte p2, v5, v8 move v8, v2 goto :goto_4 :cond_4 :goto_5 add-int/2addr v6, v8 .line 1509 iget p2, v4, Lokio/Segment;->limit:I sub-int/2addr v6, p2 .line 1510 iget p2, v4, Lokio/Segment;->limit:I add-int/2addr p2, v6 iput p2, v4, Lokio/Segment;->limit:I .line 1511 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v2 int-to-long v4, v6 add-long/2addr v2, v4 invoke-virtual {p0, v2, v3}, Lokio/Buffer;->setSize$okio(J)V :goto_6 move p2, v8 goto :goto_3 :cond_5 const/16 v4, 0x800 const/4 v5, 0x2 if-ge v2, v4, :cond_6 .line 1516 invoke-virtual {p0, v5}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v4 .line 1518 iget-object v6, v4, Lokio/Segment;->data:[B iget v7, v4, Lokio/Segment;->limit:I shr-int/lit8 v8, v2, 0x6 or-int/lit16 v8, v8, 0xc0 int-to-byte v8, v8 aput-byte v8, v6, v7 .line 1519 iget-object v6, v4, Lokio/Segment;->data:[B iget v7, v4, Lokio/Segment;->limit:I add-int/2addr v7, v1 and-int/lit8 v2, v2, 0x3f or-int/2addr v2, v3 int-to-byte v2, v2 aput-byte v2, v6, v7 .line 1521 iget v2, v4, Lokio/Segment;->limit:I add-int/2addr v2, v5 iput v2, v4, Lokio/Segment;->limit:I .line 1522 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v2 const-wide/16 v4, 0x2 add-long/2addr v2, v4 invoke-virtual {p0, v2, v3}, Lokio/Buffer;->setSize$okio(J)V :goto_7 add-int/lit8 p2, p2, 0x1 goto :goto_3 :cond_6 const v4, 0xd800 const/4 v6, 0x3 const/16 v7, 0x3f if-lt v2, v4, :cond_b const v4, 0xdfff if-le v2, v4, :cond_7 goto :goto_a :cond_7 add-int/lit8 v8, p2, 0x1 if-ge v8, p3, :cond_8 .line 1543 invoke-virtual {p1, v8}, Ljava/lang/String;->charAt(I)C move-result v9 goto :goto_8 :cond_8 move v9, v0 :goto_8 const v10, 0xdbff if-gt v2, v10, :cond_a const v10, 0xdc00 if-gt v10, v9, :cond_a if-ge v4, v9, :cond_9 goto :goto_9 :cond_9 and-int/lit16 v2, v2, 0x3ff shl-int/lit8 v2, v2, 0xa and-int/lit16 v4, v9, 0x3ff or-int/2addr v2, v4 const/high16 v4, 0x10000 add-int/2addr v2, v4 const/4 v4, 0x4 .line 1554 invoke-virtual {p0, v4}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v8 .line 1556 iget-object v9, v8, Lokio/Segment;->data:[B iget v10, v8, Lokio/Segment;->limit:I shr-int/lit8 v11, v2, 0x12 or-int/lit16 v11, v11, 0xf0 int-to-byte v11, v11 aput-byte v11, v9, v10 .line 1557 iget-object v9, v8, Lokio/Segment;->data:[B iget v10, v8, Lokio/Segment;->limit:I add-int/2addr v10, v1 shr-int/lit8 v11, v2, 0xc and-int/2addr v11, v7 or-int/2addr v11, v3 int-to-byte v11, v11 aput-byte v11, v9, v10 .line 1558 iget-object v9, v8, Lokio/Segment;->data:[B iget v10, v8, Lokio/Segment;->limit:I add-int/2addr v10, v5 shr-int/lit8 v5, v2, 0x6 and-int/2addr v5, v7 or-int/2addr v5, v3 int-to-byte v5, v5 aput-byte v5, v9, v10 .line 1559 iget-object v5, v8, Lokio/Segment;->data:[B iget v9, v8, Lokio/Segment;->limit:I add-int/2addr v9, v6 and-int/2addr v2, v7 or-int/2addr v2, v3 int-to-byte v2, v2 aput-byte v2, v5, v9 .line 1561 iget v2, v8, Lokio/Segment;->limit:I add-int/2addr v2, v4 iput v2, v8, Lokio/Segment;->limit:I .line 1562 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v2 const-wide/16 v4, 0x4 add-long/2addr v2, v4 invoke-virtual {p0, v2, v3}, Lokio/Buffer;->setSize$okio(J)V add-int/lit8 p2, p2, 0x2 goto/16 :goto_3 .line 1545 :cond_a :goto_9 invoke-virtual {p0, v7}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; goto/16 :goto_6 .line 1528 :cond_b :goto_a invoke-virtual {p0, v6}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v4 .line 1530 iget-object v8, v4, Lokio/Segment;->data:[B iget v9, v4, Lokio/Segment;->limit:I shr-int/lit8 v10, v2, 0xc or-int/lit16 v10, v10, 0xe0 int-to-byte v10, v10 aput-byte v10, v8, v9 .line 1531 iget-object v8, v4, Lokio/Segment;->data:[B iget v9, v4, Lokio/Segment;->limit:I add-int/2addr v9, v1 shr-int/lit8 v10, v2, 0x6 and-int/2addr v7, v10 or-int/2addr v7, v3 int-to-byte v7, v7 aput-byte v7, v8, v9 .line 1532 iget-object v7, v4, Lokio/Segment;->data:[B iget v8, v4, Lokio/Segment;->limit:I add-int/2addr v8, v5 and-int/lit8 v2, v2, 0x3f or-int/2addr v2, v3 int-to-byte v2, v2 aput-byte v2, v7, v8 .line 1534 iget v2, v4, Lokio/Segment;->limit:I add-int/2addr v2, v6 iput v2, v4, Lokio/Segment;->limit:I .line 1535 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v2 const-wide/16 v4, 0x3 add-long/2addr v2, v4 invoke-virtual {p0, v2, v3}, Lokio/Buffer;->setSize$okio(J)V goto/16 :goto_7 :cond_c return-object p0 .line 1484 :cond_d new-instance p0, Ljava/lang/StringBuilder; const-string p2, "endIndex > string.length: " invoke-direct {p0, p2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p0, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p0 const-string p2, " > " invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p1}, Ljava/lang/String;->length()I move-result p1 invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(I)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 1483 :cond_e new-instance p0, Ljava/lang/StringBuilder; const-string p1, "endIndex < beginIndex: " invoke-direct {p0, p1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p0, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p0 const-string p1, " < " invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(I)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 1481 :cond_f new-instance p0, Ljava/lang/StringBuilder; const-string p1, "beginIndex < 0: " invoke-direct {p0, p1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p0, p2}, Ljava/lang/StringBuilder;->append(I)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 bridge synthetic writeUtf8(Ljava/lang/String;)Lokio/BufferedSink; .locals 0 .line 69 invoke-virtual {p0, p1}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;)Lokio/Buffer; move-result-object p0 check-cast p0, Lokio/BufferedSink; return-object p0 .end method .method public bridge synthetic writeUtf8(Ljava/lang/String;II)Lokio/BufferedSink; .locals 0 .line 69 invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;II)Lokio/Buffer; move-result-object p0 check-cast p0, Lokio/BufferedSink; return-object p0 .end method .method public writeUtf8CodePoint(I)Lokio/Buffer; .locals 9 const/16 v0, 0x80 if-ge p1, v0, :cond_0 .line 1573 invoke-virtual {p0, p1}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; goto/16 :goto_1 :cond_0 const/16 v1, 0x800 const/4 v2, 0x2 const/16 v3, 0x3f if-ge p1, v1, :cond_1 .line 1577 invoke-virtual {p0, v2}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v1 .line 1579 iget-object v4, v1, Lokio/Segment;->data:[B iget v5, v1, Lokio/Segment;->limit:I shr-int/lit8 v6, p1, 0x6 or-int/lit16 v6, v6, 0xc0 int-to-byte v6, v6 aput-byte v6, v4, v5 .line 1580 iget-object v4, v1, Lokio/Segment;->data:[B iget v5, v1, Lokio/Segment;->limit:I add-int/lit8 v5, v5, 0x1 and-int/2addr p1, v3 or-int/2addr p1, v0 int-to-byte p1, p1 aput-byte p1, v4, v5 .line 1582 iget p1, v1, Lokio/Segment;->limit:I add-int/2addr p1, v2 iput p1, v1, Lokio/Segment;->limit:I .line 1583 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 const-wide/16 v2, 0x2 add-long/2addr v0, v2 invoke-virtual {p0, v0, v1}, Lokio/Buffer;->setSize$okio(J)V goto/16 :goto_1 :cond_1 const v1, 0xd800 if-le v1, p1, :cond_2 goto :goto_0 :cond_2 const v1, 0xdfff if-lt v1, p1, :cond_3 .line 1587 invoke-virtual {p0, v3}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; goto/16 :goto_1 :cond_3 :goto_0 const/high16 v1, 0x10000 const/4 v4, 0x3 if-ge p1, v1, :cond_4 .line 1591 invoke-virtual {p0, v4}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v1 .line 1593 iget-object v5, v1, Lokio/Segment;->data:[B iget v6, v1, Lokio/Segment;->limit:I shr-int/lit8 v7, p1, 0xc or-int/lit16 v7, v7, 0xe0 int-to-byte v7, v7 aput-byte v7, v5, v6 .line 1594 iget-object v5, v1, Lokio/Segment;->data:[B iget v6, v1, Lokio/Segment;->limit:I add-int/lit8 v6, v6, 0x1 shr-int/lit8 v7, p1, 0x6 and-int/2addr v7, v3 or-int/2addr v7, v0 int-to-byte v7, v7 aput-byte v7, v5, v6 .line 1595 iget-object v5, v1, Lokio/Segment;->data:[B iget v6, v1, Lokio/Segment;->limit:I add-int/2addr v6, v2 and-int/2addr p1, v3 or-int/2addr p1, v0 int-to-byte p1, p1 aput-byte p1, v5, v6 .line 1597 iget p1, v1, Lokio/Segment;->limit:I add-int/2addr p1, v4 iput p1, v1, Lokio/Segment;->limit:I .line 1598 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 const-wide/16 v2, 0x3 add-long/2addr v0, v2 invoke-virtual {p0, v0, v1}, Lokio/Buffer;->setSize$okio(J)V goto :goto_1 :cond_4 const v1, 0x10ffff if-gt p1, v1, :cond_5 const/4 v1, 0x4 .line 1602 invoke-virtual {p0, v1}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v5 .line 1604 iget-object v6, v5, Lokio/Segment;->data:[B iget v7, v5, Lokio/Segment;->limit:I shr-int/lit8 v8, p1, 0x12 or-int/lit16 v8, v8, 0xf0 int-to-byte v8, v8 aput-byte v8, v6, v7 .line 1605 iget-object v6, v5, Lokio/Segment;->data:[B iget v7, v5, Lokio/Segment;->limit:I add-int/lit8 v7, v7, 0x1 shr-int/lit8 v8, p1, 0xc and-int/2addr v8, v3 or-int/2addr v8, v0 int-to-byte v8, v8 aput-byte v8, v6, v7 .line 1606 iget-object v6, v5, Lokio/Segment;->data:[B iget v7, v5, Lokio/Segment;->limit:I add-int/2addr v7, v2 shr-int/lit8 v2, p1, 0x6 and-int/2addr v2, v3 or-int/2addr v2, v0 int-to-byte v2, v2 aput-byte v2, v6, v7 .line 1607 iget-object v2, v5, Lokio/Segment;->data:[B iget v6, v5, Lokio/Segment;->limit:I add-int/2addr v6, v4 and-int/2addr p1, v3 or-int/2addr p1, v0 int-to-byte p1, p1 aput-byte p1, v2, v6 .line 1609 iget p1, v5, Lokio/Segment;->limit:I add-int/2addr p1, v1 iput p1, v5, Lokio/Segment;->limit:I .line 1610 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 const-wide/16 v2, 0x4 add-long/2addr v0, v2 invoke-virtual {p0, v0, v1}, Lokio/Buffer;->setSize$okio(J)V :goto_1 return-object p0 .line 1613 :cond_5 new-instance p0, Ljava/lang/IllegalArgumentException; new-instance v0, Ljava/lang/StringBuilder; const-string v1, "Unexpected code point: 0x" invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-static {p1}, Lokio/-Util;->toHexString(I)Ljava/lang/String; move-result-object p1 invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public bridge synthetic writeUtf8CodePoint(I)Lokio/BufferedSink; .locals 0 .line 69 invoke-virtual {p0, p1}, Lokio/Buffer;->writeUtf8CodePoint(I)Lokio/Buffer; move-result-object p0 check-cast p0, Lokio/BufferedSink; return-object p0 .end method