apkfuckery/com.discord/smali_classes2/okio/ByteString.smali

400 lines
7.7 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public Lokio/ByteString;
.super Ljava/lang/Object;
.source "ByteString.kt"
# interfaces
.implements Ljava/io/Serializable;
.implements Ljava/lang/Comparable;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokio/ByteString$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/io/Serializable;",
"Ljava/lang/Comparable<",
"Lokio/ByteString;",
">;"
}
.end annotation
# static fields
.field public static final f:Lokio/ByteString;
.field public static final g:Lokio/ByteString$a;
.field public static final serialVersionUID:J = 0x1L
# instance fields
.field public transient d:I
.field public final data:[B
.field public transient e:Ljava/lang/String;
# direct methods
.method public static constructor <clinit>()V
.locals 2
new-instance v0, Lokio/ByteString$a;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lokio/ByteString$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Lokio/ByteString;->g:Lokio/ByteString$a;
2020-07-23 01:06:17 +00:00
sget-object v0, Lo0/y/a;->b:Lokio/ByteString;
2020-05-17 12:40:10 +00:00
sput-object v0, Lokio/ByteString;->f:Lokio/ByteString;
return-void
.end method
.method public constructor <init>([B)V
.locals 0
if-eqz p1, :cond_0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lokio/ByteString;->data:[B
return-void
:cond_0
const-string p1, "data"
2020-07-25 00:57:58 +00:00
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
const/4 p1, 0x0
throw p1
.end method
2020-07-08 16:44:49 +00:00
.method public static final g(Ljava/lang/String;)Lokio/ByteString;
.locals 0
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
invoke-static {p0}, Lo0/y/a;->d(Ljava/lang/String;)Lokio/ByteString;
2020-05-17 12:40:10 +00:00
move-result-object p0
return-object p0
.end method
.method private final readObject(Ljava/io/ObjectInputStream;)V
2020-07-08 16:44:49 +00:00
.locals 6
2020-05-17 12:40:10 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readInt()I
move-result v0
const/4 v1, 0x1
2020-07-08 16:44:49 +00:00
const/4 v2, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-ltz v0, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v3, 0x1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_0
const/4 v3, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_0
if-eqz v3, :cond_3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-array v3, v0, [B
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_1
if-ge v2, v0, :cond_2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
sub-int v4, v0, v2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p1, v3, v2, v4}, Ljava/io/InputStream;->read([BII)I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v5, -0x1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eq v4, v5, :cond_1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
add-int/2addr v2, v4
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_1
new-instance p1, Ljava/io/EOFException;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
throw p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_2
new-instance p1, Lokio/ByteString;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {p1, v3}, Lokio/ByteString;-><init>([B)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-class v0, Lokio/ByteString;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v2, "data"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0, v2}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
2020-05-17 12:40:10 +00:00
move-result-object v0
2020-07-08 16:44:49 +00:00
const-string v2, "field"
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
invoke-static {v0, v2}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0, v1}, Ljava/lang/reflect/Field;->setAccessible(Z)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object p1, p1, Lokio/ByteString;->data:[B
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0, p0, p1}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-void
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_3
const-string p1, "byteCount < 0: "
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {p1, v0}, Lf/e/b/a/a;->h(Ljava/lang/String;I)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
move-result-object p1
2020-07-08 16:44:49 +00:00
new-instance v0, Ljava/lang/IllegalArgumentException;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
throw v0
2020-05-17 12:40:10 +00:00
.end method
2020-07-08 16:44:49 +00:00
.method private final writeObject(Ljava/io/ObjectOutputStream;)V
2020-05-17 12:40:10 +00:00
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lokio/ByteString;->data:[B
2020-07-08 16:44:49 +00:00
array-length v0, v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->writeInt(I)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v0, p0, Lokio/ByteString;->data:[B
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->write([B)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-void
2020-05-17 12:40:10 +00:00
.end method
2020-07-08 16:44:49 +00:00
# virtual methods
.method public compareTo(Ljava/lang/Object;)I
2020-05-17 12:40:10 +00:00
.locals 0
2020-07-08 16:44:49 +00:00
check-cast p1, Lokio/ByteString;
if-eqz p1, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
invoke-static {p0, p1}, Lo0/y/a;->b(Lokio/ByteString;Lokio/ByteString;)I
2020-05-17 12:40:10 +00:00
move-result p1
return p1
:cond_0
const-string p1, "other"
2020-07-25 00:57:58 +00:00
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
const/4 p1, 0x0
throw p1
.end method
2020-07-08 16:44:49 +00:00
.method public equals(Ljava/lang/Object;)Z
2020-05-17 12:40:10 +00:00
.locals 0
2020-07-23 01:06:17 +00:00
invoke-static {p0, p1}, Lo0/y/a;->e(Lokio/ByteString;Ljava/lang/Object;)Z
2020-05-17 12:40:10 +00:00
move-result p1
return p1
.end method
2020-07-08 16:44:49 +00:00
.method public f(Ljava/lang/String;)Lokio/ByteString;
.locals 2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance v0, Lokio/ByteString;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-static {p1}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v1, p0, Lokio/ByteString;->data:[B
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p1, v1}, Ljava/security/MessageDigest;->digest([B)[B
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v1, "MessageDigest.getInstance(algorithm).digest(data)"
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
invoke-static {p1, v1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v0, p1}, Lokio/ByteString;-><init>([B)V
2020-05-17 12:40:10 +00:00
return-object v0
.end method
2020-07-08 16:44:49 +00:00
.method public h()I
2020-05-17 12:40:10 +00:00
.locals 1
2020-07-23 01:06:17 +00:00
invoke-static {p0}, Lo0/y/a;->g(Lokio/ByteString;)I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return v0
2020-05-17 12:40:10 +00:00
.end method
2020-07-08 16:44:49 +00:00
.method public hashCode()I
.locals 1
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
invoke-static {p0}, Lo0/y/a;->h(Lokio/ByteString;)I
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return v0
2020-05-17 12:40:10 +00:00
.end method
2020-07-08 16:44:49 +00:00
.method public i()Ljava/lang/String;
2020-05-17 12:40:10 +00:00
.locals 1
2020-07-23 01:06:17 +00:00
invoke-static {p0}, Lo0/y/a;->i(Lokio/ByteString;)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-object v0
2020-05-17 12:40:10 +00:00
.end method
2020-07-08 16:44:49 +00:00
.method public j()[B
2020-05-17 12:40:10 +00:00
.locals 1
2020-07-23 01:06:17 +00:00
invoke-static {p0}, Lo0/y/a;->j(Lokio/ByteString;)[B
2020-07-08 16:44:49 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
return-object v0
.end method
2020-07-08 16:44:49 +00:00
.method public k(I)B
2020-05-17 12:40:10 +00:00
.locals 0
2020-07-23 01:06:17 +00:00
invoke-static {p0, p1}, Lo0/y/a;->f(Lokio/ByteString;I)B
2020-05-17 12:40:10 +00:00
move-result p1
return p1
.end method
2020-07-08 16:44:49 +00:00
.method public l(ILokio/ByteString;II)Z
.locals 0
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
invoke-static {p0, p1, p2, p3, p4}, Lo0/y/a;->l(Lokio/ByteString;ILokio/ByteString;II)Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return p1
2020-05-17 12:40:10 +00:00
.end method
2020-07-08 16:44:49 +00:00
.method public m(I[BII)Z
.locals 0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz p2, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
invoke-static {p0, p1, p2, p3, p4}, Lo0/y/a;->m(Lokio/ByteString;I[BII)Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return p1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_0
const-string p1, "other"
2020-05-17 12:40:10 +00:00
2020-07-25 00:57:58 +00:00
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 p1, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
throw p1
2020-05-17 12:40:10 +00:00
.end method
2020-07-08 16:44:49 +00:00
.method public n()Lokio/ByteString;
2020-05-17 12:40:10 +00:00
.locals 1
2020-07-23 01:06:17 +00:00
invoke-static {p0}, Lo0/y/a;->o(Lokio/ByteString;)Lokio/ByteString;
2020-05-17 12:40:10 +00:00
move-result-object v0
return-object v0
.end method
2020-07-08 16:44:49 +00:00
.method public o(Ljava/io/OutputStream;)V
2020-05-17 12:40:10 +00:00
.locals 1
2020-07-08 16:44:49 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v0, p0, Lokio/ByteString;->data:[B
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p1, v0}, Ljava/io/OutputStream;->write([B)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-void
2020-05-17 12:40:10 +00:00
.end method
2020-07-23 01:06:17 +00:00
.method public p(Lo0/e;)V
2020-07-08 16:44:49 +00:00
.locals 3
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object v0, p0, Lokio/ByteString;->data:[B
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v1, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
array-length v2, v0
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
invoke-virtual {p1, v0, v1, v2}, Lo0/e;->G([BII)Lo0/e;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
return-void
2020-05-17 12:40:10 +00:00
.end method
.method public toString()Ljava/lang/String;
.locals 1
2020-07-23 01:06:17 +00:00
invoke-static {p0}, Lo0/y/a;->p(Lokio/ByteString;)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
move-result-object v0
return-object v0
.end method