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

100 lines
2.2 KiB
Smali
Raw Normal View History

2020-09-22 07:09:10 +00:00
.class public final Lg0/c0;
2020-07-08 16:44:49 +00:00
.super Lokhttp3/RequestBody;
.source "RequestBody.kt"
# instance fields
2020-09-16 23:45:23 +00:00
.field public final synthetic a:Ljava/io/File;
2020-07-08 16:44:49 +00:00
.field public final synthetic b:Lokhttp3/MediaType;
# direct methods
2020-09-16 23:45:23 +00:00
.method public constructor <init>(Ljava/io/File;Lokhttp3/MediaType;)V
2020-07-08 16:44:49 +00:00
.locals 0
2020-09-22 07:09:10 +00:00
iput-object p1, p0, Lg0/c0;->a:Ljava/io/File;
2020-07-08 16:44:49 +00:00
2020-09-22 07:09:10 +00:00
iput-object p2, p0, Lg0/c0;->b:Lokhttp3/MediaType;
2020-07-08 16:44:49 +00:00
invoke-direct {p0}, Lokhttp3/RequestBody;-><init>()V
return-void
.end method
# virtual methods
.method public contentLength()J
.locals 2
2020-09-22 07:09:10 +00:00
iget-object v0, p0, Lg0/c0;->a:Ljava/io/File;
2020-07-08 16:44:49 +00:00
2020-09-16 23:45:23 +00:00
invoke-virtual {v0}, Ljava/io/File;->length()J
2020-07-08 16:44:49 +00:00
2020-09-16 23:45:23 +00:00
move-result-wide v0
2020-07-08 16:44:49 +00:00
return-wide v0
.end method
.method public contentType()Lokhttp3/MediaType;
.locals 1
2020-09-22 07:09:10 +00:00
iget-object v0, p0, Lg0/c0;->b:Lokhttp3/MediaType;
2020-07-08 16:44:49 +00:00
return-object v0
.end method
.method public writeTo(Lokio/BufferedSink;)V
2020-09-16 23:45:23 +00:00
.locals 3
2020-09-08 08:16:32 +00:00
2020-09-16 23:45:23 +00:00
const-string v0, "sink"
2020-09-08 08:16:32 +00:00
2020-09-23 03:12:49 +00:00
invoke-static {p1, v0}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-09 19:21:20 +00:00
2020-09-22 07:09:10 +00:00
iget-object v0, p0, Lg0/c0;->a:Ljava/io/File;
2020-09-09 19:21:20 +00:00
2020-09-16 23:45:23 +00:00
const-string v1, "$this$source"
2020-09-23 03:12:49 +00:00
invoke-static {v0, v1}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-16 23:45:23 +00:00
new-instance v2, Ljava/io/FileInputStream;
invoke-direct {v2, v0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
2020-09-23 03:12:49 +00:00
invoke-static {v2, v1}, Lc0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-16 23:45:23 +00:00
2020-09-22 07:09:10 +00:00
new-instance v0, Lh0/n;
2020-09-16 23:45:23 +00:00
2020-09-22 07:09:10 +00:00
new-instance v1, Lh0/y;
2020-09-09 19:21:20 +00:00
2020-09-22 07:09:10 +00:00
invoke-direct {v1}, Lh0/y;-><init>()V
2020-09-09 19:21:20 +00:00
2020-09-22 07:09:10 +00:00
invoke-direct {v0, v2, v1}, Lh0/n;-><init>(Ljava/io/InputStream;Lh0/y;)V
2020-09-09 19:21:20 +00:00
2020-09-16 23:45:23 +00:00
const/4 v1, 0x0
2020-09-09 19:21:20 +00:00
2020-09-16 23:45:23 +00:00
:try_start_0
2020-09-22 07:09:10 +00:00
invoke-interface {p1, v0}, Lokio/BufferedSink;->n0(Lh0/x;)J
2020-09-16 23:45:23 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2020-09-22 07:09:10 +00:00
invoke-static {v0, v1}, Lc0/j/a;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
2020-09-16 23:45:23 +00:00
return-void
:catchall_0
move-exception p1
:try_start_1
2020-09-16 21:45:36 +00:00
throw p1
2020-09-16 23:45:23 +00:00
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
:catchall_1
move-exception v1
2020-09-22 07:09:10 +00:00
invoke-static {v0, p1}, Lc0/j/a;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
2020-09-16 23:45:23 +00:00
throw v1
2020-07-08 16:44:49 +00:00
.end method