.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*L\n1#1,1019:1\n78#2:1020\n75#2:1053\n75#2:1054\n66#2:1114\n66#2:1115\n66#2:1121\n66#2:1122\n66#2:1142\n66#2:1144\n66#2:1146\n66#2:1148\n66#2:1151\n66#2:1153\n66#2:1155\n66#2:1157\n72#2:1177\n72#2:1179\n69#2:1182\n69#2:1184\n69#2:1186\n69#2:1188\n69#2:1190\n69#2:1192\n69#2:1194\n69#2:1196\n78#2:1361\n66#2:1373\n66#2:1375\n66#2:1380\n66#2:1382\n66#2:1387\n66#2:1389\n66#2:1394\n66#2:1396\n66#2:1417\n66#2:1420\n75#2:1477\n78#2:1935\n78#2:1957\n78#2:1966\n237#3,32:1021\n272#3,10:1055\n285#3,18:1065\n399#3,2:1083\n105#3:1085\n401#3:1086\n107#3,18:1087\n306#3,9:1105\n315#3,5:1116\n320#3,10:1123\n333#3,9:1133\n342#3:1143\n343#3:1145\n344#3:1147\n347#3,2:1149\n349#3:1152\n350#3:1154\n351#3:1156\n352#3,10:1158\n365#3,9:1168\n374#3:1178\n377#3,2:1180\n379#3:1183\n380#3:1185\n381#3:1187\n382#3:1189\n383#3:1191\n384#3:1193\n385#3:1195\n386#3,10:1197\n636#3,56:1207\n695#3,55:1263\n752#3:1318\n755#3,7:1319\n766#3,7:1326\n776#3,6:1333\n784#3,5:1339\n816#3,6:1344\n826#3,11:1350\n837#3,2:1362\n842#3,9:1364\n852#3:1374\n853#3,4:1376\n858#3:1381\n859#3,4:1383\n864#3:1388\n865#3,4:1390\n870#3:1395\n871#3,20:1397\n892#3,2:1418\n895#3,18:1421\n590#3:1439\n593#3,6:1440\n601#3:1446\n604#3,7:1447\n613#3,17:1454\n405#3:1471\n408#3,5:1472\n413#3,10:1478\n426#3,5:1488\n429#3,2:1493\n917#3,88:1495\n1008#3,48:1583\n560#3:1631\n567#3,21:1632\n1059#3,7:1653\n1069#3,7:1660\n1079#3,4:1667\n1086#3,8:1671\n1097#3,10:1679\n1110#3,14:1689\n434#3,63:1703\n500#3,40:1766\n543#3,15:1806\n1127#3:1821\n1178#3,39:1822\n1219#3,6:1861\n1228#3,8:1867\n105#3:1875\n1236#3,22:1876\n107#3,18:1898\n1262#3,5:1916\n105#3:1921\n1267#3,13:1922\n1280#3,13:1936\n107#3,8:1949\n117#3,8:1958\n1297#3,4:1967\n105#3:1971\n1301#3,50:1972\n107#3,18:2022\n1360#3,13:2040\n1376#3,32:2053\n1411#3,12:2085\n1426#3,18:2097\n1448#3,2:2115\n1454#3,34:2117\n*E\n*S KotlinDebug\n*F\n+ 1 Buffer.kt\nokio/Buffer\n*L\n160#1:1020\n190#1:1053\n228#1:1054\n254#1:1114\n254#1:1115\n254#1:1121\n254#1:1122\n257#1:1142\n257#1:1144\n257#1:1146\n257#1:1148\n257#1:1151\n257#1:1153\n257#1:1155\n257#1:1157\n260#1:1177\n260#1:1179\n260#1:1182\n260#1:1184\n260#1:1186\n260#1:1188\n260#1:1190\n260#1:1192\n260#1:1194\n260#1:1196\n328#1:1361\n331#1:1373\n331#1:1375\n331#1:1380\n331#1:1382\n331#1:1387\n331#1:1389\n331#1:1394\n331#1:1396\n331#1:1417\n331#1:1420\n367#1:1477\n472#1:1935\n472#1:1957\n472#1:1966\n174#1,32:1021\n245#1,10:1055\n248#1,18:1065\n251#1,2:1083\n251#1:1085\n251#1:1086\n251#1,18:1087\n254#1,9:1105\n254#1,5:1116\n254#1,10:1123\n257#1,9:1133\n257#1:1143\n257#1:1145\n257#1:1147\n257#1,2:1149\n257#1:1152\n257#1:1154\n257#1:1156\n257#1,10:1158\n260#1,9:1168\n260#1:1178\n260#1,2:1180\n260#1:1183\n260#1:1185\n260#1:1187\n260#1:1189\n260#1:1191\n260#1:1193\n260#1:1195\n260#1,10:1197\n272#1,56:1207\n275#1,55:1263\n277#1:1318\n280#1,7:1319\n282#1,7:1326\n285#1,6:1333\n288#1,5:1339\n322#1,6:1344\n328#1,11:1350\n328#1,2:1362\n331#1,9:1364\n331#1:1374\n331#1,4:1376\n331#1:1381\n331#1,4:1383\n331#1:1388\n331#1,4:1390\n331#1:1395\n331#1,20:1397\n331#1,2:1418\n331#1,18:1421\n333#1:1439\n336#1,6:1440\n338#1:1446\n341#1,7:1447\n344#1,17:1454\n364#1:1471\n367#1,5:1472\n367#1,10:1478\n369#1,5:1488\n372#1,2:1493\n377#1,88:1495\n380#1,48:1583\n399#1:1631\n405#1,21:1632\n426#1,7:1653\n430#1,7:1660\n432#1,4:1667\n434#1,8:1671\n438#1,10:1679\n442#1,14:1689\n446#1,63:1703\n449#1,40:1766\n452#1,15:1806\n454#1:1821\n454#1,39:1822\n456#1,6:1861\n466#1,8:1867\n466#1:1875\n466#1,22:1876\n466#1,18:1898\n472#1,5:1916\n472#1:1921\n472#1,13:1922\n472#1,13:1936\n472#1,8:1949\n472#1,8:1958\n477#1,4:1967\n477#1:1971\n477#1,50:1972\n477#1,18:2022\n487#1,13:2040\n549#1,32:2053\n551#1,12:2085\n559#1,18:2097\n564#1,2:2115\n566#1,34:2117\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, 0x1, 0x10 } .end annotation # instance fields .field public head:Lokio/Segment; .field private size:J # direct methods .method public constructor ()V .registers 1 .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; .registers 14 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation and-int/lit8 p7, p6, 0x2 if-eqz p7, :cond_6 const-wide/16 p2, 0x0 :cond_6 move-wide v2, p2 and-int/lit8 p2, p6, 0x4 if-eqz p2, :cond_f .line 143 iget-wide p2, p0, Lokio/Buffer;->size:J sub-long p4, p2, v2 :cond_f 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; .registers 6 and-int/lit8 p4, p4, 0x2 if-eqz p4, :cond_6 const-wide/16 p2, 0x0 :cond_6 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; .registers 14 and-int/lit8 p6, p6, 0x2 if-eqz p6, :cond_6 const-wide/16 p2, 0x0 :cond_6 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; .registers 8 .line 510 invoke-static {p1}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest; move-result-object p1 .line 511 iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; if-eqz v0, :cond_31 .line 512 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 513 iget-object v1, v0, Lokio/Segment;->next:Lokio/Segment; if-nez v1, :cond_1b invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_1b :goto_1b if-eq v1, v0, :cond_31 .line 515 iget-object v2, v1, Lokio/Segment;->data:[B iget v3, v1, Lokio/Segment;->pos:I iget v4, v1, Lokio/Segment;->limit:I iget v5, v1, Lokio/Segment;->pos:I sub-int/2addr v4, v5 invoke-virtual {p1, v2, v3, v4}, Ljava/security/MessageDigest;->update([BII)V .line 516 iget-object v1, v1, Lokio/Segment;->next:Lokio/Segment; if-nez v1, :cond_1b invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V goto :goto_1b .line 519 :cond_31 new-instance v0, Lokio/ByteString; invoke-virtual {p1}, Ljava/security/MessageDigest;->digest()[B move-result-object p1 const-string v1, "messageDigest.digest()" invoke-static {p1, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-direct {v0, p1}, Lokio/ByteString;->([B)V return-object v0 .end method .method private final hmac(Ljava/lang/String;Lokio/ByteString;)Lokio/ByteString; .registers 8 .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 .line 535 iget-object p1, p0, Lokio/Buffer;->head:Lokio/Segment; if-eqz p1, :cond_3f .line 536 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 537 iget-object p2, p1, Lokio/Segment;->next:Lokio/Segment; if-nez p2, :cond_29 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_29 :goto_29 if-eq p2, p1, :cond_3f .line 539 iget-object v1, p2, Lokio/Segment;->data:[B iget v2, p2, Lokio/Segment;->pos:I iget v3, p2, Lokio/Segment;->limit:I iget v4, p2, Lokio/Segment;->pos:I sub-int/2addr v3, v4 invoke-virtual {v0, v1, v2, v3}, Ljavax/crypto/Mac;->update([BII)V .line 540 iget-object p2, p2, Lokio/Segment;->next:Lokio/Segment; if-nez p2, :cond_29 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V goto :goto_29 .line 543 :cond_3f new-instance p1, Lokio/ByteString; invoke-virtual {v0}, Ljavax/crypto/Mac;->doFinal()[B move-result-object p2 const-string v0, "mac.doFinal()" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-direct {p1, p2}, Lokio/ByteString;->([B)V :try_end_4d .catch Ljava/security/InvalidKeyException; {:try_start_0 .. :try_end_4d} :catch_4e return-object p1 :catch_4e move-exception p1 .line 545 new-instance p2, Ljava/lang/IllegalArgumentException; check-cast p1, Ljava/lang/Throwable; invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/Throwable;)V check-cast p2, Ljava/lang/Throwable; throw p2 .end method .method public static synthetic readAndWriteUnsafe$default(Lokio/Buffer;Lokio/Buffer$UnsafeCursor;ILjava/lang/Object;)Lokio/Buffer$UnsafeCursor; .registers 4 and-int/lit8 p2, p2, 0x1 if-eqz p2, :cond_9 .line 577 new-instance p1, Lokio/Buffer$UnsafeCursor; invoke-direct {p1}, Lokio/Buffer$UnsafeCursor;->()V :cond_9 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 .registers 9 .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_a if-eqz p4, :cond_9 goto :goto_a :cond_9 return-void :cond_a :goto_a 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 1054 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_40 .line 231 iget p1, v0, Lokio/Segment;->pos:I iget p2, v0, Lokio/Segment;->limit:I if-ne p1, p2, :cond_35 .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 sget-object p1, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool; invoke-virtual {p1, v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V :cond_35 if-eqz p4, :cond_38 return-void .line 237 :cond_38 new-instance p1, Ljava/io/EOFException; invoke-direct {p1}, Ljava/io/EOFException;->()V check-cast p1, Ljava/lang/Throwable; throw p1 .line 239 :cond_40 iget v2, v0, Lokio/Segment;->limit:I add-int/2addr v2, v1 iput v2, v0, Lokio/Segment;->limit:I .line 240 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; .registers 4 and-int/lit8 p2, p2, 0x1 if-eqz p2, :cond_9 .line 568 new-instance p1, Lokio/Buffer$UnsafeCursor; invoke-direct {p1}, Lokio/Buffer$UnsafeCursor;->()V :cond_9 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; .registers 6 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation and-int/lit8 p4, p4, 0x2 if-eqz p4, :cond_6 .line 184 iget-wide p2, p0, Lokio/Buffer;->size:J :cond_6 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 .registers 3 .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 p1 return p1 .end method .method public final -deprecated_size()J .registers 3 .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 .line 597 iget-wide v0, p0, Lokio/Buffer;->size:J return-wide v0 .end method .method public buffer()Lokio/Buffer; .registers 1 return-object p0 .end method .method public final clear()V .registers 3 .line 1471 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; .registers 2 .line 69 invoke-virtual {p0}, Lokio/Buffer;->clone()Lokio/Buffer; move-result-object v0 return-object v0 .end method .method public clone()Lokio/Buffer; .registers 2 .line 562 invoke-virtual {p0}, Lokio/Buffer;->copy()Lokio/Buffer; move-result-object v0 return-object v0 .end method .method public close()V .registers 1 return-void .end method .method public final completeSegmentByteCount()J .registers 6 .line 1055 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_b goto :goto_2b .line 1059 :cond_b iget-object v2, p0, Lokio/Buffer;->head:Lokio/Segment; if-nez v2, :cond_12 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_12 iget-object v2, v2, Lokio/Segment;->prev:Lokio/Segment; if-nez v2, :cond_19 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V .line 1060 :cond_19 iget v3, v2, Lokio/Segment;->limit:I const/16 v4, 0x2000 if-ge v3, v4, :cond_2a iget-boolean v3, v2, Lokio/Segment;->owner:Z if-eqz v3, :cond_2a .line 1061 iget v3, v2, Lokio/Segment;->limit:I iget v2, v2, Lokio/Segment;->pos:I sub-int/2addr v3, v2 int-to-long v2, v3 sub-long/2addr v0, v2 :cond_2a move-wide v2, v0 :goto_2b return-wide v2 .end method .method public final copy()Lokio/Buffer; .registers 7 .line 2097 new-instance v0, Lokio/Buffer; invoke-direct {v0}, Lokio/Buffer;->()V .line 2098 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_10 goto :goto_44 .line 2100 :cond_10 iget-object v1, p0, Lokio/Buffer;->head:Lokio/Segment; if-nez v1, :cond_17 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V .line 2101 :cond_17 invoke-virtual {v1}, Lokio/Segment;->sharedCopy()Lokio/Segment; move-result-object v2 .line 2103 iput-object v2, v0, Lokio/Buffer;->head:Lokio/Segment; .line 2104 iput-object v2, v2, Lokio/Segment;->prev:Lokio/Segment; .line 2105 iget-object v3, v2, Lokio/Segment;->prev:Lokio/Segment; iput-object v3, v2, Lokio/Segment;->next:Lokio/Segment; .line 2107 iget-object v3, v1, Lokio/Segment;->next:Lokio/Segment; :goto_25 if-eq v3, v1, :cond_3d .line 2109 iget-object v4, v2, Lokio/Segment;->prev:Lokio/Segment; if-nez v4, :cond_2e invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_2e if-nez v3, :cond_33 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_33 invoke-virtual {v3}, Lokio/Segment;->sharedCopy()Lokio/Segment; move-result-object v5 invoke-virtual {v4, v5}, Lokio/Segment;->push(Lokio/Segment;)Lokio/Segment; .line 2110 iget-object v3, v3, Lokio/Segment;->next:Lokio/Segment; goto :goto_25 .line 2113 :cond_3d invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v1 invoke-virtual {v0, v1, v2}, Lokio/Buffer;->setSize$okio(J)V :goto_44 return-object v0 .end method .method public final copyTo(Ljava/io/OutputStream;)Lokio/Buffer; .registers 10 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const/4 v6, 0x6 const/4 v7, 0x0 const-wide/16 v2, 0x0 const-wide/16 v4, 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 p1 return-object p1 .end method .method public final copyTo(Ljava/io/OutputStream;J)Lokio/Buffer; .registers 12 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const/4 v6, 0x4 const/4 v7, 0x0 const-wide/16 v4, 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 p1 return-object p1 .end method .method public final copyTo(Ljava/io/OutputStream;JJ)Lokio/Buffer; .registers 13 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "out" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 147 iget-wide v1, p0, Lokio/Buffer;->size:J 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_13 return-object p0 .line 151 :cond_13 iget-object v2, p0, Lokio/Buffer;->head:Lokio/Segment; :goto_15 if-nez v2, :cond_1a .line 152 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_1a 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_2e .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_15 :cond_2e :goto_2e cmp-long v3, p4, v0 if-lez v3, :cond_50 if-nez v2, :cond_37 .line 159 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_37 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_2e :cond_50 return-object p0 .end method .method public final copyTo(Lokio/Buffer;J)Lokio/Buffer; .registers 12 const-string v0, "out" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 179 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 invoke-virtual/range {v2 .. v7}, Lokio/Buffer;->copyTo(Lokio/Buffer;JJ)Lokio/Buffer; move-result-object p1 return-object p1 .end method .method public final copyTo(Lokio/Buffer;JJ)Lokio/Buffer; .registers 13 const-string v0, "out" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(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_15 goto :goto_80 .line 1026 :cond_15 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 .line 1029 iget-object v2, p0, Lokio/Buffer;->head:Lokio/Segment; :goto_1f if-nez v2, :cond_24 .line 1030 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_24 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_38 .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_1f :cond_38 :goto_38 cmp-long v3, p4, v0 if-lez v3, :cond_80 if-nez v2, :cond_41 .line 1037 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_41 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_66 .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_75 :cond_66 if-nez p2, :cond_6b .line 1045 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_6b iget-object p2, p2, Lokio/Segment;->prev:Lokio/Segment; if-nez p2, :cond_72 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_72 invoke-virtual {p2, v3}, Lokio/Segment;->push(Lokio/Segment;)Lokio/Segment; .line 1047 :goto_75 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_38 :cond_80 :goto_80 return-object p0 .end method .method public emit()Lokio/Buffer; .registers 1 return-object p0 .end method .method public bridge synthetic emit()Lokio/BufferedSink; .registers 2 .line 69 invoke-virtual {p0}, Lokio/Buffer;->emit()Lokio/Buffer; move-result-object v0 check-cast v0, Lokio/BufferedSink; return-object v0 .end method .method public emitCompleteSegments()Lokio/Buffer; .registers 1 return-object p0 .end method .method public bridge synthetic emitCompleteSegments()Lokio/BufferedSink; .registers 2 .line 69 invoke-virtual {p0}, Lokio/Buffer;->emitCompleteSegments()Lokio/Buffer; move-result-object v0 check-cast v0, Lokio/BufferedSink; return-object v0 .end method .method public equals(Ljava/lang/Object;)Z .registers 20 move-object/from16 v0, p0 move-object/from16 v1, p1 const/4 v2, 0x1 if-ne v0, v1, :cond_9 goto/16 :goto_89 .line 2054 :cond_9 instance-of v3, v1, Lokio/Buffer; const/4 v4, 0x0 if-nez v3, :cond_11 :goto_e move v2, v4 goto/16 :goto_89 .line 2055 :cond_11 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_20 goto :goto_e .line 2056 :cond_20 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_2b goto :goto_89 .line 2058 :cond_2b iget-object v3, v0, Lokio/Buffer;->head:Lokio/Segment; if-nez v3, :cond_32 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V .line 2059 :cond_32 iget-object v1, v1, Lokio/Buffer;->head:Lokio/Segment; if-nez v1, :cond_39 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V .line 2060 :cond_39 iget v5, v3, Lokio/Segment;->pos:I .line 2061 iget v6, v1, Lokio/Segment;->pos:I move-wide v9, v7 .line 2065 :goto_3e invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J move-result-wide v11 cmp-long v11, v9, v11 if-gez v11, :cond_89 .line 2066 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_52 cmp-long v15, v13, v11 if-gez v15, :cond_6d .line 2069 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_65 goto :goto_e :cond_65 const-wide/16 v5, 0x1 add-long/2addr v13, v5 move/from16 v5, v16 move/from16 v6, v17 goto :goto_52 .line 2072 :cond_6d iget v13, v3, Lokio/Segment;->limit:I if-ne v5, v13, :cond_7a .line 2073 iget-object v3, v3, Lokio/Segment;->next:Lokio/Segment; if-nez v3, :cond_78 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V .line 2074 :cond_78 iget v5, v3, Lokio/Segment;->pos:I .line 2077 :cond_7a iget v13, v1, Lokio/Segment;->limit:I if-ne v6, v13, :cond_87 .line 2078 iget-object v1, v1, Lokio/Segment;->next:Lokio/Segment; if-nez v1, :cond_85 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V .line 2079 :cond_85 iget v6, v1, Lokio/Segment;->pos:I :cond_87 add-long/2addr v9, v11 goto :goto_3e :cond_89 :goto_89 return v2 .end method .method public exhausted()Z .registers 5 .line 102 iget-wide v0, p0, Lokio/Buffer;->size:J const-wide/16 v2, 0x0 cmp-long v0, v0, v2 if-nez v0, :cond_a const/4 v0, 0x1 goto :goto_b :cond_a const/4 v0, 0x0 :goto_b return v0 .end method .method public flush()V .registers 1 return-void .end method .method public getBuffer()Lokio/Buffer; .registers 1 return-object p0 .end method .method public final getByte(J)B .registers 9 .line 1083 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 .line 1085 iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; if-eqz v0, :cond_64 .line 1087 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_3e .line 1089 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v1 :goto_1b cmp-long v3, v1, p1 if-lez v3, :cond_2e .line 1091 iget-object v0, v0, Lokio/Segment;->prev:Lokio/Segment; if-nez v0, :cond_26 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V .line 1092 :cond_26 iget v3, v0, Lokio/Segment;->limit:I iget v4, v0, Lokio/Segment;->pos:I sub-int/2addr v3, v4 int-to-long v3, v3 sub-long/2addr v1, v3 goto :goto_1b :cond_2e if-nez v0, :cond_33 .line 1086 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_33 iget-object v3, v0, Lokio/Segment;->data:[B iget v0, v0, Lokio/Segment;->pos:I int-to-long v4, v0 add-long/2addr v4, p1 sub-long/2addr v4, v1 long-to-int p1, v4 aget-byte p1, v3, p1 goto :goto_5a :cond_3e const-wide/16 v1, 0x0 .line 1099 :goto_40 iget v3, v0, Lokio/Segment;->limit:I iget v4, v0, Lokio/Segment;->pos:I sub-int/2addr v3, v4 int-to-long v3, v3 add-long/2addr v3, v1 cmp-long v5, v3, p1 if-lez v5, :cond_5b if-nez v0, :cond_50 .line 1086 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_50 iget-object v3, v0, Lokio/Segment;->data:[B iget v0, v0, Lokio/Segment;->pos:I int-to-long v4, v0 add-long/2addr v4, p1 sub-long/2addr v4, v1 long-to-int p1, v4 aget-byte p1, v3, p1 :goto_5a return p1 .line 1101 :cond_5b iget-object v0, v0, Lokio/Segment;->next:Lokio/Segment; if-nez v0, :cond_62 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_62 move-wide v1, v3 goto :goto_40 :cond_64 const/4 p1, 0x0 .line 1085 move-object p2, p1 check-cast p2, Lokio/Segment; .line 1086 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V iget-object p2, p1, Lokio/Segment;->data:[B throw p1 .end method .method public hashCode()I .registers 6 .line 2085 iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; if-eqz v0, :cond_21 const/4 v1, 0x1 .line 2088 :cond_5 iget v2, v0, Lokio/Segment;->pos:I .line 2089 iget v3, v0, Lokio/Segment;->limit:I :goto_9 if-ge v2, v3, :cond_15 mul-int/lit8 v1, v1, 0x1f .line 2091 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_9 .line 2094 :cond_15 iget-object v0, v0, Lokio/Segment;->next:Lokio/Segment; if-nez v0, :cond_1c invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V .line 2095 :cond_1c iget-object v2, p0, Lokio/Buffer;->head:Lokio/Segment; if-ne v0, v2, :cond_5 goto :goto_22 :cond_21 const/4 v1, 0x0 :goto_22 return v1 .end method .method public final hmacSha1(Lokio/ByteString;)Lokio/ByteString; .registers 3 const-string v0, "key" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 523 const-string v0, "HmacSHA1" invoke-direct {p0, v0, p1}, Lokio/Buffer;->hmac(Ljava/lang/String;Lokio/ByteString;)Lokio/ByteString; move-result-object p1 return-object p1 .end method .method public final hmacSha256(Lokio/ByteString;)Lokio/ByteString; .registers 3 const-string v0, "key" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 526 const-string v0, "HmacSHA256" invoke-direct {p0, v0, p1}, Lokio/Buffer;->hmac(Ljava/lang/String;Lokio/ByteString;)Lokio/ByteString; move-result-object p1 return-object p1 .end method .method public final hmacSha512(Lokio/ByteString;)Lokio/ByteString; .registers 3 const-string v0, "key" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 529 const-string v0, "HmacSHA512" invoke-direct {p0, v0, p1}, Lokio/Buffer;->hmac(Ljava/lang/String;Lokio/ByteString;)Lokio/ByteString; move-result-object p1 return-object p1 .end method .method public indexOf(B)J .registers 8 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 v0 return-wide v0 .end method .method public indexOf(BJ)J .registers 10 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 p1 return-wide p1 .end method .method public indexOf(BJJ)J .registers 16 const-wide/16 v0, 0x0 cmp-long v2, v0, p2 if-lez v2, :cond_7 goto :goto_d :cond_7 cmp-long v2, p4, p2 if-ltz v2, :cond_d const/4 v2, 0x1 goto :goto_e :cond_d :goto_d const/4 v2, 0x0 :goto_e if-eqz v2, :cond_d0 .line 1871 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v2 cmp-long v2, p4, v2 if-lez v2, :cond_1c invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide p4 :cond_1c cmp-long v2, p2, p4 const-wide/16 v3, -0x1 if-nez v2, :cond_24 goto/16 :goto_cf .line 1875 :cond_24 iget-object v2, p0, Lokio/Buffer;->head:Lokio/Segment; if-eqz v2, :cond_cc .line 1898 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_83 .line 1900 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 :goto_35 cmp-long v5, v0, p2 if-lez v5, :cond_48 .line 1902 iget-object v2, v2, Lokio/Segment;->prev:Lokio/Segment; if-nez v2, :cond_40 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V .line 1903 :cond_40 iget v5, v2, Lokio/Segment;->limit:I iget v6, v2, Lokio/Segment;->pos:I sub-int/2addr v5, v6 int-to-long v5, v5 sub-long/2addr v0, v5 goto :goto_35 :cond_48 if-eqz v2, :cond_cf :goto_4a cmp-long v5, v0, p4 if-gez v5, :cond_cf .line 1881 iget-object v5, v2, Lokio/Segment;->data:[B .line 1882 iget v6, v2, Lokio/Segment;->limit:I int-to-long v6, v6 iget v8, v2, Lokio/Segment;->pos:I int-to-long v8, v8 add-long/2addr v8, p4 sub-long/2addr v8, v0 invoke-static {v6, v7, v8, v9}, Ljava/lang/Math;->min(JJ)J move-result-wide v6 long-to-int v6, v6 .line 1883 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 :goto_63 if-ge p2, v6, :cond_73 .line 1885 aget-byte p3, v5, p2 if-ne p3, p1, :cond_70 .line 1886 :goto_69 iget p1, v2, Lokio/Segment;->pos:I sub-int/2addr p2, p1 int-to-long p1, p2 add-long v3, p1, v0 goto :goto_cf :cond_70 add-int/lit8 p2, p2, 0x1 goto :goto_63 .line 1892 :cond_73 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 1894 iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment; if-nez v2, :cond_81 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_81 move-wide p2, v0 goto :goto_4a .line 1910 :cond_83 :goto_83 iget v5, v2, Lokio/Segment;->limit:I iget v6, v2, Lokio/Segment;->pos:I sub-int/2addr v5, v6 int-to-long v5, v5 add-long/2addr v5, v0 cmp-long v7, v5, p2 if-lez v7, :cond_c3 if-eqz v2, :cond_cf :goto_90 cmp-long v5, v0, p4 if-gez v5, :cond_cf .line 1881 iget-object v5, v2, Lokio/Segment;->data:[B .line 1882 iget v6, v2, Lokio/Segment;->limit:I int-to-long v6, v6 iget v8, v2, Lokio/Segment;->pos:I int-to-long v8, v8 add-long/2addr v8, p4 sub-long/2addr v8, v0 invoke-static {v6, v7, v8, v9}, Ljava/lang/Math;->min(JJ)J move-result-wide v6 long-to-int v6, v6 .line 1883 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 :goto_a9 if-ge p2, v6, :cond_b3 .line 1885 aget-byte p3, v5, p2 if-ne p3, p1, :cond_b0 goto :goto_69 :cond_b0 add-int/lit8 p2, p2, 0x1 goto :goto_a9 .line 1892 :cond_b3 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 1894 iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment; if-nez v2, :cond_c1 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_c1 move-wide p2, v0 goto :goto_90 .line 1912 :cond_c3 iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment; if-nez v2, :cond_ca invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_ca move-wide v0, v5 goto :goto_83 :cond_cc const/4 p1, 0x0 .line 1875 check-cast p1, Lokio/Segment; :cond_cf :goto_cf return-wide v3 .line 1869 :cond_d0 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 p1 const-string v0, " fromIndex=" invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; move-result-object p1 const-string p2, " toIndex=" invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1, p4, p5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 new-instance p2, Ljava/lang/IllegalArgumentException; invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p2, Ljava/lang/Throwable; throw p2 .end method .method public indexOf(Lokio/ByteString;)J .registers 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "bytes" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(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 v0 return-wide v0 .end method .method public indexOf(Lokio/ByteString;J)J .registers 22 .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;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 1917 invoke-virtual/range {p1 .. p1}, Lokio/ByteString;->size()I move-result v2 const/4 v4, 0x0 if-lez v2, :cond_12 const/4 v2, 0x1 goto :goto_13 :cond_12 move v2, v4 :goto_13 if-eqz v2, :cond_136 const-wide/16 v6, 0x0 cmp-long v2, v0, v6 if-ltz v2, :cond_1d const/4 v2, 0x1 goto :goto_1e :cond_1d move v2, v4 :goto_1e if-eqz v2, :cond_119 move-object/from16 v2, p0 .line 1921 iget-object v8, v2, Lokio/Buffer;->head:Lokio/Segment; if-eqz v8, :cond_113 .line 1949 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_a3 .line 1951 invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J move-result-wide v6 :goto_35 cmp-long v11, v6, v0 if-lez v11, :cond_48 .line 1953 iget-object v8, v8, Lokio/Segment;->prev:Lokio/Segment; if-nez v8, :cond_40 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V .line 1954 :cond_40 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_35 :cond_48 if-eqz v8, :cond_116 .line 1927 invoke-virtual/range {p1 .. p1}, Lokio/ByteString;->internalArray$okio()[B move-result-object v11 .line 1928 aget-byte v4, v11, v4 .line 1929 invoke-virtual/range {p1 .. p1}, Lokio/ByteString;->size()I move-result v3 .line 1930 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_5b cmp-long v9, v6, v14 if-gez v9, :cond_116 .line 1933 iget-object v9, v8, Lokio/Segment;->data:[B .line 1934 iget v10, v8, Lokio/Segment;->limit:I iget v12, v8, Lokio/Segment;->pos:I int-to-long v12, v12 add-long/2addr v12, v14 sub-long/2addr v12, v6 move-wide/from16 p1, v6 int-to-long v5, v10 .line 1957 invoke-static {v5, v6, v12, v13}, Ljava/lang/Math;->min(JJ)J move-result-wide v5 long-to-int v5, v5 .line 1936 iget v6, v8, Lokio/Segment;->pos:I int-to-long v6, v6 add-long/2addr v6, v0 move-wide/from16 v0, p1 sub-long/2addr v6, v0 long-to-int v6, v6 :goto_78 if-ge v6, v5, :cond_92 .line 1937 aget-byte v7, v9, v6 if-ne v7, v4, :cond_8f add-int/lit8 v7, v6, 0x1 const/4 v10, 0x1 invoke-static {v8, v7, v11, v10, v3}, Lokio/internal/BufferKt;->rangeEquals(Lokio/Segment;I[BII)Z move-result v7 if-eqz v7, :cond_8f .line 1938 iget v3, v8, Lokio/Segment;->pos:I sub-int/2addr v6, v3 int-to-long v3, v6 add-long v9, v3, v0 goto/16 :goto_118 :cond_8f add-int/lit8 v6, v6, 0x1 goto :goto_78 .line 1943 :cond_92 iget v5, v8, Lokio/Segment;->limit:I iget v6, v8, Lokio/Segment;->pos:I sub-int/2addr v5, v6 int-to-long v5, v5 add-long v6, v0, v5 .line 1945 iget-object v8, v8, Lokio/Segment;->next:Lokio/Segment; if-nez v8, :cond_a1 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_a1 move-wide v0, v6 goto :goto_5b .line 1960 :cond_a3 :goto_a3 iget v5, v8, Lokio/Segment;->limit:I iget v9, v8, Lokio/Segment;->pos:I sub-int/2addr v5, v9 int-to-long v9, v5 add-long/2addr v9, v6 cmp-long v5, v9, v0 if-lez v5, :cond_109 if-eqz v8, :cond_116 .line 1927 invoke-virtual/range {p1 .. p1}, Lokio/ByteString;->internalArray$okio()[B move-result-object v5 .line 1928 aget-byte v4, v5, v4 .line 1929 invoke-virtual/range {p1 .. p1}, Lokio/ByteString;->size()I move-result v3 .line 1930 invoke-virtual/range {p0 .. p0}, Lokio/Buffer;->size()J move-result-wide v9 int-to-long v14, v3 sub-long/2addr v9, v14 add-long/2addr v9, v12 :goto_c1 cmp-long v11, v6, v9 if-gez v11, :cond_116 .line 1933 iget-object v11, v8, Lokio/Segment;->data:[B .line 1934 iget v12, v8, Lokio/Segment;->limit:I iget v13, v8, Lokio/Segment;->pos:I int-to-long v13, v13 add-long/2addr v13, v9 sub-long/2addr v13, v6 move-wide/from16 v16, v9 int-to-long v9, v12 .line 1966 invoke-static {v9, v10, v13, v14}, Ljava/lang/Math;->min(JJ)J move-result-wide v9 long-to-int v9, v9 .line 1936 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_dc if-ge v0, v9, :cond_f6 .line 1937 aget-byte v1, v11, v0 if-ne v1, v4, :cond_f2 add-int/lit8 v1, v0, 0x1 const/4 v14, 0x1 invoke-static {v8, v1, v5, v14, v3}, Lokio/internal/BufferKt;->rangeEquals(Lokio/Segment;I[BII)Z move-result v1 if-eqz v1, :cond_f3 .line 1938 iget v1, v8, Lokio/Segment;->pos:I sub-int/2addr v0, v1 int-to-long v0, v0 add-long v9, v0, v6 goto :goto_118 :cond_f2 const/4 v14, 0x1 :cond_f3 add-int/lit8 v0, v0, 0x1 goto :goto_dc :cond_f6 const/4 v14, 0x1 .line 1943 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 1945 iget-object v8, v8, Lokio/Segment;->next:Lokio/Segment; if-nez v8, :cond_105 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_105 move-wide v0, v6 move-wide/from16 v9, v16 goto :goto_c1 :cond_109 const/4 v14, 0x1 .line 1962 iget-object v8, v8, Lokio/Segment;->next:Lokio/Segment; if-nez v8, :cond_111 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_111 move-wide v6, v9 goto :goto_a3 :cond_113 const/4 v0, 0x0 .line 1921 check-cast v0, Lokio/Segment; :cond_116 const-wide/16 v9, -0x1 :goto_118 return-wide v9 :cond_119 move-object/from16 v2, p0 .line 1918 new-instance v3, Ljava/lang/StringBuilder; const-string v4, "fromIndex < 0: " invoke-direct {v3, v4}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v3, 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 :cond_136 move-object/from16 v2, p0 .line 1917 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 .registers 4 const-string v0, "targetBytes" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(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 v0 return-wide v0 .end method .method public indexOfElement(Lokio/ByteString;J)J .registers 15 const-string v0, "targetBytes" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(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_f move v2, v4 goto :goto_10 :cond_f move v2, v3 :goto_10 if-eqz v2, :cond_14c .line 1971 iget-object v2, p0, Lokio/Buffer;->head:Lokio/Segment; const-wide/16 v5, -0x1 if-eqz v2, :cond_148 .line 2022 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_ba .line 2024 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 :goto_26 cmp-long v7, v0, p2 if-lez v7, :cond_39 .line 2026 iget-object v2, v2, Lokio/Segment;->prev:Lokio/Segment; if-nez v2, :cond_31 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V .line 2027 :cond_31 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_26 :cond_39 if-eqz v2, :cond_14b .line 1978 invoke-virtual {p1}, Lokio/ByteString;->size()I move-result v7 if-ne v7, v8, :cond_7f .line 1980 invoke-virtual {p1, v3}, Lokio/ByteString;->getByte(I)B move-result v3 .line 1981 invoke-virtual {p1, v4}, Lokio/ByteString;->getByte(I)B move-result p1 .line 1982 :goto_49 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v7 cmp-long v4, v0, v7 if-gez v4, :cond_14b .line 1983 iget-object v4, v2, Lokio/Segment;->data:[B .line 1984 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 1985 iget p3, v2, Lokio/Segment;->limit:I :goto_5b if-ge p2, p3, :cond_6f .line 1987 aget-byte v7, v4, p2 if-eq v7, v3, :cond_67 if-ne v7, p1, :cond_64 goto :goto_67 :cond_64 add-int/lit8 p2, p2, 0x1 goto :goto_5b .line 1989 :cond_67 :goto_67 iget p1, v2, Lokio/Segment;->pos:I :goto_69 sub-int/2addr p2, p1 int-to-long p1, p2 add-long v5, p1, v0 goto/16 :goto_14b .line 1995 :cond_6f 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 1997 iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment; if-nez v2, :cond_7d invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_7d move-wide p2, v0 goto :goto_49 .line 2001 :cond_7f invoke-virtual {p1}, Lokio/ByteString;->internalArray$okio()[B move-result-object p1 .line 2002 :goto_83 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v7 cmp-long v4, v0, v7 if-gez v4, :cond_14b .line 2003 iget-object v4, v2, Lokio/Segment;->data:[B .line 2004 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 2005 iget p3, v2, Lokio/Segment;->limit:I :goto_95 if-ge p2, p3, :cond_aa .line 2007 aget-byte v7, v4, p2 .line 2008 array-length v8, p1 move v9, v3 :goto_9b if-ge v9, v8, :cond_a7 aget-byte v10, p1, v9 if-ne v7, v10, :cond_a4 .line 2009 :goto_a1 iget p1, v2, Lokio/Segment;->pos:I goto :goto_69 :cond_a4 add-int/lit8 v9, v9, 0x1 goto :goto_9b :cond_a7 add-int/lit8 p2, p2, 0x1 goto :goto_95 .line 2015 :cond_aa 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 2017 iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment; if-nez v2, :cond_b8 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_b8 move-wide p2, v0 goto :goto_83 .line 2034 :cond_ba :goto_ba 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_13e if-eqz v2, :cond_14b .line 1978 invoke-virtual {p1}, Lokio/ByteString;->size()I move-result v7 if-ne v7, v8, :cond_104 .line 1980 invoke-virtual {p1, v3}, Lokio/ByteString;->getByte(I)B move-result v3 .line 1981 invoke-virtual {p1, v4}, Lokio/ByteString;->getByte(I)B move-result p1 .line 1982 :goto_d5 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v7 cmp-long v4, v0, v7 if-gez v4, :cond_14b .line 1983 iget-object v4, v2, Lokio/Segment;->data:[B .line 1984 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 1985 iget p3, v2, Lokio/Segment;->limit:I :goto_e7 if-ge p2, p3, :cond_f4 .line 1987 aget-byte v7, v4, p2 if-eq v7, v3, :cond_67 if-ne v7, p1, :cond_f1 goto/16 :goto_67 :cond_f1 add-int/lit8 p2, p2, 0x1 goto :goto_e7 .line 1995 :cond_f4 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 1997 iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment; if-nez v2, :cond_102 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_102 move-wide p2, v0 goto :goto_d5 .line 2001 :cond_104 invoke-virtual {p1}, Lokio/ByteString;->internalArray$okio()[B move-result-object p1 .line 2002 :goto_108 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v7 cmp-long v4, v0, v7 if-gez v4, :cond_14b .line 2003 iget-object v4, v2, Lokio/Segment;->data:[B .line 2004 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 2005 iget p3, v2, Lokio/Segment;->limit:I :goto_11a if-ge p2, p3, :cond_12e .line 2007 aget-byte v7, v4, p2 .line 2008 array-length v8, p1 move v9, v3 :goto_120 if-ge v9, v8, :cond_12b aget-byte v10, p1, v9 if-ne v7, v10, :cond_128 goto/16 :goto_a1 :cond_128 add-int/lit8 v9, v9, 0x1 goto :goto_120 :cond_12b add-int/lit8 p2, p2, 0x1 goto :goto_11a .line 2015 :cond_12e 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 2017 iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment; if-nez v2, :cond_13c invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_13c move-wide p2, v0 goto :goto_108 .line 2036 :cond_13e iget-object v2, v2, Lokio/Segment;->next:Lokio/Segment; if-nez v2, :cond_145 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_145 move-wide v0, v9 goto/16 :goto_ba :cond_148 const/4 p1, 0x0 .line 1971 check-cast p1, Lokio/Segment; :cond_14b :goto_14b return-wide v5 .line 1968 :cond_14c new-instance p1, Ljava/lang/StringBuilder; const-string v0, "fromIndex < 0: " invoke-direct {p1, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p1, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 new-instance p2, Ljava/lang/IllegalArgumentException; invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p2, Ljava/lang/Throwable; throw p2 .end method .method public inputStream()Ljava/io/InputStream; .registers 2 .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 .registers 2 const/4 v0, 0x1 return v0 .end method .method public final md5()Lokio/ByteString; .registers 2 .line 498 const-string v0, "MD5" invoke-direct {p0, v0}, Lokio/Buffer;->digest(Ljava/lang/String;)Lokio/ByteString; move-result-object v0 return-object v0 .end method .method public outputStream()Ljava/io/OutputStream; .registers 2 .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; .registers 3 .line 112 new-instance v0, Lokio/PeekSource; move-object v1, p0 check-cast v1, Lokio/BufferedSource; invoke-direct {v0, v1}, Lokio/PeekSource;->(Lokio/BufferedSource;)V check-cast v0, Lokio/Source; invoke-static {v0}, Lokio/Okio;->buffer(Lokio/Source;)Lokio/BufferedSource; move-result-object v0 return-object v0 .end method .method public rangeEquals(JLokio/ByteString;)Z .registers 11 const-string v0, "bytes" invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(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 p1 return p1 .end method .method public rangeEquals(JLokio/ByteString;II)Z .registers 12 const-string v0, "bytes" invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(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_38 if-ltz p4, :cond_38 if-ltz p5, :cond_38 .line 2043 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_38 .line 2044 invoke-virtual {p3}, Lokio/ByteString;->size()I move-result v0 sub-int/2addr v0, p4 if-ge v0, p5, :cond_22 goto :goto_38 :cond_22 move v0, v1 :goto_23 if-ge v0, p5, :cond_37 int-to-long v2, v0 add-long/2addr v2, p1 .line 2048 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_34 goto :goto_38 :cond_34 add-int/lit8 v0, v0, 0x1 goto :goto_23 :cond_37 const/4 v1, 0x1 :cond_38 :goto_38 return v1 .end method .method public read(Ljava/nio/ByteBuffer;)I .registers 8 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "sink" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 348 iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; if-eqz v0, :cond_3a .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 .line 354 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_39 .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 sget-object p1, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool; invoke-virtual {p1, v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V :cond_39 return v1 :cond_3a const/4 p1, -0x1 return p1 .end method .method public read([B)I .registers 4 const-string v0, "sink" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x0 .line 1446 array-length v1, p1 invoke-virtual {p0, p1, v0, v1}, Lokio/Buffer;->read([BII)I move-result p1 return p1 .end method .method public read([BII)I .registers 11 const-string v0, "sink" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 1454 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 .line 1456 iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; if-eqz v0, :cond_43 .line 1457 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 1458 iget-object v1, v0, Lokio/Segment;->data:[B .line 1459 iget v2, v0, Lokio/Segment;->pos:I iget v3, v0, Lokio/Segment;->pos:I add-int/2addr v3, p3 .line 1458 invoke-static {v1, p1, p2, v2, v3}, Lkotlin/collections/ArraysKt;->copyInto([B[BIII)[B .line 1462 iget p1, v0, Lokio/Segment;->pos:I add-int/2addr p1, p3 iput p1, v0, Lokio/Segment;->pos:I .line 1463 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 1465 iget p1, v0, Lokio/Segment;->pos:I iget p2, v0, Lokio/Segment;->limit:I if-ne p1, p2, :cond_44 .line 1466 invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment; move-result-object p1 iput-object p1, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1467 sget-object p1, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool; invoke-virtual {p1, v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V goto :goto_44 :cond_43 const/4 p3, -0x1 :cond_44 :goto_44 return p3 .end method .method public read(Lokio/Buffer;J)J .registers 8 const-string v0, "sink" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const-wide/16 v0, 0x0 cmp-long v2, p2, v0 if-ltz v2, :cond_d const/4 v2, 0x1 goto :goto_e :cond_d const/4 v2, 0x0 :goto_e if-eqz v2, :cond_2c .line 1863 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v2 cmp-long v0, v2, v0 if-nez v0, :cond_1b const-wide/16 p1, -0x1 goto :goto_2b .line 1864 :cond_1b invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 cmp-long v0, p2, v0 if-lez v0, :cond_27 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide p2 .line 1865 :cond_27 invoke-virtual {p1, p0, p2, p3}, Lokio/Buffer;->write(Lokio/Buffer;J)V move-wide p1, p2 :goto_2b return-wide p1 .line 1862 :cond_2c new-instance p1, Ljava/lang/StringBuilder; const-string v0, "byteCount < 0: " invoke-direct {p1, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p1, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 new-instance p2, Ljava/lang/IllegalArgumentException; invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p2, Ljava/lang/Throwable; throw p2 .end method .method public readAll(Lokio/Sink;)J .registers 6 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "sink" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 1339 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_12 .line 1341 invoke-interface {p1, p0, v0, v1}, Lokio/Sink;->write(Lokio/Buffer;J)V :cond_12 return-wide v0 .end method .method public final readAndWriteUnsafe()Lokio/Buffer$UnsafeCursor; .registers 3 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 v0 return-object v0 .end method .method public final readAndWriteUnsafe(Lokio/Buffer$UnsafeCursor;)Lokio/Buffer$UnsafeCursor; .registers 4 const-string v0, "unsafeCursor" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(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_c move v0, v1 goto :goto_d :cond_c const/4 v0, 0x0 :goto_d if-eqz v0, :cond_17 .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_17 new-instance p1, Ljava/lang/IllegalStateException; const-string v0, "already attached to a buffer" invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p1, Ljava/lang/Throwable; throw p1 .end method .method public readByte()B .registers 10 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation .line 1065 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_36 .line 1067 iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; if-nez v0, :cond_11 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V .line 1068 :cond_11 iget v1, v0, Lokio/Segment;->pos:I .line 1069 iget v2, v0, Lokio/Segment;->limit:I .line 1071 iget-object v3, v0, Lokio/Segment;->data:[B add-int/lit8 v4, v1, 0x1 .line 1072 aget-byte v1, v3, v1 .line 1073 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_33 .line 1076 invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment; move-result-object v2 iput-object v2, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1077 sget-object v2, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool; invoke-virtual {v2, v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V goto :goto_35 .line 1079 :cond_33 iput v4, v0, Lokio/Segment;->pos:I :goto_35 return v1 .line 1065 :cond_36 new-instance v0, Ljava/io/EOFException; invoke-direct {v0}, Ljava/io/EOFException;->()V check-cast v0, Ljava/lang/Throwable; throw v0 .end method .method public readByteArray()[B .registers 3 .line 1439 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 invoke-virtual {p0, v0, v1}, Lokio/Buffer;->readByteArray(J)[B move-result-object v0 return-object v0 .end method .method public readByteArray(J)[B .registers 5 .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_10 const v0, 0x7fffffff int-to-long v0, v0 cmp-long v0, p1, v0 if-gtz v0, :cond_10 const/4 v0, 0x1 goto :goto_11 :cond_10 const/4 v0, 0x0 :goto_11 if-eqz v0, :cond_2a .line 1441 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 cmp-long v0, v0, p1 if-ltz v0, :cond_22 long-to-int p1, p1 .line 1443 new-array p1, p1, [B .line 1444 invoke-virtual {p0, p1}, Lokio/Buffer;->readFully([B)V return-object p1 .line 1441 :cond_22 new-instance p1, Ljava/io/EOFException; invoke-direct {p1}, Ljava/io/EOFException;->()V check-cast p1, Ljava/lang/Throwable; throw p1 .line 1440 :cond_2a new-instance v0, Ljava/lang/StringBuilder; const-string v1, "byteCount: " invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v0, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 new-instance p2, Ljava/lang/IllegalArgumentException; invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p2, Ljava/lang/Throwable; throw p2 .end method .method public readByteString()Lokio/ByteString; .registers 3 .line 1318 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 v0 return-object v0 .end method .method public readByteString(J)Lokio/ByteString; .registers 5 .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_10 const v0, 0x7fffffff int-to-long v0, v0 cmp-long v0, p1, v0 if-gtz v0, :cond_10 const/4 v0, 0x1 goto :goto_11 :cond_10 const/4 v0, 0x0 :goto_11 if-eqz v0, :cond_3d .line 1320 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 cmp-long v0, v0, p1 if-ltz v0, :cond_35 const/16 v0, 0x1000 int-to-long v0, v0 cmp-long v0, p1, v0 if-ltz v0, :cond_2b long-to-int v0, p1 .line 1323 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_34 .line 1325 :cond_2b new-instance v0, Lokio/ByteString; invoke-virtual {p0, p1, p2}, Lokio/Buffer;->readByteArray(J)[B move-result-object p1 invoke-direct {v0, p1}, Lokio/ByteString;->([B)V :goto_34 return-object v0 .line 1320 :cond_35 new-instance p1, Ljava/io/EOFException; invoke-direct {p1}, Ljava/io/EOFException;->()V check-cast p1, Ljava/lang/Throwable; throw p1 .line 1319 :cond_3d new-instance v0, Ljava/lang/StringBuilder; const-string v1, "byteCount: " invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v0, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 new-instance p2, Ljava/lang/IllegalArgumentException; invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p2, Ljava/lang/Throwable; throw p2 .end method .method public readDecimalLong()J .registers 16 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation .line 1207 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_c5 const/4 v0, 0x0 const-wide/16 v4, -0x7 move v1, v0 move-wide v5, v4 move-wide v3, v2 move v2, v1 .line 1218 :cond_11 iget-object v7, p0, Lokio/Buffer;->head:Lokio/Segment; if-nez v7, :cond_18 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V .line 1220 :cond_18 iget-object v8, v7, Lokio/Segment;->data:[B .line 1221 iget v9, v7, Lokio/Segment;->pos:I .line 1222 iget v10, v7, Lokio/Segment;->limit:I :goto_1e if-ge v9, v10, :cond_a1 .line 1225 aget-byte v11, v8, v9 const/16 v12, 0x30 int-to-byte v12, v12 if-lt v11, v12, :cond_71 const/16 v13, 0x39 int-to-byte v13, v13 if-gt v11, v13, :cond_71 sub-int/2addr v12, v11 const-wide v13, -0xcccccccccccccccL cmp-long v13, v3, v13 if-ltz v13, :cond_44 if-nez v13, :cond_3e int-to-long v13, v12 cmp-long v13, v13, v5 if-gez v13, :cond_3e goto :goto_44 :cond_3e const-wide/16 v13, 0xa mul-long/2addr v3, v13 int-to-long v11, v12 add-long/2addr v3, v11 goto :goto_7d .line 1231 :cond_44 :goto_44 new-instance v0, Lokio/Buffer; invoke-direct {v0}, Lokio/Buffer;->()V invoke-virtual {v0, v3, v4}, Lokio/Buffer;->writeDecimalLong(J)Lokio/Buffer; move-result-object v0 invoke-virtual {v0, v11}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; move-result-object v0 if-nez v1, :cond_56 .line 1232 invoke-virtual {v0}, Lokio/Buffer;->readByte()B .line 1233 :cond_56 new-instance v1, Ljava/lang/NumberFormatException; new-instance v2, Ljava/lang/StringBuilder; const-string v3, "Number too large: " invoke-direct {v2, v3}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v0}, Lokio/Buffer;->readUtf8()Ljava/lang/String; move-result-object v0 invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {v1, v0}, Ljava/lang/NumberFormatException;->(Ljava/lang/String;)V check-cast v1, Ljava/lang/Throwable; throw v1 :cond_71 const/16 v12, 0x2d int-to-byte v12, v12 const/4 v13, 0x1 if-ne v11, v12, :cond_82 if-nez v0, :cond_82 const-wide/16 v11, 0x1 sub-long/2addr v5, v11 move v1, v13 :goto_7d add-int/lit8 v9, v9, 0x1 add-int/lit8 v0, v0, 0x1 goto :goto_1e :cond_82 if-eqz v0, :cond_86 move v2, v13 goto :goto_a1 .line 1242 :cond_86 new-instance v0, Ljava/lang/NumberFormatException; .line 1243 new-instance v1, Ljava/lang/StringBuilder; const-string v2, "Expected leading [0-9] or \'-\' character but was 0x" invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-static {v11}, Lokio/-Util;->toHexString(B)Ljava/lang/String; move-result-object v2 invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 .line 1242 invoke-direct {v0, v1}, Ljava/lang/NumberFormatException;->(Ljava/lang/String;)V check-cast v0, Ljava/lang/Throwable; throw v0 :cond_a1 :goto_a1 if-ne v9, v10, :cond_af .line 1254 invoke-virtual {v7}, Lokio/Segment;->pop()Lokio/Segment; move-result-object v8 iput-object v8, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1255 sget-object v8, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool; invoke-virtual {v8, v7}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V goto :goto_b1 .line 1257 :cond_af iput v9, v7, Lokio/Segment;->pos:I :goto_b1 if-nez v2, :cond_b7 .line 1259 iget-object v7, p0, Lokio/Buffer;->head:Lokio/Segment; if-nez v7, :cond_11 .line 1261 :cond_b7 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_c3 goto :goto_c4 :cond_c3 neg-long v3, v3 :goto_c4 return-wide v3 .line 1207 :cond_c5 new-instance v0, Ljava/io/EOFException; invoke-direct {v0}, Ljava/io/EOFException;->()V check-cast v0, Ljava/lang/Throwable; throw v0 .end method .method public final readFrom(Ljava/io/InputStream;)Lokio/Buffer; .registers 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "input" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(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; .registers 6 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "input" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(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_e const/4 v0, 0x1 goto :goto_f :cond_e move v0, v1 :goto_f if-eqz v0, :cond_15 .line 219 invoke-direct {p0, p1, p2, p3, v1}, Lokio/Buffer;->readFrom(Ljava/io/InputStream;JZ)V return-object p0 .line 218 :cond_15 new-instance p1, Ljava/lang/StringBuilder; const-string v0, "byteCount < 0: " invoke-direct {p1, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p1, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 new-instance p2, Ljava/lang/IllegalArgumentException; invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p2, Ljava/lang/Throwable; throw p2 .end method .method public readFully(Lokio/Buffer;J)V .registers 6 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation const-string v0, "sink" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 1333 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 cmp-long v0, v0, p2 if-ltz v0, :cond_11 .line 1337 invoke-virtual {p1, p0, p2, p3}, Lokio/Buffer;->write(Lokio/Buffer;J)V return-void .line 1334 :cond_11 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 1335 new-instance p1, Ljava/io/EOFException; invoke-direct {p1}, Ljava/io/EOFException;->()V check-cast p1, Ljava/lang/Throwable; throw p1 .end method .method public readFully([B)V .registers 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation const-string v0, "sink" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x0 .line 1448 :goto_6 array-length v1, p1 if-ge v0, v1, :cond_1c .line 1449 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_14 add-int/2addr v0, v1 goto :goto_6 .line 1450 :cond_14 new-instance p1, Ljava/io/EOFException; invoke-direct {p1}, Ljava/io/EOFException;->()V check-cast p1, Ljava/lang/Throwable; throw p1 :cond_1c return-void .end method .method public readHexadecimalUnsignedLong()J .registers 15 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation .line 1263 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_bc const/4 v0, 0x0 move v1, v0 move-wide v4, v2 .line 1270 :cond_d iget-object v6, p0, Lokio/Buffer;->head:Lokio/Segment; if-nez v6, :cond_14 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V .line 1272 :cond_14 iget-object v7, v6, Lokio/Segment;->data:[B .line 1273 iget v8, v6, Lokio/Segment;->pos:I .line 1274 iget v9, v6, Lokio/Segment;->limit:I :goto_1a if-ge v8, v9, :cond_9c .line 1279 aget-byte v10, v7, v8 const/16 v11, 0x30 int-to-byte v11, v11 if-lt v10, v11, :cond_2b const/16 v12, 0x39 int-to-byte v12, v12 if-gt v10, v12, :cond_2b sub-int v11, v10, v11 goto :goto_45 :cond_2b const/16 v11, 0x61 int-to-byte v11, v11 if-lt v10, v11, :cond_3a const/16 v12, 0x66 int-to-byte v12, v12 if-gt v10, v12, :cond_3a :goto_35 sub-int v11, v10, v11 add-int/lit8 v11, v11, 0xa goto :goto_45 :cond_3a const/16 v11, 0x41 int-to-byte v11, v11 if-lt v10, v11, :cond_7d const/16 v12, 0x46 int-to-byte v12, v12 if-gt v10, v12, :cond_7d goto :goto_35 :goto_45 const-wide/high16 v12, -0x1000000000000000L # -3.105036184601418E231 and-long/2addr v12, v4 cmp-long v12, v12, v2 if-nez v12, :cond_55 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_1a .line 1298 :cond_55 new-instance v0, Lokio/Buffer; invoke-direct {v0}, Lokio/Buffer;->()V invoke-virtual {v0, v4, v5}, Lokio/Buffer;->writeHexadecimalUnsignedLong(J)Lokio/Buffer; move-result-object v0 invoke-virtual {v0, v10}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; move-result-object v0 .line 1299 new-instance v1, Ljava/lang/NumberFormatException; new-instance v2, Ljava/lang/StringBuilder; const-string v3, "Number too large: " invoke-direct {v2, v3}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v0}, Lokio/Buffer;->readUtf8()Ljava/lang/String; move-result-object v0 invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {v1, v0}, Ljava/lang/NumberFormatException;->(Ljava/lang/String;)V check-cast v1, Ljava/lang/Throwable; throw v1 :cond_7d if-eqz v0, :cond_81 const/4 v1, 0x1 goto :goto_9c .line 1288 :cond_81 new-instance v0, Ljava/lang/NumberFormatException; .line 1289 new-instance v1, Ljava/lang/StringBuilder; const-string v2, "Expected leading [0-9a-fA-F] character but was 0x" invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-static {v10}, Lokio/-Util;->toHexString(B)Ljava/lang/String; move-result-object v2 invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 .line 1288 invoke-direct {v0, v1}, Ljava/lang/NumberFormatException;->(Ljava/lang/String;)V check-cast v0, Ljava/lang/Throwable; throw v0 :cond_9c :goto_9c if-ne v8, v9, :cond_aa .line 1309 invoke-virtual {v6}, Lokio/Segment;->pop()Lokio/Segment; move-result-object v7 iput-object v7, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1310 sget-object v7, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool; invoke-virtual {v7, v6}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V goto :goto_ac .line 1312 :cond_aa iput v8, v6, Lokio/Segment;->pos:I :goto_ac if-nez v1, :cond_b2 .line 1314 iget-object v6, p0, Lokio/Buffer;->head:Lokio/Segment; if-nez v6, :cond_d .line 1316 :cond_b2 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 1263 :cond_bc new-instance v0, Ljava/io/EOFException; invoke-direct {v0}, Ljava/io/EOFException;->()V check-cast v0, Ljava/lang/Throwable; throw v0 .end method .method public readInt()I .registers 10 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation .line 1133 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_7b .line 1135 iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; if-nez v0, :cond_11 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V .line 1136 :cond_11 iget v1, v0, Lokio/Segment;->pos:I .line 1137 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_3e .line 1141 invoke-virtual {p0}, Lokio/Buffer;->readByte()B move-result v0 and-int/lit16 v0, v0, 0xff shl-int/lit8 v0, v0, 0x18 .line 1143 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 1145 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 1147 invoke-virtual {p0}, Lokio/Buffer;->readByte()B move-result v1 and-int/lit16 v1, v1, 0xff or-int/2addr v0, v1 goto :goto_7a .line 1149 :cond_3e iget-object v5, v0, Lokio/Segment;->data:[B add-int/lit8 v6, v1, 0x1 .line 1150 aget-byte v7, v5, v1 and-int/lit16 v7, v7, 0xff shl-int/lit8 v7, v7, 0x18 add-int/lit8 v8, v1, 0x2 .line 1152 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 1154 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 1156 aget-byte v5, v5, v7 and-int/lit16 v5, v5, 0xff or-int/2addr v5, v6 .line 1158 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_77 .line 1161 invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment; move-result-object v1 iput-object v1, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1162 sget-object v1, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool; invoke-virtual {v1, v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V goto :goto_79 .line 1164 :cond_77 iput v1, v0, Lokio/Segment;->pos:I :goto_79 move v0, v5 :goto_7a return v0 .line 1133 :cond_7b new-instance v0, Ljava/io/EOFException; invoke-direct {v0}, Ljava/io/EOFException;->()V check-cast v0, Ljava/lang/Throwable; throw v0 .end method .method public readIntLe()I .registers 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation .line 266 invoke-virtual {p0}, Lokio/Buffer;->readInt()I move-result v0 invoke-static {v0}, Lokio/-Util;->reverseBytes(I)I move-result v0 return v0 .end method .method public readLong()J .registers 16 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation .line 1168 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_9c .line 1170 iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; if-nez v0, :cond_11 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V .line 1171 :cond_11 iget v1, v0, Lokio/Segment;->pos:I .line 1172 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_32 .line 1176 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 1178 invoke-virtual {p0}, Lokio/Buffer;->readInt()I move-result v4 int-to-long v4, v4 and-long/2addr v2, v4 or-long/2addr v0, v2 goto :goto_9b .line 1180 :cond_32 iget-object v5, v0, Lokio/Segment;->data:[B add-int/lit8 v7, v1, 0x1 .line 1181 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 1183 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 1185 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 1187 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 1189 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 1191 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 1193 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 1195 aget-byte v5, v5, v8 int-to-long v8, v5 and-long/2addr v8, v10 or-long v5, v6, v8 .line 1197 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_98 .line 1200 invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment; move-result-object v1 iput-object v1, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1201 sget-object v1, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool; invoke-virtual {v1, v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V goto :goto_9a .line 1203 :cond_98 iput v1, v0, Lokio/Segment;->pos:I :goto_9a move-wide v0, v5 :goto_9b return-wide v0 .line 1168 :cond_9c new-instance v0, Ljava/io/EOFException; invoke-direct {v0}, Ljava/io/EOFException;->()V check-cast v0, Ljava/lang/Throwable; throw v0 .end method .method public readLongLe()J .registers 3 .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 .registers 10 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation .line 1105 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_55 .line 1107 iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; if-nez v0, :cond_11 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V .line 1108 :cond_11 iget v1, v0, Lokio/Segment;->pos:I .line 1109 iget v4, v0, Lokio/Segment;->limit:I sub-int v5, v4, v1 const/4 v6, 0x2 if-ge v5, v6, :cond_2b .line 1113 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 v1 and-int/lit16 v1, v1, 0xff or-int/2addr v0, v1 int-to-short v0, v0 goto :goto_54 .line 1119 :cond_2b 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 1123 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_51 .line 1126 invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment; move-result-object v1 iput-object v1, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1127 sget-object v1, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool; invoke-virtual {v1, v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V goto :goto_53 .line 1129 :cond_51 iput v1, v0, Lokio/Segment;->pos:I :goto_53 int-to-short v0, v5 :goto_54 return v0 .line 1105 :cond_55 new-instance v0, Ljava/io/EOFException; invoke-direct {v0}, Ljava/io/EOFException;->()V check-cast v0, Ljava/lang/Throwable; throw v0 .end method .method public readShortLe()S .registers 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation .line 263 invoke-virtual {p0}, Lokio/Buffer;->readShort()S move-result v0 invoke-static {v0}, Lokio/-Util;->reverseBytes(S)S move-result v0 return v0 .end method .method public readString(JLjava/nio/charset/Charset;)Ljava/lang/String; .registers 9 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation const-string v0, "charset" invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const-wide/16 v0, 0x0 cmp-long v0, p1, v0 if-ltz v0, :cond_15 const v1, 0x7fffffff int-to-long v1, v1 cmp-long v1, p1, v1 if-gtz v1, :cond_15 const/4 v1, 0x1 goto :goto_16 :cond_15 const/4 v1, 0x0 :goto_16 if-eqz v1, :cond_6d .line 300 iget-wide v1, p0, Lokio/Buffer;->size:J cmp-long v1, v1, p1 if-ltz v1, :cond_65 if-nez v0, :cond_23 .line 301 const-string p1, "" return-object p1 .line 303 :cond_23 iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; if-nez v0, :cond_2a invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V .line 304 :cond_2a 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_3f .line 306 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->readByteArray(J)[B move-result-object p1 new-instance p2, Ljava/lang/String; invoke-direct {p2, p1, p3}, Ljava/lang/String;->([BLjava/nio/charset/Charset;)V return-object p2 .line 309 :cond_3f 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 .line 311 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_64 .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 sget-object p1, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool; invoke-virtual {p1, v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V :cond_64 return-object v4 .line 300 :cond_65 new-instance p1, Ljava/io/EOFException; invoke-direct {p1}, Ljava/io/EOFException;->()V check-cast p1, Ljava/lang/Throwable; throw p1 .line 299 :cond_6d new-instance p3, Ljava/lang/StringBuilder; const-string v0, "byteCount: " invoke-direct {p3, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p3, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 new-instance p2, Ljava/lang/IllegalArgumentException; invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p2, Ljava/lang/Throwable; throw p2 .end method .method public readString(Ljava/nio/charset/Charset;)Ljava/lang/String; .registers 4 const-string v0, "charset" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 295 iget-wide v0, p0, Lokio/Buffer;->size:J invoke-virtual {p0, v0, v1, p1}, Lokio/Buffer;->readString(JLjava/nio/charset/Charset;)Ljava/lang/String; move-result-object p1 return-object p1 .end method .method public final readUnsafe()Lokio/Buffer$UnsafeCursor; .registers 3 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 v0 return-object v0 .end method .method public final readUnsafe(Lokio/Buffer$UnsafeCursor;)Lokio/Buffer$UnsafeCursor; .registers 4 const-string v0, "unsafeCursor" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(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_c const/4 v0, 0x1 goto :goto_d :cond_c move v0, v1 :goto_d if-eqz v0, :cond_17 .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_17 new-instance p1, Ljava/lang/IllegalStateException; const-string v0, "already attached to a buffer" invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p1, Ljava/lang/Throwable; throw p1 .end method .method public readUtf8()Ljava/lang/String; .registers 4 .line 290 iget-wide v0, p0, Lokio/Buffer;->size:J 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 v0 return-object v0 .end method .method public readUtf8(J)Ljava/lang/String; .registers 4 .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 p1 return-object p1 .end method .method public readUtf8CodePoint()I .registers 13 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation .line 1364 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_b9 .line 1366 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_1e and-int/lit8 v1, v0, 0x7f const/4 v5, 0x0 move v6, v5 move v5, v2 goto :goto_40 :cond_1e and-int/lit16 v1, v0, 0xe0 const/16 v5, 0xc0 if-ne v1, v5, :cond_29 and-int/lit8 v1, v0, 0x1f const/4 v5, 0x2 move v6, v3 goto :goto_40 :cond_29 and-int/lit16 v1, v0, 0xf0 const/16 v5, 0xe0 if-ne v1, v5, :cond_35 and-int/lit8 v1, v0, 0xf const/4 v5, 0x3 const/16 v6, 0x800 goto :goto_40 :cond_35 and-int/lit16 v1, v0, 0xf8 const/16 v5, 0xf0 if-ne v1, v5, :cond_b3 and-int/lit8 v1, v0, 0x7 const/4 v5, 0x4 const/high16 v6, 0x10000 .line 1407 :goto_40 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_7a :goto_49 if-ge v2, v5, :cond_60 int-to-long v7, v2 .line 1415 invoke-virtual {p0, v7, v8}, Lokio/Buffer;->getByte(J)B move-result v0 and-int/lit16 v11, v0, 0xc0 if-ne v11, v3, :cond_5c 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_49 .line 1421 :cond_5c invoke-virtual {p0, v7, v8}, Lokio/Buffer;->skip(J)V goto :goto_b8 .line 1426 :cond_60 invoke-virtual {p0, v9, v10}, Lokio/Buffer;->skip(J)V const v0, 0x10ffff if-le v1, v0, :cond_69 goto :goto_b8 :cond_69 const v0, 0xd800 if-le v0, v1, :cond_6f goto :goto_75 :cond_6f const v0, 0xdfff if-lt v0, v1, :cond_75 goto :goto_b8 :cond_75 :goto_75 if-ge v1, v6, :cond_78 goto :goto_b8 :cond_78 move v4, v1 goto :goto_b8 .line 1408 :cond_7a 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 v2 const-string v3, " (to read code point prefixed 0x" invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 invoke-static {v0}, Lokio/-Util;->toHexString(B)Ljava/lang/String; move-result-object v0 invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 const/16 v2, 0x29 invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {v1, v0}, Ljava/io/EOFException;->(Ljava/lang/String;)V check-cast v1, Ljava/lang/Throwable; throw v1 :cond_b3 const-wide/16 v0, 0x1 .line 1402 invoke-virtual {p0, v0, v1}, Lokio/Buffer;->skip(J)V :goto_b8 return v4 .line 1364 :cond_b9 new-instance v0, Ljava/io/EOFException; invoke-direct {v0}, Ljava/io/EOFException;->()V check-cast v0, Ljava/lang/Throwable; throw v0 .end method .method public readUtf8Line()Ljava/lang/String; .registers 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation const/16 v0, 0xa int-to-byte v0, v0 .line 1344 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_12 .line 1347 invoke-static {p0, v0, v1}, Lokio/internal/BufferKt;->readUtf8Line(Lokio/Buffer;J)Ljava/lang/String; move-result-object v0 goto :goto_26 .line 1348 :cond_12 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_25 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 v0 goto :goto_26 :cond_25 const/4 v0, 0x0 :goto_26 return-object v0 .end method .method public readUtf8LineStrict()Ljava/lang/String; .registers 3 .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 v0 return-object v0 .end method .method public readUtf8LineStrict(J)Ljava/lang/String; .registers 14 .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_8 const/4 v0, 0x1 goto :goto_9 :cond_8 const/4 v0, 0x0 :goto_9 if-eqz v0, :cond_9c const-wide v0, 0x7fffffffffffffffL cmp-long v2, p1, v0 const-wide/16 v3, 0x1 if-nez v2, :cond_17 goto :goto_19 :cond_17 add-long v0, p1, v3 :goto_19 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 1352 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_30 .line 1353 invoke-static {p0, v5, v6}, Lokio/internal/BufferKt;->readUtf8Line(Lokio/Buffer;J)Ljava/lang/String; move-result-object p1 goto :goto_4d .line 1356 :cond_30 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v5 cmp-long v5, v0, v5 if-gez v5, :cond_4e sub-long v3, v0, v3 .line 1355 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_4e .line 1356 invoke-virtual {p0, v0, v1}, Lokio/Buffer;->getByte(J)B move-result v3 if-ne v3, v2, :cond_4e .line 1357 invoke-static {p0, v0, v1}, Lokio/internal/BufferKt;->readUtf8Line(Lokio/Buffer;J)Ljava/lang/String; move-result-object p1 :goto_4d return-object p1 .line 1359 :cond_4e new-instance v6, Lokio/Buffer; invoke-direct {v6}, Lokio/Buffer;->()V .line 1360 invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v0 const/16 v2, 0x20 int-to-long v2, v2 .line 1361 invoke-static {v2, v3, v0, v1}, Ljava/lang/Math;->min(JJ)J move-result-wide v4 const-wide/16 v2, 0x0 move-object v0, p0 move-object v1, v6 .line 1360 invoke-virtual/range {v0 .. v5}, Lokio/Buffer;->copyTo(Lokio/Buffer;JJ)Lokio/Buffer; .line 1362 new-instance v0, Ljava/lang/StringBuilder; const-string v1, "\\n not found: limit=" invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p0}, Lokio/Buffer;->size()J move-result-wide v1 invoke-static {v1, v2, p1, p2}, Ljava/lang/Math;->min(JJ)J move-result-wide p1 invoke-virtual {v0, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; move-result-object p1 const-string p2, " content=" invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 .line 1363 invoke-virtual {v6}, Lokio/Buffer;->readByteString()Lokio/ByteString; move-result-object p2 invoke-virtual {p2}, Lokio/ByteString;->hex()Ljava/lang/String; move-result-object p2 invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 const/16 p2, 0x2026 invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 .line 1362 new-instance p2, Ljava/io/EOFException; invoke-direct {p2, p1}, Ljava/io/EOFException;->(Ljava/lang/String;)V check-cast p2, Ljava/lang/Throwable; throw p2 .line 1350 :cond_9c new-instance v0, Ljava/lang/StringBuilder; const-string v1, "limit < 0: " invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v0, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 new-instance p2, Ljava/lang/IllegalArgumentException; invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p2, Ljava/lang/Throwable; throw p2 .end method .method public request(J)Z .registers 5 .line 109 iget-wide v0, p0, Lokio/Buffer;->size:J cmp-long p1, v0, p1 if-ltz p1, :cond_8 const/4 p1, 0x1 goto :goto_9 :cond_8 const/4 p1, 0x0 :goto_9 return p1 .end method .method public require(J)V .registers 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/EOFException; } .end annotation .line 106 iget-wide v0, p0, Lokio/Buffer;->size:J cmp-long p1, v0, p1 if-ltz p1, :cond_7 return-void :cond_7 new-instance p1, Ljava/io/EOFException; invoke-direct {p1}, Ljava/io/EOFException;->()V check-cast p1, Ljava/lang/Throwable; throw p1 .end method .method public select(Lokio/Options;)I .registers 5 const-string v0, "options" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x2 const/4 v1, 0x0 const/4 v2, 0x0 .line 1326 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_11 move v0, v1 goto :goto_1f .line 1330 :cond_11 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 1331 invoke-virtual {p0, v1, v2}, Lokio/Buffer;->skip(J)V :goto_1f return v0 .end method .method public final setSize$okio(J)V .registers 3 .line 73 iput-wide p1, p0, Lokio/Buffer;->size:J return-void .end method .method public final sha1()Lokio/ByteString; .registers 2 .line 501 const-string v0, "SHA-1" invoke-direct {p0, v0}, Lokio/Buffer;->digest(Ljava/lang/String;)Lokio/ByteString; move-result-object v0 return-object v0 .end method .method public final sha256()Lokio/ByteString; .registers 2 .line 504 const-string v0, "SHA-256" invoke-direct {p0, v0}, Lokio/Buffer;->digest(Ljava/lang/String;)Lokio/ByteString; move-result-object v0 return-object v0 .end method .method public final sha512()Lokio/ByteString; .registers 2 .line 507 const-string v0, "SHA-512" invoke-direct {p0, v0}, Lokio/Buffer;->digest(Ljava/lang/String;)Lokio/ByteString; move-result-object v0 return-object v0 .end method .method public final size()J .registers 3 .line 73 iget-wide v0, p0, Lokio/Buffer;->size:J return-wide v0 .end method .method public skip(J)V .registers 9 .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_3e .line 1474 iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; if-eqz v0, :cond_36 .line 1476 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 1477 invoke-static {p1, p2, v1, v2}, Ljava/lang/Math;->min(JJ)J move-result-wide v1 long-to-int v1, v1 .line 1478 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 1480 iget v2, v0, Lokio/Segment;->pos:I add-int/2addr v2, v1 iput v2, v0, Lokio/Segment;->pos:I .line 1482 iget v1, v0, Lokio/Segment;->pos:I iget v2, v0, Lokio/Segment;->limit:I if-ne v1, v2, :cond_0 .line 1483 invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment; move-result-object v1 iput-object v1, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1484 sget-object v1, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool; invoke-virtual {v1, v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V goto :goto_0 .line 1474 :cond_36 new-instance p1, Ljava/io/EOFException; invoke-direct {p1}, Ljava/io/EOFException;->()V check-cast p1, Ljava/lang/Throwable; throw p1 :cond_3e return-void .end method .method public final snapshot()Lokio/ByteString; .registers 5 .line 2115 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_e const/4 v0, 0x1 goto :goto_f :cond_e const/4 v0, 0x0 :goto_f if-eqz v0, :cond_1b .line 2116 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 v0 return-object v0 .line 2115 :cond_1b 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 v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 new-instance v1, Ljava/lang/IllegalStateException; invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast v1, Ljava/lang/Throwable; throw v1 .end method .method public final snapshot(I)Lokio/ByteString; .registers 9 if-nez p1, :cond_5 .line 2117 sget-object p1, Lokio/ByteString;->EMPTY:Lokio/ByteString; goto :goto_70 .line 2118 :cond_5 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 .line 2123 iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; const/4 v1, 0x0 move v2, v1 move v3, v2 :goto_14 if-ge v2, p1, :cond_36 if-nez v0, :cond_1b .line 2125 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_1b iget v4, v0, Lokio/Segment;->limit:I iget v5, v0, Lokio/Segment;->pos:I if-eq v4, v5, :cond_2c .line 2128 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 2130 iget-object v0, v0, Lokio/Segment;->next:Lokio/Segment; goto :goto_14 .line 2126 :cond_2c new-instance p1, Ljava/lang/AssertionError; const-string v0, "s.limit == s.pos" invoke-direct {p1, v0}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V check-cast p1, Ljava/lang/Throwable; throw p1 .line 2134 :cond_36 new-array v0, v3, [[B mul-int/lit8 v3, v3, 0x2 .line 2135 new-array v2, v3, [I .line 2138 iget-object v3, p0, Lokio/Buffer;->head:Lokio/Segment; move-object v4, v3 move v3, v1 :goto_40 if-ge v1, p1, :cond_67 if-nez v4, :cond_47 .line 2140 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_47 iget-object v5, v4, Lokio/Segment;->data:[B aput-object v5, v0, v3 .line 2141 iget v5, v4, Lokio/Segment;->limit:I iget v6, v4, Lokio/Segment;->pos:I sub-int/2addr v5, v6 add-int/2addr v1, v5 .line 2143 invoke-static {v1, p1}, Ljava/lang/Math;->min(II)I move-result v5 aput v5, v2, v3 .line 2144 move-object v5, v0 check-cast v5, [Ljava/lang/Object; array-length v5, v5 add-int/2addr v5, v3 iget v6, v4, Lokio/Segment;->pos:I aput v6, v2, v5 const/4 v5, 0x1 .line 2145 iput-boolean v5, v4, Lokio/Segment;->shared:Z add-int/2addr v3, v5 .line 2147 iget-object v4, v4, Lokio/Segment;->next:Lokio/Segment; goto :goto_40 .line 2150 :cond_67 new-instance p1, Lokio/SegmentedByteString; check-cast v0, [[B invoke-direct {p1, v0, v2}, Lokio/SegmentedByteString;->([[B[I)V check-cast p1, Lokio/ByteString; :goto_70 return-object p1 .end method .method public timeout()Lokio/Timeout; .registers 2 .line 495 sget-object v0, Lokio/Timeout;->NONE:Lokio/Timeout; return-object v0 .end method .method public toString()Ljava/lang/String; .registers 2 .line 557 invoke-virtual {p0}, Lokio/Buffer;->snapshot()Lokio/ByteString; move-result-object v0 invoke-virtual {v0}, Lokio/ByteString;->toString()Ljava/lang/String; move-result-object v0 return-object v0 .end method .method public final writableSegment$okio(I)Lokio/Segment; .registers 5 const/16 v0, 0x2000 const/4 v1, 0x1 if-lt p1, v1, :cond_8 if-gt p1, v0, :cond_8 goto :goto_9 :cond_8 const/4 v1, 0x0 :goto_9 if-eqz v1, :cond_3f .line 1808 iget-object v1, p0, Lokio/Buffer;->head:Lokio/Segment; if-nez v1, :cond_1c .line 1809 sget-object p1, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool; invoke-virtual {p1}, Lokio/SegmentPool;->take()Lokio/Segment; move-result-object p1 .line 1810 iput-object p1, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1811 iput-object p1, p1, Lokio/Segment;->prev:Lokio/Segment; .line 1812 iput-object p1, p1, Lokio/Segment;->next:Lokio/Segment; goto :goto_3e :cond_1c if-nez v1, :cond_21 .line 1816 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_21 iget-object v1, v1, Lokio/Segment;->prev:Lokio/Segment; if-nez v1, :cond_28 .line 1817 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_28 iget v2, v1, Lokio/Segment;->limit:I add-int/2addr v2, p1 if-gt v2, v0, :cond_34 iget-boolean p1, v1, Lokio/Segment;->owner:Z if-nez p1, :cond_32 goto :goto_34 :cond_32 move-object p1, v1 goto :goto_3e .line 1818 :cond_34 :goto_34 sget-object p1, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool; invoke-virtual {p1}, Lokio/SegmentPool;->take()Lokio/Segment; move-result-object p1 invoke-virtual {v1, p1}, Lokio/Segment;->push(Lokio/Segment;)Lokio/Segment; move-result-object p1 :goto_3e return-object p1 .line 1806 :cond_3f new-instance p1, Ljava/lang/IllegalArgumentException; const-string v0, "unexpected capacity" invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p1, Ljava/lang/Throwable; throw p1 .end method .method public write(Ljava/nio/ByteBuffer;)I .registers 8 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "source" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 409 invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I move-result v0 move v1, v0 :goto_a if-lez v1, :cond_27 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_a .line 421 :cond_27 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; .registers 4 const-string v0, "byteString" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x0 .line 1489 invoke-virtual {p1}, Lokio/ByteString;->size()I move-result v1 .line 1491 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; .registers 5 const-string v0, "byteString" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 1493 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; .registers 8 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "source" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V :goto_5 const-wide/16 v0, 0x0 cmp-long v0, p2, v0 if-lez v0, :cond_1f .line 1662 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_17 sub-long/2addr p2, v0 goto :goto_5 .line 1663 :cond_17 new-instance p1, Ljava/io/EOFException; invoke-direct {p1}, Ljava/io/EOFException;->()V check-cast p1, Ljava/lang/Throwable; throw p1 :cond_1f return-object p0 .end method .method public write([B)Lokio/Buffer; .registers 4 const-string v0, "source" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x0 .line 1631 array-length v1, p1 invoke-virtual {p0, p1, v0, v1}, Lokio/Buffer;->write([BII)Lokio/Buffer; move-result-object p1 return-object p1 .end method .method public write([BII)Lokio/Buffer; .registers 13 const-string v0, "source" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 1633 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_e if-ge p2, p3, :cond_2f const/4 v0, 0x1 .line 1637 invoke-virtual {p0, v0}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v0 sub-int v1, p3, p2 .line 1639 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 1641 iget-object v2, v0, Lokio/Segment;->data:[B .line 1642 iget v3, v0, Lokio/Segment;->limit:I add-int v4, p2, v1 .line 1640 invoke-static {p1, v2, v3, p2, v4}, Lkotlin/collections/ArraysKt;->copyInto([B[BIII)[B .line 1648 iget p2, v0, Lokio/Segment;->limit:I add-int/2addr p2, v1 iput p2, v0, Lokio/Segment;->limit:I move p2, v4 goto :goto_e .line 1651 :cond_2f 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; .registers 2 .line 69 invoke-virtual {p0, p1}, Lokio/Buffer;->write(Lokio/ByteString;)Lokio/Buffer; move-result-object p1 check-cast p1, Lokio/BufferedSink; return-object p1 .end method .method public bridge synthetic write(Lokio/ByteString;II)Lokio/BufferedSink; .registers 4 .line 69 invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->write(Lokio/ByteString;II)Lokio/Buffer; move-result-object p1 check-cast p1, Lokio/BufferedSink; return-object p1 .end method .method public bridge synthetic write(Lokio/Source;J)Lokio/BufferedSink; .registers 4 .line 69 invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->write(Lokio/Source;J)Lokio/Buffer; move-result-object p1 check-cast p1, Lokio/BufferedSink; return-object p1 .end method .method public bridge synthetic write([B)Lokio/BufferedSink; .registers 2 .line 69 invoke-virtual {p0, p1}, Lokio/Buffer;->write([B)Lokio/Buffer; move-result-object p1 check-cast p1, Lokio/BufferedSink; return-object p1 .end method .method public bridge synthetic write([BII)Lokio/BufferedSink; .registers 4 .line 69 invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->write([BII)Lokio/Buffer; move-result-object p1 check-cast p1, Lokio/BufferedSink; return-object p1 .end method .method public write(Lokio/Buffer;J)V .registers 12 const-string v0, "source" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x0 if-eq p1, p0, :cond_a const/4 v1, 0x1 goto :goto_b :cond_a move v1, v0 :goto_b if-eqz v1, :cond_ce .line 1823 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_17 const-wide/16 v1, 0x0 cmp-long v1, p2, v1 if-lez v1, :cond_cd .line 1827 iget-object v1, p1, Lokio/Buffer;->head:Lokio/Segment; if-nez v1, :cond_24 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_24 iget v1, v1, Lokio/Segment;->limit:I iget-object v2, p1, Lokio/Buffer;->head:Lokio/Segment; if-nez v2, :cond_2d invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_2d 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_87 .line 1828 iget-object v1, p0, Lokio/Buffer;->head:Lokio/Segment; if-eqz v1, :cond_41 if-nez v1, :cond_3e invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_3e iget-object v1, v1, Lokio/Segment;->prev:Lokio/Segment; goto :goto_42 :cond_41 const/4 v1, 0x0 :goto_42 if-eqz v1, :cond_79 .line 1830 iget-boolean v2, v1, Lokio/Segment;->owner:Z if-eqz v2, :cond_79 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_52 move v4, v0 goto :goto_54 :cond_52 iget v4, v1, Lokio/Segment;->pos:I :goto_54 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_79 .line 1832 iget-object v0, p1, Lokio/Buffer;->head:Lokio/Segment; if-nez v0, :cond_64 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_64 long-to-int v2, p2 invoke-virtual {v0, v1, v2}, Lokio/Segment;->writeTo(Lokio/Segment;I)V .line 1833 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 1834 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_cd .line 1839 :cond_79 iget-object v1, p1, Lokio/Buffer;->head:Lokio/Segment; if-nez v1, :cond_80 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_80 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 1844 :cond_87 iget-object v1, p1, Lokio/Buffer;->head:Lokio/Segment; if-nez v1, :cond_8e .line 1845 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_8e 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 1846 invoke-virtual {v1}, Lokio/Segment;->pop()Lokio/Segment; move-result-object v4 iput-object v4, p1, Lokio/Buffer;->head:Lokio/Segment; .line 1847 iget-object v4, p0, Lokio/Buffer;->head:Lokio/Segment; if-nez v4, :cond_a7 .line 1848 iput-object v1, p0, Lokio/Buffer;->head:Lokio/Segment; .line 1849 iput-object v1, v1, Lokio/Segment;->prev:Lokio/Segment; .line 1850 iget-object v4, v1, Lokio/Segment;->prev:Lokio/Segment; iput-object v4, v1, Lokio/Segment;->next:Lokio/Segment; goto :goto_ba :cond_a7 if-nez v4, :cond_ac .line 1852 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_ac iget-object v4, v4, Lokio/Segment;->prev:Lokio/Segment; if-nez v4, :cond_b3 .line 1853 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_b3 invoke-virtual {v4, v1}, Lokio/Segment;->push(Lokio/Segment;)Lokio/Segment; move-result-object v1 .line 1854 invoke-virtual {v1}, Lokio/Segment;->compact()V .line 1856 :goto_ba 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 1857 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_17 :cond_cd :goto_cd return-void .line 1822 :cond_ce new-instance p1, Ljava/lang/IllegalArgumentException; const-string p2, "source == this" invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p2 invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p1, Ljava/lang/Throwable; throw p1 .end method .method public writeAll(Lokio/Source;)J .registers 8 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "source" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const-wide/16 v0, 0x0 :goto_7 const/16 v2, 0x2000 int-to-long v2, v2 .line 1655 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_15 return-wide v0 :cond_15 add-long/2addr v0, v2 goto :goto_7 .end method .method public writeByte(I)Lokio/Buffer; .registers 6 const/4 v0, 0x1 .line 1667 invoke-virtual {p0, v0}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v0 .line 1668 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 1669 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; .registers 2 .line 69 invoke-virtual {p0, p1}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; move-result-object p1 check-cast p1, Lokio/BufferedSink; return-object p1 .end method .method public writeDecimalLong(J)Lokio/Buffer; .registers 15 const-wide/16 v0, 0x0 cmp-long v2, p1, v0 if-nez v2, :cond_e const/16 p1, 0x30 .line 1706 invoke-virtual {p0, p1}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; move-result-object p1 goto/16 :goto_11f :cond_e const/4 v3, 0x1 if-gez v2, :cond_20 neg-long p1, p1 cmp-long v2, p1, v0 if-gez v2, :cond_1e .line 1713 const-string p1, "-9223372036854775808" invoke-virtual {p0, p1}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;)Lokio/Buffer; move-result-object p1 goto/16 :goto_11f :cond_1e move v2, v3 goto :goto_21 :cond_20 const/4 v2, 0x0 :goto_21 const-wide/32 v4, 0x5f5e100 cmp-long v4, p1, v4 const/16 v5, 0xa if-gez v4, :cond_6f const-wide/16 v6, 0x2710 cmp-long v4, p1, v6 if-gez v4, :cond_4d const-wide/16 v6, 0x64 cmp-long v4, p1, v6 if-gez v4, :cond_41 const-wide/16 v6, 0xa cmp-long v4, p1, v6 if-gez v4, :cond_3e goto/16 :goto_e6 :cond_3e const/4 v3, 0x2 goto/16 :goto_e6 :cond_41 const-wide/16 v3, 0x3e8 cmp-long v3, p1, v3 if-gez v3, :cond_4a const/4 v3, 0x3 goto/16 :goto_e6 :cond_4a const/4 v3, 0x4 goto/16 :goto_e6 :cond_4d const-wide/32 v3, 0xf4240 cmp-long v3, p1, v3 if-gez v3, :cond_61 const-wide/32 v3, 0x186a0 cmp-long v3, p1, v3 if-gez v3, :cond_5e const/4 v3, 0x5 goto/16 :goto_e6 :cond_5e const/4 v3, 0x6 goto/16 :goto_e6 :cond_61 const-wide/32 v3, 0x989680 cmp-long v3, p1, v3 if-gez v3, :cond_6b const/4 v3, 0x7 goto/16 :goto_e6 :cond_6b const/16 v3, 0x8 goto/16 :goto_e6 :cond_6f const-wide v3, 0xe8d4a51000L cmp-long v3, p1, v3 if-gez v3, :cond_9c const-wide v3, 0x2540be400L cmp-long v3, p1, v3 if-gez v3, :cond_8d const-wide/32 v3, 0x3b9aca00 cmp-long v3, p1, v3 if-gez v3, :cond_8b const/16 v3, 0x9 goto :goto_e6 :cond_8b move v3, v5 goto :goto_e6 :cond_8d const-wide v3, 0x174876e800L cmp-long v3, p1, v3 if-gez v3, :cond_99 const/16 v3, 0xb goto :goto_e6 :cond_99 const/16 v3, 0xc goto :goto_e6 :cond_9c const-wide v3, 0x38d7ea4c68000L cmp-long v3, p1, v3 if-gez v3, :cond_c0 const-wide v3, 0x9184e72a000L cmp-long v3, p1, v3 if-gez v3, :cond_b1 const/16 v3, 0xd goto :goto_e6 :cond_b1 const-wide v3, 0x5af3107a4000L cmp-long v3, p1, v3 if-gez v3, :cond_bd const/16 v3, 0xe goto :goto_e6 :cond_bd const/16 v3, 0xf goto :goto_e6 :cond_c0 const-wide v3, 0x16345785d8a0000L cmp-long v3, p1, v3 if-gez v3, :cond_d8 const-wide v3, 0x2386f26fc10000L cmp-long v3, p1, v3 if-gez v3, :cond_d5 const/16 v3, 0x10 goto :goto_e6 :cond_d5 const/16 v3, 0x11 goto :goto_e6 :cond_d8 const-wide v3, 0xde0b6b3a7640000L cmp-long v3, p1, v3 if-gez v3, :cond_e4 const/16 v3, 0x12 goto :goto_e6 :cond_e4 const/16 v3, 0x13 :goto_e6 if-eqz v2, :cond_ea add-int/lit8 v3, v3, 0x1 .line 1751 :cond_ea invoke-virtual {p0, v3}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v4 .line 1752 iget-object v6, v4, Lokio/Segment;->data:[B .line 1753 iget v7, v4, Lokio/Segment;->limit:I add-int/2addr v7, v3 :goto_f3 cmp-long v8, p1, v0 if-eqz v8, :cond_107 int-to-long v8, v5 .line 1755 rem-long v10, p1, v8 long-to-int v10, v10 add-int/lit8 v7, v7, -0x1 .line 1756 invoke-static {}, Lokio/internal/BufferKt;->getHEX_DIGIT_BYTES()[B move-result-object v11 aget-byte v10, v11, v10 aput-byte v10, v6, v7 .line 1757 div-long/2addr p1, v8 goto :goto_f3 :cond_107 if-eqz v2, :cond_110 add-int/lit8 v7, v7, -0x1 const/16 p1, 0x2d int-to-byte p1, p1 .line 1760 aput-byte p1, v6, v7 .line 1763 :cond_110 iget p1, v4, Lokio/Segment;->limit:I add-int/2addr p1, v3 iput p1, v4, Lokio/Segment;->limit:I .line 1764 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 move-object p1, p0 :goto_11f return-object p1 .end method .method public bridge synthetic writeDecimalLong(J)Lokio/BufferedSink; .registers 3 .line 69 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->writeDecimalLong(J)Lokio/Buffer; move-result-object p1 check-cast p1, Lokio/BufferedSink; return-object p1 .end method .method public writeHexadecimalUnsignedLong(J)Lokio/Buffer; .registers 15 const-wide/16 v0, 0x0 cmp-long v0, p1, v0 if-nez v0, :cond_d const/16 p1, 0x30 .line 1769 invoke-virtual {p0, p1}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; move-result-object p1 goto :goto_84 :cond_d 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 1792 div-long/2addr v8, v1 long-to-int v1, v8 .line 1794 invoke-virtual {p0, v1}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v2 .line 1795 iget-object v3, v2, Lokio/Segment;->data:[B .line 1796 iget v5, v2, Lokio/Segment;->limit:I add-int/2addr v5, v1 sub-int/2addr v5, v0 .line 1797 iget v0, v2, Lokio/Segment;->limit:I :goto_63 if-lt v5, v0, :cond_75 .line 1799 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_63 .line 1803 :cond_75 iget p1, v2, Lokio/Segment;->limit:I add-int/2addr p1, v1 iput p1, v2, Lokio/Segment;->limit:I .line 1804 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 move-object p1, p0 :goto_84 return-object p1 .end method .method public bridge synthetic writeHexadecimalUnsignedLong(J)Lokio/BufferedSink; .registers 3 .line 69 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->writeHexadecimalUnsignedLong(J)Lokio/Buffer; move-result-object p1 check-cast p1, Lokio/BufferedSink; return-object p1 .end method .method public writeInt(I)Lokio/Buffer; .registers 9 const/4 v0, 0x4 .line 1679 invoke-virtual {p0, v0}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v1 .line 1680 iget-object v2, v1, Lokio/Segment;->data:[B .line 1681 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 1682 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 1683 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 1684 aput-byte v6, v2, v5 add-int/2addr v3, v0 and-int/lit16 p1, p1, 0xff int-to-byte p1, p1 .line 1685 aput-byte p1, v2, v4 .line 1686 iput v3, v1, Lokio/Segment;->limit:I .line 1687 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; .registers 2 .line 69 invoke-virtual {p0, p1}, Lokio/Buffer;->writeInt(I)Lokio/Buffer; move-result-object p1 check-cast p1, Lokio/BufferedSink; return-object p1 .end method .method public writeIntLe(I)Lokio/Buffer; .registers 2 .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 p1 return-object p1 .end method .method public bridge synthetic writeIntLe(I)Lokio/BufferedSink; .registers 2 .line 69 invoke-virtual {p0, p1}, Lokio/Buffer;->writeIntLe(I)Lokio/Buffer; move-result-object p1 check-cast p1, Lokio/BufferedSink; return-object p1 .end method .method public writeLong(J)Lokio/Buffer; .registers 14 const/16 v0, 0x8 .line 1689 invoke-virtual {p0, v0}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v1 .line 1690 iget-object v2, v1, Lokio/Segment;->data:[B .line 1691 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 1692 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 1693 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 1694 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 1695 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 1696 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 1697 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 1698 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 1699 aput-byte p1, v2, v4 .line 1700 iput v3, v1, Lokio/Segment;->limit:I .line 1701 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; .registers 3 .line 69 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->writeLong(J)Lokio/Buffer; move-result-object p1 check-cast p1, Lokio/BufferedSink; return-object p1 .end method .method public writeLongLe(J)Lokio/Buffer; .registers 3 .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 p1 return-object p1 .end method .method public bridge synthetic writeLongLe(J)Lokio/BufferedSink; .registers 3 .line 69 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->writeLongLe(J)Lokio/Buffer; move-result-object p1 check-cast p1, Lokio/BufferedSink; return-object p1 .end method .method public writeShort(I)Lokio/Buffer; .registers 8 const/4 v0, 0x2 .line 1671 invoke-virtual {p0, v0}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v1 .line 1672 iget-object v2, v1, Lokio/Segment;->data:[B .line 1673 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 1674 aput-byte v5, v2, v3 add-int/2addr v3, v0 and-int/lit16 p1, p1, 0xff int-to-byte p1, p1 .line 1675 aput-byte p1, v2, v4 .line 1676 iput v3, v1, Lokio/Segment;->limit:I .line 1677 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; .registers 2 .line 69 invoke-virtual {p0, p1}, Lokio/Buffer;->writeShort(I)Lokio/Buffer; move-result-object p1 check-cast p1, Lokio/BufferedSink; return-object p1 .end method .method public writeShortLe(I)Lokio/Buffer; .registers 2 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 p1 return-object p1 .end method .method public bridge synthetic writeShortLe(I)Lokio/BufferedSink; .registers 2 .line 69 invoke-virtual {p0, p1}, Lokio/Buffer;->writeShortLe(I)Lokio/Buffer; move-result-object p1 check-cast p1, Lokio/BufferedSink; return-object p1 .end method .method public writeString(Ljava/lang/String;IILjava/nio/charset/Charset;)Lokio/Buffer; .registers 8 const-string v0, "string" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "charset" invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x1 const/4 v1, 0x0 if-ltz p2, :cond_10 move v2, v0 goto :goto_11 :cond_10 move v2, v1 :goto_11 if-eqz v2, :cond_a1 if-lt p3, p2, :cond_17 move v2, v0 goto :goto_18 :cond_17 move v2, v1 :goto_18 if-eqz v2, :cond_7c .line 393 invoke-virtual {p1}, Ljava/lang/String;->length()I move-result v2 if-gt p3, v2, :cond_21 goto :goto_22 :cond_21 move v0, v1 :goto_22 if-eqz v0, :cond_53 .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_31 invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;II)Lokio/Buffer; move-result-object p1 return-object p1 .line 395 :cond_31 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;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V if-eqz p1, :cond_4b 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;->checkExpressionValueIsNotNull(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 p1 return-object p1 .line 395 :cond_4b new-instance p1, Lkotlin/TypeCastException; const-string p2, "null cannot be cast to non-null type java.lang.String" invoke-direct {p1, p2}, Lkotlin/TypeCastException;->(Ljava/lang/String;)V throw p1 .line 393 :cond_53 new-instance p2, Ljava/lang/StringBuilder; const-string p4, "endIndex > string.length: " invoke-direct {p2, p4}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p2 const-string p3, " > " invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p2 invoke-virtual {p1}, Ljava/lang/String;->length()I move-result p1 invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 new-instance p2, Ljava/lang/IllegalArgumentException; invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p2, Ljava/lang/Throwable; throw p2 .line 392 :cond_7c new-instance p1, Ljava/lang/StringBuilder; const-string p4, "endIndex < beginIndex: " invoke-direct {p1, p4}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p1 const-string p3, " < " invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 new-instance p2, Ljava/lang/IllegalArgumentException; invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p2, Ljava/lang/Throwable; throw p2 .line 391 :cond_a1 new-instance p1, Ljava/lang/StringBuilder; const-string p3, "beginIndex < 0: " invoke-direct {p1, p3}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 new-instance p2, Ljava/lang/IllegalArgumentException; invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p2, Ljava/lang/Throwable; throw p2 .end method .method public writeString(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/Buffer; .registers 5 const-string v0, "string" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "charset" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(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 p1 return-object p1 .end method .method public bridge synthetic writeString(Ljava/lang/String;IILjava/nio/charset/Charset;)Lokio/BufferedSink; .registers 5 .line 69 invoke-virtual {p0, p1, p2, p3, p4}, Lokio/Buffer;->writeString(Ljava/lang/String;IILjava/nio/charset/Charset;)Lokio/Buffer; move-result-object p1 check-cast p1, Lokio/BufferedSink; return-object p1 .end method .method public bridge synthetic writeString(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/BufferedSink; .registers 3 .line 69 invoke-virtual {p0, p1, p2}, Lokio/Buffer;->writeString(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/Buffer; move-result-object p1 check-cast p1, Lokio/BufferedSink; return-object p1 .end method .method public final writeTo(Ljava/io/OutputStream;)Lokio/Buffer; .registers 8 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const/4 v4, 0x2 const/4 v5, 0x0 const-wide/16 v2, 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 p1 return-object p1 .end method .method public final writeTo(Ljava/io/OutputStream;J)Lokio/Buffer; .registers 11 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "out" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 186 iget-wide v1, p0, Lokio/Buffer;->size:J const-wide/16 v3, 0x0 move-wide v5, p2 invoke-static/range {v1 .. v6}, Lokio/-Util;->checkOffsetAndCount(JJJ)V .line 188 iget-object v0, p0, Lokio/Buffer;->head:Lokio/Segment; :cond_f :goto_f const-wide/16 v1, 0x0 cmp-long v1, p2, v1 if-lez v1, :cond_4b if-nez v0, :cond_1a .line 190 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_1a 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 .line 194 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_f .line 199 invoke-virtual {v0}, Lokio/Segment;->pop()Lokio/Segment; move-result-object v1 .line 200 iput-object v1, p0, Lokio/Buffer;->head:Lokio/Segment; .line 201 sget-object v2, Lokio/SegmentPool;->INSTANCE:Lokio/SegmentPool; invoke-virtual {v2, v0}, Lokio/SegmentPool;->recycle(Lokio/Segment;)V move-object v0, v1 goto :goto_f :cond_4b return-object p0 .end method .method public writeUtf8(Ljava/lang/String;)Lokio/Buffer; .registers 4 const-string v0, "string" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(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 p1 return-object p1 .end method .method public writeUtf8(Ljava/lang/String;II)Lokio/Buffer; .registers 16 const-string v0, "string" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x0 const/4 v1, 0x1 if-ltz p2, :cond_b move v2, v1 goto :goto_c :cond_b move v2, v0 :goto_c if-eqz v2, :cond_194 if-lt p3, p2, :cond_12 move v2, v1 goto :goto_13 :cond_12 move v2, v0 :goto_13 if-eqz v2, :cond_16f .line 1497 invoke-virtual {p1}, Ljava/lang/String;->length()I move-result v2 if-gt p3, v2, :cond_1d move v2, v1 goto :goto_1e :cond_1d move v2, v0 :goto_1e if-eqz v2, :cond_146 :goto_20 if-ge p2, p3, :cond_145 .line 1502 invoke-virtual {p1, p2}, Ljava/lang/String;->charAt(I)C move-result v2 const/16 v3, 0x80 if-ge v2, v3, :cond_64 .line 1506 invoke-virtual {p0, v1}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v4 .line 1507 iget-object v5, v4, Lokio/Segment;->data:[B .line 1508 iget v6, v4, Lokio/Segment;->limit:I sub-int/2addr v6, p2 rsub-int v7, v6, 0x2000 .line 1509 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 1512 aput-byte v2, v5, p2 :goto_3f if-ge v8, v7, :cond_50 .line 1517 invoke-virtual {p1, v8}, Ljava/lang/String;->charAt(I)C move-result p2 if-lt p2, v3, :cond_48 goto :goto_50 :cond_48 add-int/lit8 v2, v8, 0x1 add-int/2addr v8, v6 int-to-byte p2, p2 .line 1519 aput-byte p2, v5, v8 move v8, v2 goto :goto_3f :cond_50 :goto_50 add-int/2addr v6, v8 .line 1522 iget p2, v4, Lokio/Segment;->limit:I sub-int/2addr v6, p2 .line 1523 iget p2, v4, Lokio/Segment;->limit:I add-int/2addr p2, v6 iput p2, v4, Lokio/Segment;->limit:I .line 1524 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_62 move p2, v8 goto :goto_20 :cond_64 const/16 v4, 0x800 const/4 v5, 0x2 if-ge v2, v4, :cond_95 .line 1529 invoke-virtual {p0, v5}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v4 .line 1531 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 1532 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 1534 iget v2, v4, Lokio/Segment;->limit:I add-int/2addr v2, v5 iput v2, v4, Lokio/Segment;->limit:I .line 1535 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_92 add-int/lit8 p2, p2, 0x1 goto :goto_20 :cond_95 const v4, 0xd800 const/4 v6, 0x3 const/16 v7, 0x3f if-lt v2, v4, :cond_10e const v4, 0xdfff if-le v2, v4, :cond_a3 goto :goto_10e :cond_a3 add-int/lit8 v8, p2, 0x1 if-ge v8, p3, :cond_ac .line 1556 invoke-virtual {p1, v8}, Ljava/lang/String;->charAt(I)C move-result v9 goto :goto_ad :cond_ac move v9, v0 :goto_ad const v10, 0xdbff if-gt v2, v10, :cond_109 const v10, 0xdc00 if-gt v10, v9, :cond_109 if-ge v4, v9, :cond_ba goto :goto_109 :cond_ba 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 1567 invoke-virtual {p0, v4}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v8 .line 1569 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 1570 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 1571 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 1572 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 1574 iget v2, v8, Lokio/Segment;->limit:I add-int/2addr v2, v4 iput v2, v8, Lokio/Segment;->limit:I .line 1575 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_20 .line 1558 :cond_109 :goto_109 invoke-virtual {p0, v7}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; goto/16 :goto_62 .line 1541 :cond_10e :goto_10e invoke-virtual {p0, v6}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v4 .line 1543 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 1544 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 1545 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 1547 iget v2, v4, Lokio/Segment;->limit:I add-int/2addr v2, v6 iput v2, v4, Lokio/Segment;->limit:I .line 1548 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_92 :cond_145 return-object p0 .line 1497 :cond_146 new-instance p2, Ljava/lang/StringBuilder; const-string v0, "endIndex > string.length: " invoke-direct {p2, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p2 const-string p3, " > " invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p2 invoke-virtual {p1}, Ljava/lang/String;->length()I move-result p1 invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 new-instance p2, Ljava/lang/IllegalArgumentException; invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p2, Ljava/lang/Throwable; throw p2 .line 1496 :cond_16f new-instance p1, Ljava/lang/StringBuilder; const-string v0, "endIndex < beginIndex: " invoke-direct {p1, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p1 const-string p3, " < " invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 new-instance p2, Ljava/lang/IllegalArgumentException; invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p2, Ljava/lang/Throwable; throw p2 .line 1495 :cond_194 new-instance p1, Ljava/lang/StringBuilder; const-string p3, "beginIndex < 0: " invoke-direct {p1, p3}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 new-instance p2, Ljava/lang/IllegalArgumentException; invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p2, Ljava/lang/Throwable; throw p2 .end method .method public bridge synthetic writeUtf8(Ljava/lang/String;)Lokio/BufferedSink; .registers 2 .line 69 invoke-virtual {p0, p1}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;)Lokio/Buffer; move-result-object p1 check-cast p1, Lokio/BufferedSink; return-object p1 .end method .method public bridge synthetic writeUtf8(Ljava/lang/String;II)Lokio/BufferedSink; .registers 4 .line 69 invoke-virtual {p0, p1, p2, p3}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;II)Lokio/Buffer; move-result-object p1 check-cast p1, Lokio/BufferedSink; return-object p1 .end method .method public writeUtf8CodePoint(I)Lokio/Buffer; .registers 11 const/16 v0, 0x80 if-ge p1, v0, :cond_9 .line 1586 invoke-virtual {p0, p1}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; goto/16 :goto_cd :cond_9 const/16 v1, 0x800 const/4 v2, 0x2 const/16 v3, 0x3f if-ge p1, v1, :cond_3b .line 1590 invoke-virtual {p0, v2}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v1 .line 1592 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 1593 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 1595 iget p1, v1, Lokio/Segment;->limit:I add-int/2addr p1, v2 iput p1, v1, Lokio/Segment;->limit:I .line 1596 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_cd :cond_3b const v1, 0xd800 if-le v1, p1, :cond_41 goto :goto_4b :cond_41 const v1, 0xdfff if-lt v1, p1, :cond_4b .line 1600 invoke-virtual {p0, v3}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; goto/16 :goto_cd :cond_4b :goto_4b const/high16 v1, 0x10000 const/4 v4, 0x3 if-ge p1, v1, :cond_86 .line 1604 invoke-virtual {p0, v4}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v1 .line 1606 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 1607 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 1608 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 1610 iget p1, v1, Lokio/Segment;->limit:I add-int/2addr p1, v4 iput p1, v1, Lokio/Segment;->limit:I .line 1611 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_cd :cond_86 const v1, 0x10ffff if-gt p1, v1, :cond_ce const/4 v1, 0x4 .line 1615 invoke-virtual {p0, v1}, Lokio/Buffer;->writableSegment$okio(I)Lokio/Segment; move-result-object v5 .line 1617 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 1618 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 1619 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 1620 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 1622 iget p1, v5, Lokio/Segment;->limit:I add-int/2addr p1, v1 iput p1, v5, Lokio/Segment;->limit:I .line 1623 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_cd return-object p0 .line 1626 :cond_ce new-instance v0, Ljava/lang/IllegalArgumentException; new-instance v1, Ljava/lang/StringBuilder; const-string v2, "Unexpected code point: 0x" invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-static {p1}, Lokio/-Util;->toHexString(I)Ljava/lang/String; move-result-object p1 invoke-virtual {v1, 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 {v0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast v0, Ljava/lang/Throwable; throw v0 .end method .method public bridge synthetic writeUtf8CodePoint(I)Lokio/BufferedSink; .registers 2 .line 69 invoke-virtual {p0, p1}, Lokio/Buffer;->writeUtf8CodePoint(I)Lokio/Buffer; move-result-object p1 check-cast p1, Lokio/BufferedSink; return-object p1 .end method