apkfuckery/com.discord/smali_classes2/c0/b0.smali

100 lines
2.2 KiB
Smali
Raw Normal View History

2020-11-14 03:19:56 +00:00
.class public final Lc0/b0;
2020-11-13 19:18:44 +00:00
.super Lokhttp3/RequestBody;
.source "RequestBody.kt"
2020-11-12 02:11:44 +00:00
# instance fields
2020-11-13 19:18:44 +00:00
.field public final synthetic a:Ljava/io/File;
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
.field public final synthetic b:Lokhttp3/MediaType;
2020-11-12 02:11:44 +00:00
# direct methods
2020-11-13 19:18:44 +00:00
.method public constructor <init>(Ljava/io/File;Lokhttp3/MediaType;)V
.locals 0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput-object p1, p0, Lc0/b0;->a:Ljava/io/File;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iput-object p2, p0, Lc0/b0;->b:Lokhttp3/MediaType;
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
invoke-direct {p0}, Lokhttp3/RequestBody;-><init>()V
2020-11-12 02:11:44 +00:00
return-void
.end method
# virtual methods
2020-11-13 19:18:44 +00:00
.method public contentLength()J
2020-11-12 02:11:44 +00:00
.locals 2
2020-11-14 03:19:56 +00:00
iget-object v0, p0, Lc0/b0;->a:Ljava/io/File;
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
invoke-virtual {v0}, Ljava/io/File;->length()J
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
move-result-wide v0
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
return-wide v0
2020-11-12 02:11:44 +00:00
.end method
2020-11-13 19:18:44 +00:00
.method public contentType()Lokhttp3/MediaType;
2020-11-12 02:11:44 +00:00
.locals 1
2020-11-14 03:19:56 +00:00
iget-object v0, p0, Lc0/b0;->b:Lokhttp3/MediaType;
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
return-object v0
2020-11-12 02:11:44 +00:00
.end method
2020-11-13 19:18:44 +00:00
.method public writeTo(Lokio/BufferedSink;)V
.locals 3
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
const-string v0, "sink"
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-static {p1, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-object v0, p0, Lc0/b0;->a:Ljava/io/File;
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
const-string v1, "$this$source"
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-static {v0, v1}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
new-instance v2, Ljava/io/FileInputStream;
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
invoke-direct {v2, v0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-static {v2, v1}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
new-instance v0, Ld0/n;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
new-instance v1, Ld0/y;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-direct {v1}, Ld0/y;-><init>()V
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-direct {v0, v2, v1}, Ld0/n;-><init>(Ljava/io/InputStream;Ld0/y;)V
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
const/4 v1, 0x0
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
:try_start_0
2020-11-14 03:19:56 +00:00
invoke-interface {p1, v0}, Lokio/BufferedSink;->a0(Ld0/x;)J
2020-11-13 19:18:44 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-static {v0, v1}, Lf/h/a/f/f/n/f;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
return-void
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
:catchall_0
move-exception p1
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
:try_start_1
throw p1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
:catchall_1
move-exception v1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-static {v0, p1}, Lf/h/a/f/f/n/f;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
throw v1
2020-11-12 02:11:44 +00:00
.end method