apkfuckery/com.discord/smali/okhttp3/RequestBody$1.smali

81 lines
1.8 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class final Lokhttp3/RequestBody$1;
.super Lokhttp3/RequestBody;
.source "RequestBody.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lokhttp3/RequestBody;->create(Lokhttp3/MediaType;Lokio/ByteString;)Lokhttp3/RequestBody;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
2019-11-15 02:21:15 +00:00
.field final synthetic bsw:Lokhttp3/MediaType;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
.field final synthetic bsx:Lokio/ByteString;
2019-07-24 11:27:29 +00:00
# direct methods
.method constructor <init>(Lokhttp3/MediaType;Lokio/ByteString;)V
.locals 0
2019-11-15 02:21:15 +00:00
iput-object p1, p0, Lokhttp3/RequestBody$1;->bsw:Lokhttp3/MediaType;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iput-object p2, p0, Lokhttp3/RequestBody$1;->bsx:Lokio/ByteString;
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Lokhttp3/RequestBody;-><init>()V
return-void
.end method
# virtual methods
.method public final contentLength()J
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Lokhttp3/RequestBody$1;->bsx:Lokio/ByteString;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Lokio/ByteString;->size()I
move-result v0
int-to-long v0, v0
return-wide v0
.end method
.method public final contentType()Lokhttp3/MediaType;
.locals 1
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Lokhttp3/RequestBody$1;->bsw:Lokhttp3/MediaType;
2019-07-24 11:27:29 +00:00
return-object v0
.end method
.method public final writeTo(Lokio/BufferedSink;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Lokhttp3/RequestBody$1;->bsx:Lokio/ByteString;
2019-07-24 11:27:29 +00:00
invoke-interface {p1, v0}, Lokio/BufferedSink;->m(Lokio/ByteString;)Lokio/BufferedSink;
return-void
.end method