.class final Lokhttp3/MultipartReader$PartSource; .super Ljava/lang/Object; .source "MultipartReader.kt" # interfaces .implements Lokio/Source; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lokhttp3/MultipartReader; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x12 name = "PartSource" .end annotation .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nMultipartReader.kt\nKotlin\n*S Kotlin\n*F\n+ 1 MultipartReader.kt\nokhttp3/MultipartReader$PartSource\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 Timeout.kt\nokio/Timeout\n*L\n1#1,210:1\n1#2:211\n186#3,30:212\n*E\n*S KotlinDebug\n*F\n+ 1 MultipartReader.kt\nokhttp3/MultipartReader$PartSource\n*L\n159#1,30:212\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; bv = { 0x1, 0x0, 0x3 } d1 = { "\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0008\u0082\u0004\u0018\u00002\u00020\u0001B\u0005\u00a2\u0006\u0002\u0010\u0002J\u0008\u0010\u0005\u001a\u00020\u0006H\u0016J\u0018\u0010\u0007\u001a\u00020\u00082\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\u0008H\u0016J\u0008\u0010\u0003\u001a\u00020\u0004H\u0016R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u000c" } d2 = { "Lokhttp3/MultipartReader$PartSource;", "Lokio/Source;", "(Lokhttp3/MultipartReader;)V", "timeout", "Lokio/Timeout;", "close", "", "read", "", "sink", "Lokio/Buffer;", "byteCount", "okhttp" } k = 0x1 mv = { 0x1, 0x4, 0x0 } .end annotation # instance fields .field final synthetic this$0:Lokhttp3/MultipartReader; .field private final timeout:Lokio/Timeout; # direct methods .method public constructor (Lokhttp3/MultipartReader;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "()V" } .end annotation iput-object p1, p0, Lokhttp3/MultipartReader$PartSource;->this$0:Lokhttp3/MultipartReader; .line 146 invoke-direct {p0}, Ljava/lang/Object;->()V .line 147 new-instance p1, Lokio/Timeout; invoke-direct {p1}, Lokio/Timeout;->()V iput-object p1, p0, Lokhttp3/MultipartReader$PartSource;->timeout:Lokio/Timeout; return-void .end method # virtual methods .method public close()V .locals 2 iget-object v0, p0, Lokhttp3/MultipartReader$PartSource;->this$0:Lokhttp3/MultipartReader; .line 150 invoke-static {v0}, Lokhttp3/MultipartReader;->access$getCurrentPart$p(Lokhttp3/MultipartReader;)Lokhttp3/MultipartReader$PartSource; move-result-object v0 move-object v1, p0 check-cast v1, Lokhttp3/MultipartReader$PartSource; invoke-static {v0, p0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 iget-object p0, p0, Lokhttp3/MultipartReader$PartSource;->this$0:Lokhttp3/MultipartReader; const/4 v0, 0x0 .line 151 move-object v1, v0 check-cast v1, Lokhttp3/MultipartReader$PartSource; invoke-static {p0, v0}, Lokhttp3/MultipartReader;->access$setCurrentPart$p(Lokhttp3/MultipartReader;Lokhttp3/MultipartReader$PartSource;)V :cond_0 return-void .end method .method public read(Lokio/Buffer;J)J .locals 15 move-object v0, p0 move-object/from16 v1, p1 move-wide/from16 v2, p2 const-string v4, "sink" invoke-static {v1, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-wide/16 v4, 0x0 cmp-long v6, v2, v4 if-ltz v6, :cond_0 const/4 v6, 0x1 goto :goto_0 :cond_0 const/4 v6, 0x0 :goto_0 if-eqz v6, :cond_b iget-object v6, v0, Lokhttp3/MultipartReader$PartSource;->this$0:Lokhttp3/MultipartReader; .line 157 invoke-static {v6}, Lokhttp3/MultipartReader;->access$getCurrentPart$p(Lokhttp3/MultipartReader;)Lokhttp3/MultipartReader$PartSource; move-result-object v6 move-object v7, v0 check-cast v7, Lokhttp3/MultipartReader$PartSource; invoke-static {v6, p0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v6 if-eqz v6, :cond_a iget-object v6, v0, Lokhttp3/MultipartReader$PartSource;->this$0:Lokhttp3/MultipartReader; .line 159 invoke-static {v6}, Lokhttp3/MultipartReader;->access$getSource$p(Lokhttp3/MultipartReader;)Lokio/BufferedSource; move-result-object v6 invoke-interface {v6}, Lokio/BufferedSource;->timeout()Lokio/Timeout; move-result-object v6 iget-object v7, v0, Lokhttp3/MultipartReader$PartSource;->timeout:Lokio/Timeout; .line 212 invoke-virtual {v6}, Lokio/Timeout;->timeoutNanos()J move-result-wide v8 .line 213 sget-object v10, Lokio/Timeout;->Companion:Lokio/Timeout$Companion; invoke-virtual {v7}, Lokio/Timeout;->timeoutNanos()J move-result-wide v11 invoke-virtual {v6}, Lokio/Timeout;->timeoutNanos()J move-result-wide v13 invoke-virtual {v10, v11, v12, v13, v14}, Lokio/Timeout$Companion;->minTimeout(JJ)J move-result-wide v10 sget-object v12, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit; invoke-virtual {v6, v10, v11, v12}, Lokio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout; .line 215 invoke-virtual {v6}, Lokio/Timeout;->hasDeadline()Z move-result v10 if-eqz v10, :cond_5 .line 216 invoke-virtual {v6}, Lokio/Timeout;->deadlineNanoTime()J move-result-wide v13 .line 217 invoke-virtual {v7}, Lokio/Timeout;->hasDeadline()Z move-result v10 if-eqz v10, :cond_1 .line 218 invoke-virtual {v6}, Lokio/Timeout;->deadlineNanoTime()J move-result-wide v11 invoke-virtual {v7}, Lokio/Timeout;->deadlineNanoTime()J move-result-wide v4 invoke-static {v11, v12, v4, v5}, Ljava/lang/Math;->min(JJ)J move-result-wide v4 invoke-virtual {v6, v4, v5}, Lokio/Timeout;->deadlineNanoTime(J)Lokio/Timeout; :cond_1 :try_start_0 iget-object v4, v0, Lokhttp3/MultipartReader$PartSource;->this$0:Lokhttp3/MultipartReader; .line 160 invoke-static {v4, v2, v3}, Lokhttp3/MultipartReader;->access$currentPartBytesRemaining(Lokhttp3/MultipartReader;J)J move-result-wide v2 const-wide/16 v4, 0x0 cmp-long v4, v2, v4 if-nez v4, :cond_2 const-wide/16 v11, -0x1 goto :goto_1 :cond_2 iget-object v0, v0, Lokhttp3/MultipartReader$PartSource;->this$0:Lokhttp3/MultipartReader; .line 162 invoke-static {v0}, Lokhttp3/MultipartReader;->access$getSource$p(Lokhttp3/MultipartReader;)Lokio/BufferedSource; move-result-object v0 invoke-interface {v0, v1, v2, v3}, Lokio/BufferedSource;->read(Lokio/Buffer;J)J move-result-wide v11 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 223 :goto_1 sget-object v0, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit; invoke-virtual {v6, v8, v9, v0}, Lokio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout; .line 224 invoke-virtual {v7}, Lokio/Timeout;->hasDeadline()Z move-result v0 if-eqz v0, :cond_3 .line 225 invoke-virtual {v6, v13, v14}, Lokio/Timeout;->deadlineNanoTime(J)Lokio/Timeout; :cond_3 return-wide v11 :catchall_0 move-exception v0 .line 223 sget-object v1, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit; invoke-virtual {v6, v8, v9, v1}, Lokio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout; .line 224 invoke-virtual {v7}, Lokio/Timeout;->hasDeadline()Z move-result v1 if-eqz v1, :cond_4 .line 225 invoke-virtual {v6, v13, v14}, Lokio/Timeout;->deadlineNanoTime(J)Lokio/Timeout; :cond_4 throw v0 .line 229 :cond_5 invoke-virtual {v7}, Lokio/Timeout;->hasDeadline()Z move-result v4 if-eqz v4, :cond_6 .line 230 invoke-virtual {v7}, Lokio/Timeout;->deadlineNanoTime()J move-result-wide v4 invoke-virtual {v6, v4, v5}, Lokio/Timeout;->deadlineNanoTime(J)Lokio/Timeout; :cond_6 :try_start_1 iget-object v4, v0, Lokhttp3/MultipartReader$PartSource;->this$0:Lokhttp3/MultipartReader; .line 160 invoke-static {v4, v2, v3}, Lokhttp3/MultipartReader;->access$currentPartBytesRemaining(Lokhttp3/MultipartReader;J)J move-result-wide v2 const-wide/16 v4, 0x0 cmp-long v4, v2, v4 if-nez v4, :cond_7 const-wide/16 v11, -0x1 goto :goto_2 :cond_7 iget-object v0, v0, Lokhttp3/MultipartReader$PartSource;->this$0:Lokhttp3/MultipartReader; .line 162 invoke-static {v0}, Lokhttp3/MultipartReader;->access$getSource$p(Lokhttp3/MultipartReader;)Lokio/BufferedSource; move-result-object v0 invoke-interface {v0, v1, v2, v3}, Lokio/BufferedSource;->read(Lokio/Buffer;J)J move-result-wide v11 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_1 .line 235 :goto_2 sget-object v0, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit; invoke-virtual {v6, v8, v9, v0}, Lokio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout; .line 236 invoke-virtual {v7}, Lokio/Timeout;->hasDeadline()Z move-result v0 if-eqz v0, :cond_8 .line 237 invoke-virtual {v6}, Lokio/Timeout;->clearDeadline()Lokio/Timeout; :cond_8 return-wide v11 :catchall_1 move-exception v0 .line 235 sget-object v1, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit; invoke-virtual {v6, v8, v9, v1}, Lokio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout; .line 236 invoke-virtual {v7}, Lokio/Timeout;->hasDeadline()Z move-result v1 if-eqz v1, :cond_9 .line 237 invoke-virtual {v6}, Lokio/Timeout;->clearDeadline()Lokio/Timeout; :cond_9 throw v0 .line 157 :cond_a new-instance v0, Ljava/lang/IllegalStateException; const-string v1, "closed" invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v1 invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast v0, Ljava/lang/Throwable; throw v0 .line 156 :cond_b new-instance v0, Ljava/lang/StringBuilder; const-string v1, "byteCount < 0: " invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v0, v2, v3}, 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 .end method .method public timeout()Lokio/Timeout; .locals 0 iget-object p0, p0, Lokhttp3/MultipartReader$PartSource;->timeout:Lokio/Timeout; return-object p0 .end method