apkfuckery/com.discord/smali_classes2/okio/ByteString$a.smali
2020-03-27 23:23:51 +01:00

234 lines
4.1 KiB
Smali

.class public final Lokio/ByteString$a;
.super Ljava/lang/Object;
.source "ByteString.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokio/ByteString;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# direct methods
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static bridge synthetic a(Lokio/ByteString$a;[BIII)Lokio/ByteString;
.locals 1
and-int/lit8 v0, p4, 0x1
if-eqz v0, :cond_0
const/4 p2, 0x0
:cond_0
and-int/lit8 p4, p4, 0x2
if-eqz p4, :cond_1
array-length p3, p1
:cond_1
invoke-virtual {p0, p1, p2, p3}, Lokio/ByteString$a;->a([BII)Lokio/ByteString;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public final a(Ljava/io/InputStream;I)Lokio/ByteString;
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-eqz p1, :cond_4
const/4 v0, 0x0
if-ltz p2, :cond_0
const/4 v1, 0x1
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
if-eqz v1, :cond_3
new-array v1, p2, [B
:goto_1
if-ge v0, p2, :cond_2
sub-int v2, p2, v0
invoke-virtual {p1, v1, v0, v2}, Ljava/io/InputStream;->read([BII)I
move-result v2
const/4 v3, -0x1
if-eq v2, v3, :cond_1
add-int/2addr v0, v2
goto :goto_1
:cond_1
new-instance p1, Ljava/io/EOFException;
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
throw p1
:cond_2
new-instance p1, Lokio/ByteString;
invoke-direct {p1, v1}, Lokio/ByteString;-><init>([B)V
return-object p1
:cond_3
const-string p1, "byteCount < 0: "
invoke-static {p1, p2}, Le/e/b/a/a;->a(Ljava/lang/String;I)Ljava/lang/String;
move-result-object p1
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p2
:cond_4
const-string p1, "$receiver"
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public final a(Ljava/lang/String;)Lokio/ByteString;
.locals 0
if-eqz p1, :cond_0
invoke-static {p1}, Ld0/y/a;->a(Ljava/lang/String;)Lokio/ByteString;
move-result-object p1
return-object p1
:cond_0
const-string p1, "$receiver"
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public final varargs a([B)Lokio/ByteString;
.locals 0
if-eqz p1, :cond_0
invoke-static {p1}, Ld0/y/a;->a([B)Lokio/ByteString;
move-result-object p1
return-object p1
:cond_0
const-string p1, "data"
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public final a([BII)Lokio/ByteString;
.locals 7
if-eqz p1, :cond_0
array-length v0, p1
int-to-long v1, v0
int-to-long v3, p2
int-to-long v5, p3
invoke-static/range {v1 .. v6}, Lz/a/a2/w;->a(JJJ)V
new-array v0, p3, [B
const/4 v1, 0x0
invoke-static {p1, p2, v0, v1, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
new-instance p1, Lokio/ByteString;
invoke-direct {p1, v0}, Lokio/ByteString;-><init>([B)V
return-object p1
:cond_0
const-string p1, "$receiver"
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public final b(Ljava/lang/String;)Lokio/ByteString;
.locals 0
if-eqz p1, :cond_0
invoke-static {p1}, Ld0/y/a;->b(Ljava/lang/String;)Lokio/ByteString;
move-result-object p1
return-object p1
:cond_0
const-string p1, "$receiver"
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method