.class final Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink; .super Ljava/lang/Object; .source "Http1ExchangeCodec.kt" # interfaces .implements Lzj/k0; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lokhttp3/internal/http1/Http1ExchangeCodec; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x11 name = "KnownLengthSink" .end annotation .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nHttp1ExchangeCodec.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Http1ExchangeCodec.kt\nokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,497:1\n1#2:498\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; bv = {} d1 = { "\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\u000b\n\u0002\u0008\u0005\u0008\u0082\u0004\u0018\u00002\u00020\u0001B\u0007\u00a2\u0006\u0004\u0008\u000f\u0010\u0010J\u0008\u0010\u0003\u001a\u00020\u0002H\u0016J\u0018\u0010\t\u001a\u00020\u00082\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u0006H\u0016J\u0008\u0010\n\u001a\u00020\u0008H\u0016J\u0008\u0010\u000b\u001a\u00020\u0008H\u0016R\u0016\u0010\r\u001a\u00020\u000c8\u0002@\u0002X\u0082\u000e\u00a2\u0006\u0006\n\u0004\u0008\r\u0010\u000e\u00a8\u0006\u0011" } d2 = { "Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;", "Lzj/k0;", "Lzj/o0;", "timeout", "Lzj/m;", "source", "", "byteCount", "Lkotlin/d1;", "write", "flush", "close", "", "closed", "Z", "", "(Lokhttp3/internal/http1/Http1ExchangeCodec;)V", "okhttp" } k = 0x1 mv = { 0x1, 0x4, 0x0 } .end annotation # instance fields .field private closed:Z .field public final synthetic this$0:Lokhttp3/internal/http1/Http1ExchangeCodec; .field private final timeout:Lzj/s; # direct methods .method public constructor (Lokhttp3/internal/http1/Http1ExchangeCodec;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()V" } .end annotation .line 1 iput-object p1, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->this$0:Lokhttp3/internal/http1/Http1ExchangeCodec; invoke-direct {p0}, Ljava/lang/Object;->()V .line 2 new-instance v0, Lzj/s; invoke-static {p1}, Lokhttp3/internal/http1/Http1ExchangeCodec;->access$getSink$p(Lokhttp3/internal/http1/Http1ExchangeCodec;)Lzj/n; move-result-object p1 invoke-interface {p1}, Lzj/k0;->timeout()Lzj/o0; move-result-object p1 invoke-direct {v0, p1}, Lzj/s;->(Lzj/o0;)V iput-object v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->timeout:Lzj/s; return-void .end method # virtual methods .method public close()V .locals 2 .line 1 iget-boolean v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->closed:Z if-eqz v0, :cond_0 return-void :cond_0 const/4 v0, 0x1 .line 2 iput-boolean v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->closed:Z .line 3 iget-object v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->this$0:Lokhttp3/internal/http1/Http1ExchangeCodec; iget-object v1, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->timeout:Lzj/s; invoke-static {v0, v1}, Lokhttp3/internal/http1/Http1ExchangeCodec;->access$detachTimeout(Lokhttp3/internal/http1/Http1ExchangeCodec;Lzj/s;)V .line 4 iget-object v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->this$0:Lokhttp3/internal/http1/Http1ExchangeCodec; const/4 v1, 0x3 invoke-static {v0, v1}, Lokhttp3/internal/http1/Http1ExchangeCodec;->access$setState$p(Lokhttp3/internal/http1/Http1ExchangeCodec;I)V return-void .end method .method public flush()V .locals 1 .line 1 iget-boolean v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->closed:Z if-eqz v0, :cond_0 return-void .line 2 :cond_0 iget-object v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->this$0:Lokhttp3/internal/http1/Http1ExchangeCodec; invoke-static {v0}, Lokhttp3/internal/http1/Http1ExchangeCodec;->access$getSink$p(Lokhttp3/internal/http1/Http1ExchangeCodec;)Lzj/n; move-result-object v0 invoke-interface {v0}, Lzj/n;->flush()V return-void .end method .method public timeout()Lzj/o0; .locals 1 .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .line 1 iget-object v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->timeout:Lzj/s; return-object v0 .end method .method public write(Lzj/m;J)V .locals 7 .param p1 # Lzj/m; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param const-string v0, "source" invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V .line 1 iget-boolean v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->closed:Z xor-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_0 .line 2 invoke-virtual {p1}, Lzj/m;->size()J move-result-wide v1 const-wide/16 v3, 0x0 move-wide v5, p2 invoke-static/range {v1 .. v6}, Lokhttp3/internal/Util;->checkOffsetAndCount(JJJ)V .line 3 iget-object v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$KnownLengthSink;->this$0:Lokhttp3/internal/http1/Http1ExchangeCodec; invoke-static {v0}, Lokhttp3/internal/http1/Http1ExchangeCodec;->access$getSink$p(Lokhttp3/internal/http1/Http1ExchangeCodec;)Lzj/n; move-result-object v0 invoke-interface {v0, p1, p2, p3}, Lzj/k0;->write(Lzj/m;J)V return-void .line 4 :cond_0 new-instance p1, Ljava/lang/IllegalStateException; const-string p2, "closed" invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p2 invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw p1 .end method