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

447 lines
9.4 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public Lokio/ByteString;
.super Ljava/lang/Object;
2019-11-28 00:30:53 +00:00
.source "ByteString.kt"
2019-07-24 11:27:29 +00:00
# interfaces
.implements Ljava/io/Serializable;
.implements Ljava/lang/Comparable;
# annotations
2019-11-28 00:30:53 +00:00
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokio/ByteString$a;
}
.end annotation
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/io/Serializable;",
"Ljava/lang/Comparable<",
"Lokio/ByteString;",
">;"
}
.end annotation
# static fields
2019-12-06 01:29:57 +00:00
.field public static final bBK:Lokio/ByteString;
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
.field public static final bBL:Lokio/ByteString$a;
2019-07-24 11:27:29 +00:00
.field private static final serialVersionUID:J = 0x1L
# instance fields
2019-11-28 00:30:53 +00:00
.field public transient aW:I
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
.field public transient bBJ:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
.field public final data:[B
2019-07-24 11:27:29 +00:00
# direct methods
.method static constructor <clinit>()V
2019-11-28 00:30:53 +00:00
.locals 2
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
new-instance v0, Lokio/ByteString$a;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const/4 v1, 0x0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {v0, v1}, Lokio/ByteString$a;-><init>(B)V
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
sput-object v0, Lokio/ByteString;->bBL:Lokio/ByteString$a;
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
invoke-static {}, Lokio/a/a;->IP()Lokio/ByteString;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-12-06 01:29:57 +00:00
sput-object v0, Lokio/ByteString;->bBK:Lokio/ByteString;
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-11-28 00:30:53 +00:00
.method public constructor <init>([B)V
.locals 1
const-string v0, "data"
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lokio/ByteString;->data:[B
return-void
.end method
2019-12-06 01:29:57 +00:00
.method public static final ev(Ljava/lang/String;)Lokio/ByteString;
2019-11-28 00:30:53 +00:00
.locals 0
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
invoke-static {p0}, Lokio/ByteString$a;->ev(Ljava/lang/String;)Lokio/ByteString;
2019-07-24 11:27:29 +00:00
move-result-object p0
2019-11-28 00:30:53 +00:00
return-object p0
.end method
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
.method private final readObject(Ljava/io/ObjectInputStream;)V
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readInt()I
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result v0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
check-cast p1, Ljava/io/InputStream;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v1, "$receiver"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p1, v1}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const/4 v1, 0x1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const/4 v2, 0x0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-ltz v0, :cond_0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const/4 v3, 0x1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
2019-11-28 00:30:53 +00:00
const/4 v3, 0x0
2019-07-24 11:27:29 +00:00
:goto_0
2019-11-28 00:30:53 +00:00
if-eqz v3, :cond_3
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
new-array v3, v0, [B
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:goto_1
if-ge v2, v0, :cond_2
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
sub-int v4, v0, v2
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {p1, v3, v2, v4}, Ljava/io/InputStream;->read([BII)I
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result v4
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const/4 v5, -0x1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-eq v4, v5, :cond_1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
add-int/2addr v2, v4
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
goto :goto_1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:cond_1
new-instance p1, Ljava/io/EOFException;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
check-cast p1, Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
throw p1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:cond_2
new-instance p1, Lokio/ByteString;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {p1, v3}, Lokio/ByteString;-><init>([B)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-class v0, Lokio/ByteString;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v2, "data"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v0, v2}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v2, "field"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {v0, v2}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v0, v1}, Ljava/lang/reflect/Field;->setAccessible(Z)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
iget-object p1, p1, Lokio/ByteString;->data:[B
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v0, p0, p1}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
return-void
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:cond_3
invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
move-result-object p1
2019-11-28 00:30:53 +00:00
const-string v0, "byteCount < 0: "
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
move-result-object p1
new-instance v0, Ljava/lang/IllegalArgumentException;
2019-11-28 00:30:53 +00:00
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
check-cast v0, Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
throw v0
.end method
2019-11-28 00:30:53 +00:00
.method private final writeObject(Ljava/io/ObjectOutputStream;)V
.locals 1
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-11-28 00:30:53 +00:00
iget-object v0, p0, Lokio/ByteString;->data:[B
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
array-length v0, v0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->writeInt(I)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
iget-object v0, p0, Lokio/ByteString;->data:[B
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->write([B)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
return-void
.end method
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
# virtual methods
2019-12-06 01:29:57 +00:00
.method public Iu()Ljava/lang/String;
2019-11-28 00:30:53 +00:00
.locals 1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p0}, Lokio/a/a;->p(Lokio/ByteString;)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
return-object v0
.end method
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
.method public Iv()Ljava/lang/String;
2019-11-28 00:30:53 +00:00
.locals 1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p0}, Lokio/a/a;->q(Lokio/ByteString;)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
return-object v0
.end method
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
.method public Iw()Lokio/ByteString;
2019-11-28 00:30:53 +00:00
.locals 1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p0}, Lokio/a/a;->r(Lokio/ByteString;)Lokio/ByteString;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-11-28 00:30:53 +00:00
return-object v0
.end method
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
.method public Ix()I
2019-11-28 00:30:53 +00:00
.locals 1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p0}, Lokio/a/a;->s(Lokio/ByteString;)I
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result v0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
return v0
.end method
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
.method public Iy()[B
.locals 1
invoke-static {p0}, Lokio/a/a;->t(Lokio/ByteString;)[B
move-result-object v0
return-object v0
.end method
.method public Iz()[B
2019-11-28 00:30:53 +00:00
.locals 1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p0}, Lokio/a/a;->u(Lokio/ByteString;)[B
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-11-28 00:30:53 +00:00
return-object v0
.end method
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
.method public a(Lokio/ByteString;I)Z
.locals 1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v0, "other"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const/4 v0, 0x0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p0, v0, p1, v0, p2}, Lokio/a/a;->a(Lokio/ByteString;ILokio/ByteString;II)Z
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result p1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
return p1
2019-07-24 11:27:29 +00:00
.end method
2019-11-28 00:30:53 +00:00
.method public b(Ljava/io/OutputStream;)V
2019-07-24 11:27:29 +00:00
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-11-28 00:30:53 +00:00
const-string v0, "out"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
iget-object v0, p0, Lokio/ByteString;->data:[B
2019-11-28 00:30:53 +00:00
invoke-virtual {p1, v0}, Ljava/io/OutputStream;->write([B)V
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-11-28 00:30:53 +00:00
.method public b(Lokio/f;)V
.locals 3
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v0, "buffer"
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-08-01 02:26:13 +00:00
iget-object v0, p0, Lokio/ByteString;->data:[B
array-length v1, v0
2019-11-28 00:30:53 +00:00
const/4 v2, 0x0
2019-08-01 02:26:13 +00:00
2019-12-06 01:29:57 +00:00
invoke-virtual {p1, v0, v2, v1}, Lokio/f;->k([BII)Lokio/f;
2019-08-01 02:26:13 +00:00
2019-11-28 00:30:53 +00:00
return-void
.end method
2019-08-01 02:26:13 +00:00
2019-11-28 00:30:53 +00:00
.method public synthetic compareTo(Ljava/lang/Object;)I
.locals 1
2019-08-01 02:26:13 +00:00
2019-11-28 00:30:53 +00:00
check-cast p1, Lokio/ByteString;
2019-08-01 02:26:13 +00:00
2019-11-28 00:30:53 +00:00
const-string v0, "other"
2019-08-01 02:26:13 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-08-01 02:26:13 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p0, p1}, Lokio/a/a;->b(Lokio/ByteString;Lokio/ByteString;)I
2019-08-01 02:26:13 +00:00
2019-11-28 00:30:53 +00:00
move-result p1
2019-08-01 02:26:13 +00:00
2019-11-28 00:30:53 +00:00
return p1
.end method
2019-08-01 02:26:13 +00:00
2019-12-06 01:29:57 +00:00
.method public dH(I)B
2019-11-28 00:30:53 +00:00
.locals 0
2019-08-01 02:26:13 +00:00
2019-12-06 01:29:57 +00:00
invoke-static {p0, p1}, Lokio/a/a;->b(Lokio/ByteString;I)B
2019-08-01 02:26:13 +00:00
2019-11-28 00:30:53 +00:00
move-result p1
2019-08-01 02:26:13 +00:00
2019-11-28 00:30:53 +00:00
return p1
.end method
2019-08-01 02:26:13 +00:00
2019-12-06 01:29:57 +00:00
.method public equals(Ljava/lang/Object;)Z
.locals 0
2019-12-04 22:43:03 +00:00
2019-12-06 01:29:57 +00:00
invoke-static {p0, p1}, Lokio/a/a;->a(Lokio/ByteString;Ljava/lang/Object;)Z
2019-08-01 02:26:13 +00:00
2019-11-28 00:30:53 +00:00
move-result p1
2019-08-01 02:26:13 +00:00
2019-11-28 00:30:53 +00:00
return p1
.end method
2019-08-01 02:26:13 +00:00
2019-12-06 01:29:57 +00:00
.method public eu(Ljava/lang/String;)Lokio/ByteString;
2019-11-28 00:30:53 +00:00
.locals 2
2019-08-01 02:26:13 +00:00
2019-11-28 00:30:53 +00:00
const-string v0, "algorithm"
2019-08-01 02:26:13 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-08-01 02:26:13 +00:00
2019-11-28 00:30:53 +00:00
new-instance v0, Lokio/ByteString;
2019-08-01 02:26:13 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p1}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;
2019-07-31 00:08:31 +00:00
2019-11-28 00:30:53 +00:00
move-result-object p1
2019-07-31 00:08:31 +00:00
iget-object v1, p0, Lokio/ByteString;->data:[B
2019-11-28 00:30:53 +00:00
invoke-virtual {p1, v1}, Ljava/security/MessageDigest;->digest([B)[B
2019-07-31 00:08:31 +00:00
2019-11-28 00:30:53 +00:00
move-result-object p1
2019-07-31 00:08:31 +00:00
2019-11-28 00:30:53 +00:00
const-string v1, "MessageDigest.getInstance(algorithm).digest(data)"
2019-07-31 00:08:31 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p1, v1}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-31 00:08:31 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {v0, p1}, Lokio/ByteString;-><init>([B)V
2019-07-31 00:08:31 +00:00
2019-11-28 00:30:53 +00:00
return-object v0
.end method
2019-07-31 00:08:31 +00:00
2019-12-06 01:29:57 +00:00
.method public f(I[BII)Z
.locals 1
2019-07-31 00:08:31 +00:00
2019-12-06 01:29:57 +00:00
const-string v0, "other"
invoke-static {p2, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p0, p1, p2, p3, p4}, Lokio/a/a;->a(Lokio/ByteString;I[BII)Z
2019-07-31 00:08:31 +00:00
2019-11-28 00:30:53 +00:00
move-result p1
2019-07-31 00:08:31 +00:00
2019-11-28 00:30:53 +00:00
return p1
.end method
2019-07-31 00:08:31 +00:00
2019-11-28 00:30:53 +00:00
.method public hashCode()I
.locals 1
2019-07-31 00:08:31 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p0}, Lokio/a/a;->v(Lokio/ByteString;)I
2019-07-31 00:08:31 +00:00
2019-11-28 00:30:53 +00:00
move-result v0
2019-07-24 11:27:29 +00:00
return v0
.end method
.method public final n(Lokio/ByteString;)Z
2019-11-28 00:30:53 +00:00
.locals 1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v0, "prefix"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p0, p1}, Lokio/a/a;->a(Lokio/ByteString;Lokio/ByteString;)Z
2019-07-24 11:27:29 +00:00
move-result p1
return p1
.end method
.method public toString()Ljava/lang/String;
2019-11-28 00:30:53 +00:00
.locals 1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p0}, Lokio/a/a;->w(Lokio/ByteString;)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
move-result-object v0
return-object v0
.end method