apkfuckery/com.discord/smali_classes2/okhttp3/MultipartBody.smali

562 lines
12 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lokhttp3/MultipartBody;
.super Lokhttp3/RequestBody;
2019-11-28 00:30:53 +00:00
.source "MultipartBody.kt"
2019-07-24 11:27:29 +00:00
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2019-11-28 00:30:53 +00:00
Lokhttp3/MultipartBody$Part;,
2019-07-24 11:27:29 +00:00
Lokhttp3/MultipartBody$a;,
2019-11-28 00:30:53 +00:00
Lokhttp3/MultipartBody$b;
2019-07-24 11:27:29 +00:00
}
.end annotation
# static fields
2019-12-06 03:29:40 +00:00
.field public static final f:Lokhttp3/MediaType;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static final g:Lokhttp3/MediaType;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static final h:[B
2019-08-01 02:26:13 +00:00
2019-12-06 03:29:40 +00:00
.field public static final i:[B
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static final j:[B
2019-10-25 01:57:51 +00:00
2019-12-06 03:29:40 +00:00
.field public static final k:Lokhttp3/MultipartBody$b;
2019-10-28 23:46:47 +00:00
2019-10-25 01:57:51 +00:00
2019-11-10 14:21:47 +00:00
# instance fields
2019-12-06 03:29:40 +00:00
.field public final a:Lokhttp3/MediaType;
.field public b:J
2019-12-06 01:29:57 +00:00
2019-12-06 03:29:40 +00:00
.field public final c:Lokio/ByteString;
2019-12-06 01:29:57 +00:00
2019-12-06 03:29:40 +00:00
.field public final d:Lokhttp3/MediaType;
2019-12-06 01:29:57 +00:00
2019-12-06 03:29:40 +00:00
.field public final e:Ljava/util/List;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lokhttp3/MultipartBody$Part;",
">;"
}
.end annotation
.end field
# direct methods
2019-12-06 03:29:40 +00:00
.method public static constructor <clinit>()V
.locals 5
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
new-instance v0, Lokhttp3/MultipartBody$b;
const/4 v1, 0x0
2019-12-06 03:29:40 +00:00
invoke-direct {v0, v1}, Lokhttp3/MultipartBody$b;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
sput-object v0, Lokhttp3/MultipartBody;->k:Lokhttp3/MultipartBody$b;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
sget-object v0, Lokhttp3/MediaType;->g:Lokhttp3/MediaType$a;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const-string v1, "multipart/mixed"
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v1}, Lokhttp3/MediaType$a;->a(Ljava/lang/String;)Lokhttp3/MediaType;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-12-06 03:29:40 +00:00
sput-object v0, Lokhttp3/MultipartBody;->f:Lokhttp3/MediaType;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v0, Lokhttp3/MediaType;->g:Lokhttp3/MediaType$a;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string v1, "multipart/alternative"
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v1}, Lokhttp3/MediaType$a;->a(Ljava/lang/String;)Lokhttp3/MediaType;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v0, Lokhttp3/MediaType;->g:Lokhttp3/MediaType$a;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const-string v1, "multipart/digest"
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v1}, Lokhttp3/MediaType$a;->a(Ljava/lang/String;)Lokhttp3/MediaType;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v0, Lokhttp3/MediaType;->g:Lokhttp3/MediaType$a;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string v1, "multipart/parallel"
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v1}, Lokhttp3/MediaType$a;->a(Ljava/lang/String;)Lokhttp3/MediaType;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
sget-object v0, Lokhttp3/MediaType;->g:Lokhttp3/MediaType$a;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string v1, "multipart/form-data"
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v1}, Lokhttp3/MediaType$a;->a(Ljava/lang/String;)Lokhttp3/MediaType;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-12-06 03:29:40 +00:00
sput-object v0, Lokhttp3/MultipartBody;->g:Lokhttp3/MediaType;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v0, 0x2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-array v1, v0, [B
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/16 v2, 0x3a
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
int-to-byte v2, v2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v3, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-byte v2, v1, v3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/16 v2, 0x20
int-to-byte v2, v2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v4, 0x1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-byte v2, v1, v4
sput-object v1, Lokhttp3/MultipartBody;->h:[B
2019-07-24 11:27:29 +00:00
new-array v1, v0, [B
2019-12-06 03:29:40 +00:00
const/16 v2, 0xd
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
int-to-byte v2, v2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-byte v2, v1, v3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/16 v2, 0xa
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
int-to-byte v2, v2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-byte v2, v1, v4
sput-object v1, Lokhttp3/MultipartBody;->i:[B
new-array v0, v0, [B
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/16 v1, 0x2d
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
int-to-byte v1, v1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-byte v1, v0, v3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-byte v1, v0, v4
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sput-object v0, Lokhttp3/MultipartBody;->j:[B
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
return-void
2019-07-24 11:27:29 +00:00
.end method
.method public constructor <init>(Lokio/ByteString;Lokhttp3/MediaType;Ljava/util/List;)V
2019-11-28 00:30:53 +00:00
.locals 1
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lokio/ByteString;",
"Lokhttp3/MediaType;",
"Ljava/util/List<",
"Lokhttp3/MultipartBody$Part;",
">;)V"
}
.end annotation
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p2, :cond_1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p3, :cond_0
2019-11-28 00:30:53 +00:00
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Lokhttp3/RequestBody;-><init>()V
2019-12-06 03:29:40 +00:00
iput-object p1, p0, Lokhttp3/MultipartBody;->c:Lokio/ByteString;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iput-object p2, p0, Lokhttp3/MultipartBody;->d:Lokhttp3/MediaType;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
iput-object p3, p0, Lokhttp3/MultipartBody;->e:Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object p1, Lokhttp3/MediaType;->g:Lokhttp3/MediaType$a;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-instance p2, Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object p3, p0, Lokhttp3/MultipartBody;->d:Lokhttp3/MediaType;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string p3, "; boundary="
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object p3, p0, Lokhttp3/MultipartBody;->c:Lokio/ByteString;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p3}, Lokio/ByteString;->l()Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object p3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object p2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p1, p2}, Lokhttp3/MediaType$a;->a(Ljava/lang/String;)Lokhttp3/MediaType;
2019-07-24 11:27:29 +00:00
move-result-object p1
2019-12-06 03:29:40 +00:00
iput-object p1, p0, Lokhttp3/MultipartBody;->a:Lokhttp3/MediaType;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-wide/16 p1, -0x1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iput-wide p1, p0, Lokhttp3/MultipartBody;->b:J
2019-07-24 11:27:29 +00:00
return-void
2019-12-06 03:29:40 +00:00
:cond_0
const-string p1, "parts"
2020-04-17 19:35:49 +00:00
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v0
:cond_1
const-string p1, "type"
2020-04-17 19:35:49 +00:00
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v0
:cond_2
const-string p1, "boundaryByteString"
2020-04-17 19:35:49 +00:00
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v0
2019-07-24 11:27:29 +00:00
.end method
2019-12-06 03:29:40 +00:00
# virtual methods
.method public final a(Lokio/BufferedSink;Z)J
2019-11-28 00:30:53 +00:00
.locals 13
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p2, :cond_0
2019-11-28 00:30:53 +00:00
2020-04-17 19:35:49 +00:00
new-instance p1, Ld0/e;
2019-11-28 00:30:53 +00:00
2020-04-17 19:35:49 +00:00
invoke-direct {p1}, Ld0/e;-><init>()V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-object v1, p1
2019-11-28 00:30:53 +00:00
2019-07-24 11:27:29 +00:00
goto :goto_0
:cond_0
2019-12-06 03:29:40 +00:00
move-object v1, v0
2019-07-24 11:27:29 +00:00
:goto_0
2019-12-06 03:29:40 +00:00
iget-object v2, p0, Lokhttp3/MultipartBody;->e:Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v2}, Ljava/util/List;->size()I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result v2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v3, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-wide/16 v4, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-wide v5, v4
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v4, 0x0
2019-07-24 11:27:29 +00:00
:goto_1
2019-12-06 03:29:40 +00:00
if-ge v4, v2, :cond_8
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v7, p0, Lokhttp3/MultipartBody;->e:Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v7, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v7
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
check-cast v7, Lokhttp3/MultipartBody$Part;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v7}, Lokhttp3/MultipartBody$Part;->b()Lokhttp3/Headers;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v8
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v7}, Lokhttp3/MultipartBody$Part;->a()Lokhttp3/RequestBody;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v7
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_7
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
sget-object v9, Lokhttp3/MultipartBody;->j:[B
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {p1, v9}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v9, p0, Lokhttp3/MultipartBody;->c:Lokio/ByteString;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {p1, v9}, Lokio/BufferedSink;->a(Lokio/ByteString;)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v9, Lokhttp3/MultipartBody;->i:[B
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {p1, v9}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v8, :cond_1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v8}, Lokhttp3/Headers;->size()I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result v9
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v10, 0x0
2019-07-24 11:27:29 +00:00
:goto_2
2019-12-06 03:29:40 +00:00
if-ge v10, v9, :cond_1
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v8, v10}, Lokhttp3/Headers;->f(I)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v11
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {p1, v11}, Lokio/BufferedSink;->a(Ljava/lang/String;)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v11
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v12, Lokhttp3/MultipartBody;->h:[B
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v11, v12}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v11
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v8, v10}, Lokhttp3/Headers;->g(I)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v12
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v11, v12}, Lokio/BufferedSink;->a(Ljava/lang/String;)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v11
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v12, Lokhttp3/MultipartBody;->i:[B
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v11, v12}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
add-int/lit8 v10, v10, 0x1
2019-07-24 11:27:29 +00:00
goto :goto_2
2019-12-06 03:29:40 +00:00
:cond_1
invoke-virtual {v7}, Lokhttp3/RequestBody;->contentType()Lokhttp3/MediaType;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v8
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v8, :cond_2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string v9, "Content-Type: "
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {p1, v9}, Lokio/BufferedSink;->a(Ljava/lang/String;)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v9
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v8}, Lokhttp3/MediaType;->toString()Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v8
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v9, v8}, Lokio/BufferedSink;->a(Ljava/lang/String;)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v8
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v9, Lokhttp3/MultipartBody;->i:[B
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v8, v9}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_2
invoke-virtual {v7}, Lokhttp3/RequestBody;->contentLength()J
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-wide v8
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-wide/16 v10, -0x1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
cmp-long v12, v8, v10
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v12, :cond_3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string v10, "Content-Length: "
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {p1, v10}, Lokio/BufferedSink;->a(Ljava/lang/String;)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v10
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v10, v8, v9}, Lokio/BufferedSink;->c(J)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v10
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v11, Lokhttp3/MultipartBody;->i:[B
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v10, v11}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
goto :goto_3
2019-12-06 03:29:40 +00:00
:cond_3
if-eqz p2, :cond_5
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_4
2019-11-28 00:30:53 +00:00
2020-04-17 19:35:49 +00:00
iget-wide p1, v1, Ld0/e;->e:J
2019-07-24 11:27:29 +00:00
2020-04-17 19:35:49 +00:00
invoke-virtual {v1, p1, p2}, Ld0/e;->skip(J)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
return-wide v10
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_4
2020-04-17 19:35:49 +00:00
invoke-static {}, Ly/u/b/j;->throwNpe()V
2019-12-06 03:29:40 +00:00
throw v0
:cond_5
2019-07-24 11:27:29 +00:00
:goto_3
2019-12-06 03:29:40 +00:00
sget-object v10, Lokhttp3/MultipartBody;->i:[B
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {p1, v10}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p2, :cond_6
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
add-long/2addr v5, v8
2019-07-24 11:27:29 +00:00
goto :goto_4
2019-12-06 03:29:40 +00:00
:cond_6
invoke-virtual {v7, p1}, Lokhttp3/RequestBody;->writeTo(Lokio/BufferedSink;)V
2019-07-24 11:27:29 +00:00
:goto_4
2019-12-06 03:29:40 +00:00
sget-object v7, Lokhttp3/MultipartBody;->i:[B
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {p1, v7}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
add-int/lit8 v4, v4, 0x1
2019-07-24 11:27:29 +00:00
goto/16 :goto_1
2019-12-06 03:29:40 +00:00
:cond_7
2020-04-17 19:35:49 +00:00
invoke-static {}, Ly/u/b/j;->throwNpe()V
2019-12-06 03:29:40 +00:00
throw v0
2019-11-28 00:30:53 +00:00
:cond_8
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_b
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v2, Lokhttp3/MultipartBody;->j:[B
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {p1, v2}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v2, p0, Lokhttp3/MultipartBody;->c:Lokio/ByteString;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {p1, v2}, Lokio/BufferedSink;->a(Lokio/ByteString;)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v2, Lokhttp3/MultipartBody;->j:[B
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {p1, v2}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v2, Lokhttp3/MultipartBody;->i:[B
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {p1, v2}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p2, :cond_a
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_9
2019-07-24 11:27:29 +00:00
2020-04-17 19:35:49 +00:00
iget-wide p1, v1, Ld0/e;->e:J
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
add-long/2addr v5, p1
2019-07-24 11:27:29 +00:00
2020-04-17 19:35:49 +00:00
invoke-virtual {v1, p1, p2}, Ld0/e;->skip(J)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_5
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_9
2020-04-17 19:35:49 +00:00
invoke-static {}, Ly/u/b/j;->throwNpe()V
2019-12-06 03:29:40 +00:00
throw v0
:cond_a
:goto_5
return-wide v5
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:cond_b
2020-04-17 19:35:49 +00:00
invoke-static {}, Ly/u/b/j;->throwNpe()V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
throw v0
.end method
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.method public contentLength()J
2019-07-24 11:27:29 +00:00
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-12-06 03:29:40 +00:00
iget-wide v0, p0, Lokhttp3/MultipartBody;->b:J
2019-07-24 11:27:29 +00:00
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
2019-11-28 00:30:53 +00:00
if-nez v4, :cond_0
2019-07-24 11:27:29 +00:00
const/4 v0, 0x0
const/4 v1, 0x1
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, v0, v1}, Lokhttp3/MultipartBody;->a(Lokio/BufferedSink;Z)J
2019-07-24 11:27:29 +00:00
move-result-wide v0
2019-12-06 03:29:40 +00:00
iput-wide v0, p0, Lokhttp3/MultipartBody;->b:J
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:cond_0
2019-07-24 11:27:29 +00:00
return-wide v0
.end method
2019-12-06 03:29:40 +00:00
.method public contentType()Lokhttp3/MediaType;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Lokhttp3/MultipartBody;->a:Lokhttp3/MediaType;
2019-07-24 11:27:29 +00:00
return-object v0
.end method
2019-12-06 03:29:40 +00:00
.method public writeTo(Lokio/BufferedSink;)V
2019-07-24 11:27:29 +00:00
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_0
2019-11-28 00:30:53 +00:00
2019-07-24 11:27:29 +00:00
const/4 v0, 0x0
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, p1, v0}, Lokhttp3/MultipartBody;->a(Lokio/BufferedSink;Z)J
2019-07-24 11:27:29 +00:00
return-void
2019-12-06 03:29:40 +00:00
:cond_0
const-string p1, "sink"
2020-04-17 19:35:49 +00:00
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
2019-07-24 11:27:29 +00:00
.end method