RequestBody$2.smali
2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
.class Lcom/brplug/okhttp3/RequestBody$2;
.super Lcom/brplug/okhttp3/RequestBody;
.source "RequestBody.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/brplug/okhttp3/RequestBody;->create(Lcom/brplug/okhttp3/MediaType;[BII)Lcom/brplug/okhttp3/RequestBody;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic val$byteCount:I
.field final synthetic val$content:[B
.field final synthetic val$contentType:Lcom/brplug/okhttp3/MediaType;
.field final synthetic val$offset:I
# direct methods
.method constructor <init>(Lcom/brplug/okhttp3/MediaType;I[BI)V
.locals 0
.line 141
iput-object p1, p0, Lcom/brplug/okhttp3/RequestBody$2;->val$contentType:Lcom/brplug/okhttp3/MediaType;
iput p2, p0, Lcom/brplug/okhttp3/RequestBody$2;->val$byteCount:I
iput-object p3, p0, Lcom/brplug/okhttp3/RequestBody$2;->val$content:[B
iput p4, p0, Lcom/brplug/okhttp3/RequestBody$2;->val$offset:I
invoke-direct {p0}, Lcom/brplug/okhttp3/RequestBody;-><init>()V
return-void
.end method
# virtual methods
.method public contentLength()J
.locals 2
.line 147
iget v0, p0, Lcom/brplug/okhttp3/RequestBody$2;->val$byteCount:I
int-to-long v0, v0
return-wide v0
.end method
.method public contentType()Lcom/brplug/okhttp3/MediaType;
.locals 1
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.line 143
iget-object v0, p0, Lcom/brplug/okhttp3/RequestBody$2;->val$contentType:Lcom/brplug/okhttp3/MediaType;
return-object v0
.end method
.method public writeTo(Lcom/brplug/okio/BufferedSink;)V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 151
iget-object v0, p0, Lcom/brplug/okhttp3/RequestBody$2;->val$content:[B
iget v1, p0, Lcom/brplug/okhttp3/RequestBody$2;->val$offset:I
iget v2, p0, Lcom/brplug/okhttp3/RequestBody$2;->val$byteCount:I
invoke-interface {p1, v0, v1, v2}, Lcom/brplug/okio/BufferedSink;->write([BII)Lcom/brplug/okio/BufferedSink;
return-void
.end method