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

544 lines
12 KiB
Smali
Raw Normal View History

2019-02-04 20:05:16 +00:00
.class public final Lokhttp3/MultipartBody;
.super Lokhttp3/RequestBody;
2019-02-04 20:29:01 +00:00
.source "MultipartBody.java"
2019-02-04 20:05:16 +00:00
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2019-02-04 20:08:30 +00:00
Lokhttp3/MultipartBody$a;,
2019-02-04 20:05:16 +00:00
Lokhttp3/MultipartBody$Part;
}
.end annotation
# static fields
2019-05-08 22:54:48 +00:00
.field public static final boU:Lokhttp3/MediaType;
2019-05-04 02:59:52 +00:00
.field public static final boV:Lokhttp3/MediaType;
2019-02-04 20:05:16 +00:00
2019-05-04 02:59:52 +00:00
.field public static final boW:Lokhttp3/MediaType;
2019-02-04 20:05:16 +00:00
2019-05-04 02:59:52 +00:00
.field public static final boX:Lokhttp3/MediaType;
2019-02-27 21:13:14 +00:00
2019-05-04 02:59:52 +00:00
.field public static final boY:Lokhttp3/MediaType;
2019-02-27 21:13:14 +00:00
2019-05-08 22:54:48 +00:00
.field private static final boZ:[B
2019-03-02 23:27:57 +00:00
2019-05-04 02:59:52 +00:00
.field private static final bpa:[B
2019-03-02 23:27:57 +00:00
2019-05-04 02:59:52 +00:00
.field private static final bpb:[B
2019-02-04 20:29:01 +00:00
2019-02-22 00:19:04 +00:00
2019-03-14 20:04:00 +00:00
# instance fields
2019-05-08 22:54:48 +00:00
.field private final bpc:Lokio/ByteString;
2019-04-06 01:08:52 +00:00
2019-05-08 22:54:48 +00:00
.field private final bpd:Lokhttp3/MediaType;
2019-04-06 01:08:52 +00:00
2019-05-08 22:54:48 +00:00
.field private final bpe:Lokhttp3/MediaType;
2019-03-16 01:04:31 +00:00
2019-05-08 22:54:48 +00:00
.field private final bpf:Ljava/util/List;
2019-02-04 20:05:16 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2019-02-04 20:08:30 +00:00
"Ljava/util/List<",
2019-02-04 20:05:16 +00:00
"Lokhttp3/MultipartBody$Part;",
">;"
}
.end annotation
.end field
2019-02-04 20:08:30 +00:00
.field private contentLength:J
2019-02-04 20:05:16 +00:00
# direct methods
.method static constructor <clinit>()V
.locals 2
const-string v0, "multipart/mixed"
2019-05-04 02:59:52 +00:00
invoke-static {v0}, Lokhttp3/MediaType;->dT(Ljava/lang/String;)Lokhttp3/MediaType;
2019-02-04 20:05:16 +00:00
move-result-object v0
2019-05-08 22:54:48 +00:00
sput-object v0, Lokhttp3/MultipartBody;->boU:Lokhttp3/MediaType;
2019-02-04 20:05:16 +00:00
const-string v0, "multipart/alternative"
2019-05-04 02:59:52 +00:00
invoke-static {v0}, Lokhttp3/MediaType;->dT(Ljava/lang/String;)Lokhttp3/MediaType;
2019-02-04 20:05:16 +00:00
move-result-object v0
2019-05-08 22:54:48 +00:00
sput-object v0, Lokhttp3/MultipartBody;->boV:Lokhttp3/MediaType;
2019-02-04 20:05:16 +00:00
const-string v0, "multipart/digest"
2019-05-04 02:59:52 +00:00
invoke-static {v0}, Lokhttp3/MediaType;->dT(Ljava/lang/String;)Lokhttp3/MediaType;
2019-02-04 20:05:16 +00:00
move-result-object v0
2019-05-08 22:54:48 +00:00
sput-object v0, Lokhttp3/MultipartBody;->boW:Lokhttp3/MediaType;
2019-02-04 20:05:16 +00:00
const-string v0, "multipart/parallel"
2019-05-04 02:59:52 +00:00
invoke-static {v0}, Lokhttp3/MediaType;->dT(Ljava/lang/String;)Lokhttp3/MediaType;
2019-02-04 20:05:16 +00:00
move-result-object v0
2019-05-08 22:54:48 +00:00
sput-object v0, Lokhttp3/MultipartBody;->boX:Lokhttp3/MediaType;
2019-02-04 20:05:16 +00:00
const-string v0, "multipart/form-data"
2019-05-04 02:59:52 +00:00
invoke-static {v0}, Lokhttp3/MediaType;->dT(Ljava/lang/String;)Lokhttp3/MediaType;
2019-02-04 20:05:16 +00:00
move-result-object v0
2019-05-08 22:54:48 +00:00
sput-object v0, Lokhttp3/MultipartBody;->boY:Lokhttp3/MediaType;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/4 v0, 0x2
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
new-array v1, v0, [B
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
fill-array-data v1, :array_0
2019-02-04 20:05:16 +00:00
2019-05-08 22:54:48 +00:00
sput-object v1, Lokhttp3/MultipartBody;->boZ:[B
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
new-array v1, v0, [B
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
fill-array-data v1, :array_1
2019-02-04 20:05:16 +00:00
2019-05-08 22:54:48 +00:00
sput-object v1, Lokhttp3/MultipartBody;->bpa:[B
2019-02-04 20:08:30 +00:00
new-array v0, v0, [B
2019-02-04 20:05:16 +00:00
fill-array-data v0, :array_2
2019-05-08 22:54:48 +00:00
sput-object v0, Lokhttp3/MultipartBody;->bpb:[B
2019-02-04 20:05:16 +00:00
return-void
nop
:array_0
.array-data 1
0x3at
0x20t
.end array-data
nop
:array_1
.array-data 1
0xdt
0xat
.end array-data
nop
:array_2
.array-data 1
0x2dt
0x2dt
.end array-data
.end method
2019-02-27 21:13:14 +00:00
.method public constructor <init>(Lokio/ByteString;Lokhttp3/MediaType;Ljava/util/List;)V
2019-02-04 20:05:16 +00:00
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lokio/ByteString;",
"Lokhttp3/MediaType;",
2019-02-04 20:08:30 +00:00
"Ljava/util/List<",
2019-02-04 20:05:16 +00:00
"Lokhttp3/MultipartBody$Part;",
">;)V"
}
.end annotation
invoke-direct {p0}, Lokhttp3/RequestBody;-><init>()V
const-wide/16 v0, -0x1
iput-wide v0, p0, Lokhttp3/MultipartBody;->contentLength:J
2019-05-08 22:54:48 +00:00
iput-object p1, p0, Lokhttp3/MultipartBody;->bpc:Lokio/ByteString;
2019-02-04 20:05:16 +00:00
2019-05-08 22:54:48 +00:00
iput-object p2, p0, Lokhttp3/MultipartBody;->bpd:Lokhttp3/MediaType;
2019-02-04 20:05:16 +00:00
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
const-string p2, "; boundary="
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:05:16 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {p1}, Lokio/ByteString;->DT()Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:05:16 +00:00
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-02-04 20:05:16 +00:00
2019-05-04 02:59:52 +00:00
invoke-static {p1}, Lokhttp3/MediaType;->dT(Ljava/lang/String;)Lokhttp3/MediaType;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-02-04 20:05:16 +00:00
2019-05-08 22:54:48 +00:00
iput-object p1, p0, Lokhttp3/MultipartBody;->bpe:Lokhttp3/MediaType;
2019-02-04 20:05:16 +00:00
2019-05-03 18:53:54 +00:00
invoke-static {p3}, Lokhttp3/internal/c;->ad(Ljava/util/List;)Ljava/util/List;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object p1
2019-02-04 20:05:16 +00:00
2019-05-08 22:54:48 +00:00
iput-object p1, p0, Lokhttp3/MultipartBody;->bpf:Ljava/util/List;
2019-02-04 20:05:16 +00:00
return-void
.end method
2019-02-04 20:08:30 +00:00
.method private a(Lokio/BufferedSink;Z)J
.locals 12
.param p1 # Lokio/BufferedSink;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eqz p2, :cond_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
new-instance p1, Lokio/c;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-direct {p1}, Lokio/c;-><init>()V
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-object v0, p1
2019-02-04 20:05:16 +00:00
goto :goto_0
:cond_0
2019-02-04 20:08:30 +00:00
const/4 v0, 0x0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:goto_0
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokhttp3/MultipartBody;->bpf:Ljava/util/List;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-interface {v1}, Ljava/util/List;->size()I
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/4 v2, 0x0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const-wide/16 v3, 0x0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-wide v4, v3
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/4 v3, 0x0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:goto_1
if-ge v3, v1, :cond_6
2019-02-04 20:05:16 +00:00
2019-05-08 22:54:48 +00:00
iget-object v6, p0, Lokhttp3/MultipartBody;->bpf:Ljava/util/List;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-interface {v6, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object v6
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
check-cast v6, Lokhttp3/MultipartBody$Part;
2019-02-04 20:05:16 +00:00
2019-05-08 22:54:48 +00:00
iget-object v7, v6, Lokhttp3/MultipartBody$Part;->bph:Lokhttp3/Headers;
2019-02-04 20:05:16 +00:00
2019-05-08 22:54:48 +00:00
iget-object v6, v6, Lokhttp3/MultipartBody$Part;->bpi:Lokhttp3/RequestBody;
2019-02-04 20:05:16 +00:00
2019-05-08 22:54:48 +00:00
sget-object v8, Lokhttp3/MultipartBody;->bpb:[B
2019-02-04 20:05:16 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {p1, v8}, Lokio/BufferedSink;->E([B)Lokio/BufferedSink;
2019-02-04 20:05:16 +00:00
2019-05-08 22:54:48 +00:00
iget-object v8, p0, Lokhttp3/MultipartBody;->bpc:Lokio/ByteString;
2019-02-04 20:05:16 +00:00
2019-02-27 21:13:14 +00:00
invoke-interface {p1, v8}, Lokio/BufferedSink;->i(Lokio/ByteString;)Lokio/BufferedSink;
2019-02-04 20:05:16 +00:00
2019-05-08 22:54:48 +00:00
sget-object v8, Lokhttp3/MultipartBody;->bpa:[B
2019-02-04 20:05:16 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {p1, v8}, Lokio/BufferedSink;->E([B)Lokio/BufferedSink;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eqz v7, :cond_1
2019-02-04 20:05:16 +00:00
2019-05-08 22:54:48 +00:00
iget-object v8, v7, Lokhttp3/Headers;->boD:[Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
array-length v8, v8
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
div-int/lit8 v8, v8, 0x2
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/4 v9, 0x0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:goto_2
if-ge v9, v8, :cond_1
2019-02-04 20:05:16 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {v7, v9}, Lokhttp3/Headers;->dg(I)Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object v10
2019-02-04 20:05:16 +00:00
2019-05-04 02:59:52 +00:00
invoke-interface {p1, v10}, Lokio/BufferedSink;->eo(Ljava/lang/String;)Lokio/BufferedSink;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object v10
2019-02-04 20:05:16 +00:00
2019-05-08 22:54:48 +00:00
sget-object v11, Lokhttp3/MultipartBody;->boZ:[B
2019-02-04 20:05:16 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {v10, v11}, Lokio/BufferedSink;->E([B)Lokio/BufferedSink;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object v10
2019-02-04 20:05:16 +00:00
2019-05-04 02:59:52 +00:00
invoke-virtual {v7, v9}, Lokhttp3/Headers;->dh(I)Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object v11
2019-02-04 20:05:16 +00:00
2019-05-04 02:59:52 +00:00
invoke-interface {v10, v11}, Lokio/BufferedSink;->eo(Ljava/lang/String;)Lokio/BufferedSink;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object v10
2019-02-04 20:05:16 +00:00
2019-05-08 22:54:48 +00:00
sget-object v11, Lokhttp3/MultipartBody;->bpa:[B
2019-02-04 20:05:16 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {v10, v11}, Lokio/BufferedSink;->E([B)Lokio/BufferedSink;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
add-int/lit8 v9, v9, 0x1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
goto :goto_2
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_1
invoke-virtual {v6}, Lokhttp3/RequestBody;->contentType()Lokhttp3/MediaType;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object v7
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eqz v7, :cond_2
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const-string v8, "Content-Type: "
2019-02-04 20:05:16 +00:00
2019-05-04 02:59:52 +00:00
invoke-interface {p1, v8}, Lokio/BufferedSink;->eo(Ljava/lang/String;)Lokio/BufferedSink;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object v8
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {v7}, Lokhttp3/MediaType;->toString()Ljava/lang/String;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object v7
2019-02-04 20:05:16 +00:00
2019-05-04 02:59:52 +00:00
invoke-interface {v8, v7}, Lokio/BufferedSink;->eo(Ljava/lang/String;)Lokio/BufferedSink;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object v7
2019-02-04 20:05:16 +00:00
2019-05-08 22:54:48 +00:00
sget-object v8, Lokhttp3/MultipartBody;->bpa:[B
2019-02-04 20:05:16 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {v7, v8}, Lokio/BufferedSink;->E([B)Lokio/BufferedSink;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_2
invoke-virtual {v6}, Lokhttp3/RequestBody;->contentLength()J
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-wide v7
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const-wide/16 v9, -0x1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
cmp-long v11, v7, v9
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eqz v11, :cond_3
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const-string v9, "Content-Length: "
2019-02-04 20:05:16 +00:00
2019-05-04 02:59:52 +00:00
invoke-interface {p1, v9}, Lokio/BufferedSink;->eo(Ljava/lang/String;)Lokio/BufferedSink;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object v9
2019-02-04 20:05:16 +00:00
2019-05-04 02:59:52 +00:00
invoke-interface {v9, v7, v8}, Lokio/BufferedSink;->aG(J)Lokio/BufferedSink;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result-object v9
2019-02-04 20:05:16 +00:00
2019-05-08 22:54:48 +00:00
sget-object v10, Lokhttp3/MultipartBody;->bpa:[B
2019-02-04 20:05:16 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {v9, v10}, Lokio/BufferedSink;->E([B)Lokio/BufferedSink;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
goto :goto_3
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_3
if-eqz p2, :cond_4
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {v0}, Lokio/c;->clear()V
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return-wide v9
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_4
:goto_3
2019-05-08 22:54:48 +00:00
sget-object v9, Lokhttp3/MultipartBody;->bpa:[B
2019-02-04 20:05:16 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {p1, v9}, Lokio/BufferedSink;->E([B)Lokio/BufferedSink;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eqz p2, :cond_5
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
add-long/2addr v4, v7
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
goto :goto_4
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_5
invoke-virtual {v6, p1}, Lokhttp3/RequestBody;->writeTo(Lokio/BufferedSink;)V
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:goto_4
2019-05-08 22:54:48 +00:00
sget-object v6, Lokhttp3/MultipartBody;->bpa:[B
2019-02-04 20:05:16 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {p1, v6}, Lokio/BufferedSink;->E([B)Lokio/BufferedSink;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
add-int/lit8 v3, v3, 0x1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
goto/16 :goto_1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_6
2019-05-08 22:54:48 +00:00
sget-object v1, Lokhttp3/MultipartBody;->bpb:[B
2019-02-04 20:05:16 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {p1, v1}, Lokio/BufferedSink;->E([B)Lokio/BufferedSink;
2019-02-04 20:05:16 +00:00
2019-05-08 22:54:48 +00:00
iget-object v1, p0, Lokhttp3/MultipartBody;->bpc:Lokio/ByteString;
2019-02-04 20:05:16 +00:00
2019-02-27 21:13:14 +00:00
invoke-interface {p1, v1}, Lokio/BufferedSink;->i(Lokio/ByteString;)Lokio/BufferedSink;
2019-02-04 20:05:16 +00:00
2019-05-08 22:54:48 +00:00
sget-object v1, Lokhttp3/MultipartBody;->bpb:[B
2019-02-04 20:05:16 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {p1, v1}, Lokio/BufferedSink;->E([B)Lokio/BufferedSink;
2019-02-04 20:05:16 +00:00
2019-05-08 22:54:48 +00:00
sget-object v1, Lokhttp3/MultipartBody;->bpa:[B
2019-02-04 20:05:16 +00:00
2019-05-03 18:53:54 +00:00
invoke-interface {p1, v1}, Lokio/BufferedSink;->E([B)Lokio/BufferedSink;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eqz p2, :cond_7
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
iget-wide p1, v0, Lokio/c;->size:J
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
add-long/2addr v4, p1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {v0}, Lokio/c;->clear()V
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_7
return-wide v4
.end method
2019-02-04 20:05:16 +00:00
2019-02-27 21:13:14 +00:00
.method static a(Ljava/lang/StringBuilder;Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
.locals 5
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/16 v0, 0x22
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Ljava/lang/String;->length()I
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/4 v2, 0x0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:goto_0
if-ge v2, v1, :cond_3
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, v2}, Ljava/lang/String;->charAt(I)C
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
move-result v3
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/16 v4, 0xa
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eq v3, v4, :cond_2
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/16 v4, 0xd
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eq v3, v4, :cond_1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eq v3, v0, :cond_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p0, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
2019-02-04 20:05:16 +00:00
2019-02-04 20:29:01 +00:00
goto :goto_1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_0
const-string v3, "%22"
2019-02-04 20:05:16 +00:00
2019-02-04 20:29:01 +00:00
invoke-virtual {p0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
goto :goto_1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_1
const-string v3, "%0D"
2019-02-04 20:05:16 +00:00
2019-02-04 20:29:01 +00:00
invoke-virtual {p0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:08:30 +00:00
goto :goto_1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_2
const-string v3, "%0A"
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-virtual {p0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-02-04 20:05:16 +00:00
2019-02-04 20:29:01 +00:00
:goto_1
2019-02-04 20:08:30 +00:00
add-int/lit8 v2, v2, 0x1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
goto :goto_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_3
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
2019-02-04 20:05:16 +00:00
2019-02-27 21:13:14 +00:00
return-object p0
2019-02-04 20:05:16 +00:00
.end method
# virtual methods
2019-02-04 20:08:30 +00:00
.method public final contentLength()J
.locals 5
2019-02-04 20:05:16 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-wide v0, p0, Lokhttp3/MultipartBody;->contentLength:J
const-wide/16 v2, -0x1
2019-02-04 20:08:30 +00:00
cmp-long v4, v0, v2
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
if-eqz v4, :cond_0
2019-02-04 20:05:16 +00:00
return-wide v0
:cond_0
2019-02-04 20:08:30 +00:00
const/4 v0, 0x0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
const/4 v1, 0x1
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-direct {p0, v0, v1}, Lokhttp3/MultipartBody;->a(Lokio/BufferedSink;Z)J
2019-02-04 20:05:16 +00:00
move-result-wide v0
iput-wide v0, p0, Lokhttp3/MultipartBody;->contentLength:J
2019-02-04 20:08:30 +00:00
return-wide v0
2019-02-04 20:05:16 +00:00
.end method
2019-02-04 20:08:30 +00:00
.method public final contentType()Lokhttp3/MediaType;
2019-02-04 20:05:16 +00:00
.locals 1
2019-05-08 22:54:48 +00:00
iget-object v0, p0, Lokhttp3/MultipartBody;->bpe:Lokhttp3/MediaType;
2019-02-04 20:05:16 +00:00
return-object v0
.end method
2019-02-04 20:08:30 +00:00
.method public final writeTo(Lokio/BufferedSink;)V
2019-02-04 20:05:16 +00:00
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x0
2019-02-04 20:08:30 +00:00
invoke-direct {p0, p1, v0}, Lokhttp3/MultipartBody;->a(Lokio/BufferedSink;Z)J
2019-02-04 20:05:16 +00:00
return-void
.end method