.class public final Lokio/RealBufferedSink; .super Ljava/lang/Object; .source "RealBufferedSink.kt" # interfaces .implements Lokio/BufferedSink; # annotations .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nRealBufferedSink.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RealBufferedSink.kt\nokio/RealBufferedSink\n+ 2 RealBufferedSink.kt\nokio/internal/RealBufferedSinkKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,141:1\n50#1:145\n50#1:151\n50#1:156\n50#1:161\n50#1:166\n50#1:171\n50#1:174\n50#1:175\n50#1:179\n50#1:184\n50#1:187\n50#1:191\n50#1:200\n50#1:209\n50#1:214\n50#1:219\n50#1:224\n50#1:229\n50#1:234\n50#1:239\n50#1:244\n50#1:249\n50#1:254\n50#1:260\n50#1:266\n50#1:278\n31#2:142\n32#2:144\n33#2,2:146\n37#2:148\n38#2:150\n39#2:152\n47#2:153\n48#2:155\n49#2:157\n53#2:158\n54#2:160\n55#2:162\n63#2:163\n64#2:165\n65#2:167\n69#2:168\n70#2:170\n71#2:172\n75#2:176\n76#2:178\n77#2:180\n85#2:181\n86#2:183\n87#2:185\n91#2,3:188\n94#2,5:192\n102#2,3:197\n105#2,5:201\n113#2:206\n114#2:208\n115#2:210\n119#2:211\n120#2:213\n121#2:215\n125#2:216\n126#2:218\n127#2:220\n131#2:221\n132#2:223\n133#2:225\n137#2:226\n138#2:228\n139#2:230\n143#2:231\n144#2:233\n145#2:235\n149#2:236\n150#2:238\n151#2:240\n155#2:241\n156#2:243\n157#2:245\n161#2:246\n162#2:248\n163#2:250\n167#2:251\n168#2:253\n169#2,2:255\n174#2:257\n175#2:259\n176#2,2:261\n181#2:263\n182#2:265\n183#2,4:267\n189#2,7:271\n196#2,16:279\n213#2:295\n215#2:296\n1#3:143\n1#3:149\n1#3:154\n1#3:159\n1#3:164\n1#3:169\n1#3:173\n1#3:177\n1#3:182\n1#3:186\n1#3:207\n1#3:212\n1#3:217\n1#3:222\n1#3:227\n1#3:232\n1#3:237\n1#3:242\n1#3:247\n1#3:252\n1#3:258\n1#3:264\n*E\n*S KotlinDebug\n*F\n+ 1 RealBufferedSink.kt\nokio/RealBufferedSink\n*L\n54#1:145\n55#1:151\n57#1:156\n58#1:161\n60#1:166\n62#1:171\n66#1:174\n77#1:175\n81#1:179\n83#1:184\n87#1:187\n92#1:191\n93#1:200\n94#1:209\n95#1:214\n96#1:219\n97#1:224\n98#1:229\n99#1:234\n100#1:239\n101#1:244\n102#1:249\n103#1:254\n104#1:260\n133#1:266\n137#1:278\n54#1:142\n54#1:144\n54#1,2:146\n55#1:148\n55#1:150\n55#1:152\n57#1:153\n57#1:155\n57#1:157\n58#1:158\n58#1:160\n58#1:162\n60#1:163\n60#1:165\n60#1:167\n62#1:168\n62#1:170\n62#1:172\n81#1:176\n81#1:178\n81#1:180\n83#1:181\n83#1:183\n83#1:185\n92#1,3:188\n92#1,5:192\n93#1,3:197\n93#1,5:201\n94#1:206\n94#1:208\n94#1:210\n95#1:211\n95#1:213\n95#1:215\n96#1:216\n96#1:218\n96#1:220\n97#1:221\n97#1:223\n97#1:225\n98#1:226\n98#1:228\n98#1:230\n99#1:231\n99#1:233\n99#1:235\n100#1:236\n100#1:238\n100#1:240\n101#1:241\n101#1:243\n101#1:245\n102#1:246\n102#1:248\n102#1:250\n103#1:251\n103#1:253\n103#1,2:255\n104#1:257\n104#1:259\n104#1,2:261\n133#1:263\n133#1:265\n133#1,4:267\n137#1,7:271\n137#1,16:279\n138#1:295\n139#1:296\n54#1:143\n55#1:149\n57#1:154\n58#1:159\n60#1:164\n62#1:169\n81#1:177\n83#1:182\n94#1:207\n95#1:212\n96#1:217\n97#1:222\n98#1:227\n99#1:232\n100#1:237\n101#1:242\n102#1:247\n103#1:252\n104#1:258\n133#1:264\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; bv = { 0x1, 0x0, 0x3 } d1 = { "\u0000f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0006\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0008\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0012\n\u0002\u0008\u0002\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0011\n\u0002\u0018\u0002\n\u0002\u0008\u0006\u0008\u0000\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0002\u0010\u0004J\u0008\u0010\u0005\u001a\u00020\u0006H\u0016J\u0008\u0010\u000e\u001a\u00020\u000fH\u0016J\u0008\u0010\u0010\u001a\u00020\u0001H\u0016J\u0008\u0010\u0011\u001a\u00020\u0001H\u0016J\u0008\u0010\u0012\u001a\u00020\u000fH\u0016J\u0008\u0010\u0013\u001a\u00020\rH\u0016J\u0008\u0010\u0014\u001a\u00020\u0015H\u0016J\u0008\u0010\u0016\u001a\u00020\u0017H\u0016J\u0008\u0010\u0018\u001a\u00020\u0019H\u0016J\u0010\u0010\u001a\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001dH\u0016J\u0010\u0010\u001a\u001a\u00020\u00012\u0006\u0010\u001c\u001a\u00020\u001eH\u0016J \u0010\u001a\u001a\u00020\u00012\u0006\u0010\u001c\u001a\u00020\u001e2\u0006\u0010\u001f\u001a\u00020\u001b2\u0006\u0010 \u001a\u00020\u001bH\u0016J\u0018\u0010\u001a\u001a\u00020\u000f2\u0006\u0010\u001c\u001a\u00020\u00062\u0006\u0010 \u001a\u00020!H\u0016J\u0010\u0010\u001a\u001a\u00020\u00012\u0006\u0010\"\u001a\u00020#H\u0016J \u0010\u001a\u001a\u00020\u00012\u0006\u0010\"\u001a\u00020#2\u0006\u0010\u001f\u001a\u00020\u001b2\u0006\u0010 \u001a\u00020\u001bH\u0016J\u0018\u0010\u001a\u001a\u00020\u00012\u0006\u0010\u001c\u001a\u00020$2\u0006\u0010 \u001a\u00020!H\u0016J\u0010\u0010%\u001a\u00020!2\u0006\u0010\u001c\u001a\u00020$H\u0016J\u0010\u0010&\u001a\u00020\u00012\u0006\u0010\'\u001a\u00020\u001bH\u0016J\u0010\u0010(\u001a\u00020\u00012\u0006\u0010)\u001a\u00020!H\u0016J\u0010\u0010*\u001a\u00020\u00012\u0006\u0010)\u001a\u00020!H\u0016J\u0010\u0010+\u001a\u00020\u00012\u0006\u0010,\u001a\u00020\u001bH\u0016J\u0010\u0010-\u001a\u00020\u00012\u0006\u0010,\u001a\u00020\u001bH\u0016J\u0010\u0010.\u001a\u00020\u00012\u0006\u0010)\u001a\u00020!H\u0016J\u0010\u0010/\u001a\u00020\u00012\u0006\u0010)\u001a\u00020!H\u0016J\u0010\u00100\u001a\u00020\u00012\u0006\u00101\u001a\u00020\u001bH\u0016J\u0010\u00102\u001a\u00020\u00012\u0006\u00101\u001a\u00020\u001bH\u0016J\u0018\u00103\u001a\u00020\u00012\u0006\u00104\u001a\u00020\u00192\u0006\u00105\u001a\u000206H\u0016J(\u00103\u001a\u00020\u00012\u0006\u00104\u001a\u00020\u00192\u0006\u00107\u001a\u00020\u001b2\u0006\u00108\u001a\u00020\u001b2\u0006\u00105\u001a\u000206H\u0016J\u0010\u00109\u001a\u00020\u00012\u0006\u00104\u001a\u00020\u0019H\u0016J \u00109\u001a\u00020\u00012\u0006\u00104\u001a\u00020\u00192\u0006\u00107\u001a\u00020\u001b2\u0006\u00108\u001a\u00020\u001bH\u0016J\u0010\u0010:\u001a\u00020\u00012\u0006\u0010;\u001a\u00020\u001bH\u0016R\u001b\u0010\u0005\u001a\u00020\u00068\u00d6\u0002X\u0096\u0004\u00a2\u0006\u000c\u0012\u0004\u0008\u0007\u0010\u0008\u001a\u0004\u0008\t\u0010\nR\u0010\u0010\u000b\u001a\u00020\u00068\u0006X\u0087\u0004\u00a2\u0006\u0002\n\u0000R\u0012\u0010\u000c\u001a\u00020\r8\u0006@\u0006X\u0087\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u0010\u0002\u001a\u00020\u00038\u0006X\u0087\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006<" } d2 = { "Lokio/RealBufferedSink;", "Lokio/BufferedSink;", "sink", "Lokio/Sink;", "(Lokio/Sink;)V", "buffer", "Lokio/Buffer;", "getBuffer$annotations", "()V", "getBuffer", "()Lokio/Buffer;", "bufferField", "closed", "", "close", "", "emit", "emitCompleteSegments", "flush", "isOpen", "outputStream", "Ljava/io/OutputStream;", "timeout", "Lokio/Timeout;", "toString", "", "write", "", "source", "Ljava/nio/ByteBuffer;", "", "offset", "byteCount", "", "byteString", "Lokio/ByteString;", "Lokio/Source;", "writeAll", "writeByte", "b", "writeDecimalLong", "v", "writeHexadecimalUnsignedLong", "writeInt", "i", "writeIntLe", "writeLong", "writeLongLe", "writeShort", "s", "writeShortLe", "writeString", "string", "charset", "Ljava/nio/charset/Charset;", "beginIndex", "endIndex", "writeUtf8", "writeUtf8CodePoint", "codePoint", "okio" } k = 0x1 mv = { 0x1, 0x4, 0x0 } .end annotation # instance fields .field public final bufferField:Lokio/Buffer; .field public closed:Z .field public final sink:Lokio/Sink; # direct methods .method public constructor (Lokio/Sink;)V .locals 1 const-string v0, "sink" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 42 invoke-direct {p0}, Ljava/lang/Object;->()V iput-object p1, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink; .line 45 new-instance p1, Lokio/Buffer; invoke-direct {p1}, Lokio/Buffer;->()V iput-object p1, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; return-void .end method .method public static synthetic getBuffer$annotations()V .locals 0 return-void .end method # virtual methods .method public buffer()Lokio/Buffer; .locals 0 iget-object p0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; return-object p0 .end method .method public close()V .locals 5 iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z if-eqz v0, :cond_0 goto :goto_2 :cond_0 const/4 v0, 0x0 .line 275 move-object v1, v0 check-cast v1, Ljava/lang/Throwable; :try_start_0 iget-object v1, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 277 invoke-virtual {v1}, Lokio/Buffer;->size()J move-result-wide v1 const-wide/16 v3, 0x0 cmp-long v1, v1, v3 if-lez v1, :cond_1 iget-object v1, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink; iget-object v2, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 278 invoke-virtual {v2}, Lokio/Buffer;->size()J move-result-wide v3 .line 279 invoke-interface {v1, v2, v3, v4}, Lokio/Sink;->write(Lokio/Buffer;J)V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 goto :goto_0 :catchall_0 move-exception v0 :cond_1 :goto_0 :try_start_1 iget-object v1, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink; .line 286 invoke-interface {v1}, Lokio/Sink;->close()V :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_1 goto :goto_1 :catchall_1 move-exception v1 if-nez v0, :cond_2 move-object v0, v1 :cond_2 :goto_1 const/4 v1, 0x1 iput-boolean v1, p0, Lokio/RealBufferedSink;->closed:Z if-nez v0, :cond_3 :goto_2 return-void .line 293 :cond_3 throw v0 .end method .method public emit()Lokio/BufferedSink; .locals 4 iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_1 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 260 invoke-virtual {v0}, Lokio/Buffer;->size()J move-result-wide v0 const-wide/16 v2, 0x0 cmp-long v2, v0, v2 if-lez v2, :cond_0 iget-object v2, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink; iget-object v3, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 261 invoke-interface {v2, v3, v0, v1}, Lokio/Sink;->write(Lokio/Buffer;J)V .line 262 :cond_0 check-cast p0, Lokio/BufferedSink; return-object p0 .line 257 :cond_1 new-instance p0, Ljava/lang/IllegalStateException; const-string v0, "closed" invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public emitCompleteSegments()Lokio/BufferedSink; .locals 4 iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_1 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 253 invoke-virtual {v0}, Lokio/Buffer;->completeSegmentByteCount()J move-result-wide v0 const-wide/16 v2, 0x0 cmp-long v2, v0, v2 if-lez v2, :cond_0 iget-object v2, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink; iget-object v3, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 255 invoke-interface {v2, v3, v0, v1}, Lokio/Sink;->write(Lokio/Buffer;J)V .line 256 :cond_0 check-cast p0, Lokio/BufferedSink; return-object p0 .line 251 :cond_1 new-instance p0, Ljava/lang/IllegalStateException; const-string v0, "closed" invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public flush()V .locals 4 iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_1 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 265 invoke-virtual {v0}, Lokio/Buffer;->size()J move-result-wide v0 const-wide/16 v2, 0x0 cmp-long v0, v0, v2 if-lez v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink; iget-object v1, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 266 invoke-virtual {v1}, Lokio/Buffer;->size()J move-result-wide v2 .line 267 invoke-interface {v0, v1, v2, v3}, Lokio/Sink;->write(Lokio/Buffer;J)V :cond_0 iget-object p0, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink; .line 269 invoke-interface {p0}, Lokio/Sink;->flush()V return-void .line 263 :cond_1 new-instance p0, Ljava/lang/IllegalStateException; const-string v0, "closed" invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public getBuffer()Lokio/Buffer; .locals 0 iget-object p0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; return-object p0 .end method .method public isOpen()Z .locals 0 iget-boolean p0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 p0, p0, 0x1 return p0 .end method .method public outputStream()Ljava/io/OutputStream; .locals 1 .line 107 new-instance v0, Lokio/RealBufferedSink$outputStream$1; invoke-direct {v0, p0}, Lokio/RealBufferedSink$outputStream$1;->(Lokio/RealBufferedSink;)V check-cast v0, Ljava/io/OutputStream; return-object v0 .end method .method public timeout()Lokio/Timeout; .locals 0 iget-object p0, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink; .line 295 invoke-interface {p0}, Lokio/Sink;->timeout()Lokio/Timeout; move-result-object p0 return-object p0 .end method .method public toString()Ljava/lang/String; .locals 2 .line 296 new-instance v0, Ljava/lang/StringBuilder; const-string v1, "buffer(" invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget-object p0, p0, Lokio/RealBufferedSink;->sink:Lokio/Sink; invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; move-result-object p0 const/16 v0, 0x29 invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public write(Ljava/nio/ByteBuffer;)I .locals 1 const-string v0, "source" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 87 invoke-virtual {v0, p1}, Lokio/Buffer;->write(Ljava/nio/ByteBuffer;)I move-result p1 .line 88 invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink; return p1 .line 86 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "closed" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public write(Lokio/ByteString;)Lokio/BufferedSink; .locals 1 const-string v0, "byteString" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 150 invoke-virtual {v0, p1}, Lokio/Buffer;->write(Lokio/ByteString;)Lokio/Buffer; .line 152 invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink; move-result-object p0 return-object p0 .line 148 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "closed" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public write(Lokio/ByteString;II)Lokio/BufferedSink; .locals 1 const-string v0, "byteString" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 155 invoke-virtual {v0, p1, p2, p3}, Lokio/Buffer;->write(Lokio/ByteString;II)Lokio/Buffer; .line 157 invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink; move-result-object p0 return-object p0 .line 153 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "closed" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public write(Lokio/Source;J)Lokio/BufferedSink; .locals 4 const-string v0, "source" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V :goto_0 const-wide/16 v0, 0x0 cmp-long v0, p2, v0 if-lez v0, :cond_1 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 199 invoke-interface {p1, v0, p2, p3}, Lokio/Source;->read(Lokio/Buffer;J)J move-result-wide v0 const-wide/16 v2, -0x1 cmp-long v2, v0, v2 if-eqz v2, :cond_0 sub-long/2addr p2, v0 .line 203 invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink; goto :goto_0 .line 201 :cond_0 new-instance p0, Ljava/io/EOFException; invoke-direct {p0}, Ljava/io/EOFException;->()V check-cast p0, Ljava/lang/Throwable; throw p0 .line 205 :cond_1 check-cast p0, Lokio/BufferedSink; return-object p0 .end method .method public write([B)Lokio/BufferedSink; .locals 1 const-string v0, "source" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 178 invoke-virtual {v0, p1}, Lokio/Buffer;->write([B)Lokio/Buffer; .line 180 invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink; move-result-object p0 return-object p0 .line 176 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "closed" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public write([BII)Lokio/BufferedSink; .locals 1 const-string v0, "source" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 183 invoke-virtual {v0, p1, p2, p3}, Lokio/Buffer;->write([BII)Lokio/Buffer; .line 185 invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink; move-result-object p0 return-object p0 .line 181 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "closed" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public write(Lokio/Buffer;J)V .locals 1 const-string v0, "source" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 144 invoke-virtual {v0, p1, p2, p3}, Lokio/Buffer;->write(Lokio/Buffer;J)V .line 146 invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink; return-void .line 142 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "closed" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public writeAll(Lokio/Source;)J .locals 6 const-string v0, "source" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-wide/16 v0, 0x0 :goto_0 iget-object v2, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; const/16 v3, 0x2000 int-to-long v3, v3 .line 190 invoke-interface {p1, v2, v3, v4}, Lokio/Source;->read(Lokio/Buffer;J)J move-result-wide v2 const-wide/16 v4, -0x1 cmp-long v4, v2, v4 if-nez v4, :cond_0 return-wide v0 :cond_0 add-long/2addr v0, v2 .line 194 invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink; goto :goto_0 .end method .method public writeByte(I)Lokio/BufferedSink; .locals 1 iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 208 invoke-virtual {v0, p1}, Lokio/Buffer;->writeByte(I)Lokio/Buffer; .line 210 invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink; move-result-object p0 return-object p0 .line 206 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "closed" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public writeDecimalLong(J)Lokio/BufferedSink; .locals 1 iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 243 invoke-virtual {v0, p1, p2}, Lokio/Buffer;->writeDecimalLong(J)Lokio/Buffer; .line 245 invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink; move-result-object p0 return-object p0 .line 241 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "closed" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public writeHexadecimalUnsignedLong(J)Lokio/BufferedSink; .locals 1 iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 248 invoke-virtual {v0, p1, p2}, Lokio/Buffer;->writeHexadecimalUnsignedLong(J)Lokio/Buffer; .line 250 invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink; move-result-object p0 return-object p0 .line 246 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "closed" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public writeInt(I)Lokio/BufferedSink; .locals 1 iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 223 invoke-virtual {v0, p1}, Lokio/Buffer;->writeInt(I)Lokio/Buffer; .line 225 invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink; move-result-object p0 return-object p0 .line 221 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "closed" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public writeIntLe(I)Lokio/BufferedSink; .locals 1 iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 228 invoke-virtual {v0, p1}, Lokio/Buffer;->writeIntLe(I)Lokio/Buffer; .line 230 invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink; move-result-object p0 return-object p0 .line 226 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "closed" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public writeLong(J)Lokio/BufferedSink; .locals 1 iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 233 invoke-virtual {v0, p1, p2}, Lokio/Buffer;->writeLong(J)Lokio/Buffer; .line 235 invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink; move-result-object p0 return-object p0 .line 231 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "closed" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public writeLongLe(J)Lokio/BufferedSink; .locals 1 iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 238 invoke-virtual {v0, p1, p2}, Lokio/Buffer;->writeLongLe(J)Lokio/Buffer; .line 240 invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink; move-result-object p0 return-object p0 .line 236 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "closed" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public writeShort(I)Lokio/BufferedSink; .locals 1 iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 213 invoke-virtual {v0, p1}, Lokio/Buffer;->writeShort(I)Lokio/Buffer; .line 215 invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink; move-result-object p0 return-object p0 .line 211 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "closed" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public writeShortLe(I)Lokio/BufferedSink; .locals 1 iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 218 invoke-virtual {v0, p1}, Lokio/Buffer;->writeShortLe(I)Lokio/Buffer; .line 220 invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink; move-result-object p0 return-object p0 .line 216 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "closed" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public writeString(Ljava/lang/String;IILjava/nio/charset/Charset;)Lokio/BufferedSink; .locals 1 const-string v0, "string" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "charset" invoke-static {p4, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 77 invoke-virtual {v0, p1, p2, p3, p4}, Lokio/Buffer;->writeString(Ljava/lang/String;IILjava/nio/charset/Charset;)Lokio/Buffer; .line 78 invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink; move-result-object p0 return-object p0 .line 76 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "closed" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public writeString(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/BufferedSink; .locals 1 const-string v0, "string" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "charset" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 66 invoke-virtual {v0, p1, p2}, Lokio/Buffer;->writeString(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/Buffer; .line 67 invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink; move-result-object p0 return-object p0 .line 65 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "closed" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public writeUtf8(Ljava/lang/String;)Lokio/BufferedSink; .locals 1 const-string v0, "string" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 160 invoke-virtual {v0, p1}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;)Lokio/Buffer; .line 162 invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink; move-result-object p0 return-object p0 .line 158 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "closed" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public writeUtf8(Ljava/lang/String;II)Lokio/BufferedSink; .locals 1 const-string v0, "string" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 165 invoke-virtual {v0, p1, p2, p3}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;II)Lokio/Buffer; .line 167 invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink; move-result-object p0 return-object p0 .line 163 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "closed" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public writeUtf8CodePoint(I)Lokio/BufferedSink; .locals 1 iget-boolean v0, p0, Lokio/RealBufferedSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 iget-object v0, p0, Lokio/RealBufferedSink;->bufferField:Lokio/Buffer; .line 170 invoke-virtual {v0, p1}, Lokio/Buffer;->writeUtf8CodePoint(I)Lokio/Buffer; .line 172 invoke-virtual {p0}, Lokio/RealBufferedSink;->emitCompleteSegments()Lokio/BufferedSink; move-result-object p0 return-object p0 .line 168 :cond_0 new-instance p0, Ljava/lang/IllegalStateException; const-string p1, "closed" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method