.class final Lokhttp3/internal/http1/Http1ExchangeCodec$UnknownLengthSource; .super Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource; .source "Http1ExchangeCodec.kt" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lokhttp3/internal/http1/Http1ExchangeCodec; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x11 name = "UnknownLengthSource" .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$UnknownLengthSource\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\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\u0008\u0005\u0008\u0082\u0004\u0018\u00002\u00060\u0001R\u00020\u0002B\u0007\u00a2\u0006\u0004\u0008\r\u0010\u000eJ\u0018\u0010\u0007\u001a\u00020\u00052\u0006\u0010\u0004\u001a\u00020\u00032\u0006\u0010\u0006\u001a\u00020\u0005H\u0016J\u0008\u0010\t\u001a\u00020\u0008H\u0016R\u0016\u0010\u000b\u001a\u00020\n8\u0002@\u0002X\u0082\u000e\u00a2\u0006\u0006\n\u0004\u0008\u000b\u0010\u000c\u00a8\u0006\u000f" } d2 = { "Lokhttp3/internal/http1/Http1ExchangeCodec$UnknownLengthSource;", "Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;", "Lokhttp3/internal/http1/Http1ExchangeCodec;", "Lzj/m;", "sink", "", "byteCount", "read", "Lkotlin/d1;", "close", "", "inputExhausted", "Z", "", "(Lokhttp3/internal/http1/Http1ExchangeCodec;)V", "okhttp" } k = 0x1 mv = { 0x1, 0x4, 0x0 } .end annotation # instance fields .field private inputExhausted:Z .field public final synthetic this$0:Lokhttp3/internal/http1/Http1ExchangeCodec; # direct methods .method public constructor (Lokhttp3/internal/http1/Http1ExchangeCodec;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "()V" } .end annotation .line 1 iput-object p1, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$UnknownLengthSource;->this$0:Lokhttp3/internal/http1/Http1ExchangeCodec; invoke-direct {p0, p1}, Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;->(Lokhttp3/internal/http1/Http1ExchangeCodec;)V return-void .end method # virtual methods .method public close()V .locals 1 .line 1 invoke-virtual {p0}, Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;->getClosed()Z move-result v0 if-eqz v0, :cond_0 return-void .line 2 :cond_0 iget-boolean v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$UnknownLengthSource;->inputExhausted:Z if-nez v0, :cond_1 .line 3 invoke-virtual {p0}, Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;->responseBodyComplete()V :cond_1 const/4 v0, 0x1 .line 4 invoke-virtual {p0, v0}, Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;->setClosed(Z)V return-void .end method .method public read(Lzj/m;J)J .locals 4 .param p1 # Lzj/m; .annotation build Lorg/jetbrains/annotations/NotNull; .end annotation .end param const-string v0, "sink" invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V const-wide/16 v0, 0x0 cmp-long v0, p2, v0 const/4 v1, 0x1 if-ltz v0, :cond_0 move v0, v1 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 if-eqz v0, :cond_4 .line 1 invoke-virtual {p0}, Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;->getClosed()Z move-result v0 xor-int/2addr v0, v1 if-eqz v0, :cond_3 .line 2 iget-boolean v0, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$UnknownLengthSource;->inputExhausted:Z const-wide/16 v2, -0x1 if-eqz v0, :cond_1 return-wide v2 .line 3 :cond_1 invoke-super {p0, p1, p2, p3}, Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;->read(Lzj/m;J)J move-result-wide p1 cmp-long p3, p1, v2 if-nez p3, :cond_2 .line 4 iput-boolean v1, p0, Lokhttp3/internal/http1/Http1ExchangeCodec$UnknownLengthSource;->inputExhausted:Z .line 5 invoke-virtual {p0}, Lokhttp3/internal/http1/Http1ExchangeCodec$AbstractSource;->responseBodyComplete()V return-wide v2 :cond_2 return-wide p1 .line 6 :cond_3 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 :cond_4 const-string p1, "byteCount < 0: " .line 7 invoke-static {p1, p2, p3}, Landroidx/camera/core/l1;->a(Ljava/lang/String;J)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 throw p2 .end method