2658 lines
62 KiB
Smali
2658 lines
62 KiB
Smali
.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
|
|
|
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
|
value = "SMAP\nByteString.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ByteString.kt\nokio/ByteString\n+ 2 ByteString.kt\nokio/internal/ByteStringKt\n+ 3 -Util.kt\nokio/-Util\n+ 4 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,338:1\n39#2,7:339\n49#2:346\n52#2:347\n59#2,4:348\n63#2:353\n65#2:355\n71#2,23:356\n99#2,23:379\n126#2:402\n127#2,9:404\n139#2:413\n142#2:414\n145#2:415\n148#2:416\n156#2:417\n165#2,3:418\n172#2:421\n176#2:422\n180#2:423\n184#2:424\n188#2,7:425\n201#2:432\n205#2,7:433\n216#2,4:440\n225#2,5:444\n234#2,6:449\n240#2,9:456\n302#2,8:465\n126#2:473\n127#2,9:475\n313#2,9:484\n60#3:352\n66#3:354\n66#3:455\n1#4:403\n1#4:474\n*E\n*S KotlinDebug\n*F\n+ 1 ByteString.kt\nokio/ByteString\n*L\n65#1,7:339\n70#1:346\n106#1:347\n108#1,4:348\n108#1:353\n108#1:355\n110#1,23:356\n112#1,23:379\n116#1:402\n116#1,9:404\n118#1:413\n126#1:414\n128#1:415\n130#1:416\n149#1:417\n156#1,3:418\n158#1:421\n160#1:422\n162#1:423\n164#1:424\n170#1,7:425\n173#1:432\n176#1,7:433\n178#1,4:440\n180#1,5:444\n182#1,6:449\n182#1,9:456\n184#1,8:465\n184#1:473\n184#1,9:475\n184#1,9:484\n108#1:352\n108#1:354\n182#1:455\n116#1:403\n184#1:474\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {}
|
|
d1 = {
|
|
"\u0000j\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000f\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0016\n\u0002\u0010\u0008\n\u0002\u0008\u0004\n\u0002\u0010\u0005\n\u0002\u0008\t\n\u0002\u0010\u0012\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0007\n\u0002\u0010\u000b\n\u0002\u0008\u0008\n\u0002\u0010\u0000\n\u0002\u0008\u0018\u0008\u0016\u0018\u0000 b2\u00020\u00012\u0008\u0012\u0004\u0012\u00020\u00000\u0002:\u0001cB\u0011\u0008\u0000\u0012\u0006\u0010]\u001a\u000202\u00a2\u0006\u0004\u0008`\u0010aJ\u0010\u0010\u0006\u001a\u00020\u00052\u0006\u0010\u0004\u001a\u00020\u0003H\u0002J\u0010\u0010\t\u001a\u00020\u00052\u0006\u0010\u0008\u001a\u00020\u0007H\u0002J\u0008\u0010\u000b\u001a\u00020\nH\u0016J\u0010\u0010\u000e\u001a\u00020\n2\u0006\u0010\r\u001a\u00020\u000cH\u0016J\u0008\u0010\u000f\u001a\u00020\nH\u0016J\u0008\u0010\u0010\u001a\u00020\u0000H\u0016J\u0008\u0010\u0011\u001a\u00020\u0000H\u0016J\u0008\u0010\u0012\u001a\u00020\u0000H\u0016J\u0008\u0010\u0013\u001a\u00020\u0000H\u0016J\u0017\u0010\u0017\u001a\u00020\u00002\u0006\u0010\u0014\u001a\u00020\nH\u0010\u00a2\u0006\u0004\u0008\u0015\u0010\u0016J\u0010\u0010\u0019\u001a\u00020\u00002\u0006\u0010\u0018\u001a\u00020\u0000H\u0016J\u0010\u0010\u001a\u001a\u00020\u00002\u0006\u0010\u0018\u001a\u00020\u0000H\u0016J\u0010\u0010\u001b\u001a\u00020\u00002\u0006\u0010\u0018\u001a\u00020\u0000H\u0016J\u001f\u0010\u001e\u001a\u00020\u00002\u0006\u0010\u0014\u001a\u00020\n2\u0006\u0010\u0018\u001a\u00020\u0000H\u0010\u00a2\u0006\u0004\u0008\u001c\u0010\u001dJ\u0008\u0010\u001f\u001a\u00020\nH\u0016J\u0008\u0010 \u001a\u00020\nH\u0016J\u0008\u0010!\u001a\u00020\u0000H\u0016J\u0008\u0010\"\u001a\u00020\u0000H\u0016J\u001c\u0010&\u001a\u00020\u00002\u0008\u0008\u0002\u0010$\u001a\u00020#2\u0008\u0008\u0002\u0010%\u001a\u00020#H\u0017J\u0017\u0010+\u001a\u00020(2\u0006\u0010\'\u001a\u00020#H\u0010\u00a2\u0006\u0004\u0008)\u0010*J\u0018\u0010.\u001a\u00020(2\u0006\u0010,\u001a\u00020#H\u0087\u0002\u00a2\u0006\u0004\u0008-\u0010*J\u000f\u00101\u001a\u00020#H\u0010\u00a2\u0006\u0004\u0008/\u00100J\u0008\u00103\u001a\u000202H\u0016J\u000f\u00106\u001a\u000202H\u0010\u00a2\u0006\u0004\u00084\u00105J\u0008\u00108\u001a\u000207H\u0016J\u0010\u0010:\u001a\u00020\u00052\u0006\u0010\u0008\u001a\u000209H\u0016J\'\u0010:\u001a\u00020\u00052\u0006\u0010<\u001a\u00020;2\u0006\u0010=\u001a\u00020#2\u0006\u0010>\u001a\u00020#H\u0010\u00a2\u0006\u0004\u0008?\u0010@J(\u0010D\u001a\u00020C2\u0006\u0010=\u001a\u00020#2\u0006\u0010A\u001a\u00020\u00002\u0006\u0010B\u001a\u00020#2\u0006\u0010>\u001a\u00020#H\u0016J(\u0010D\u001a\u00020C2\u0006\u0010=\u001a\u00020#2\u0006\u0010A\u001a\u0002022\u0006\u0010B\u001a\u00020#2\u0006\u0010>\u001a\u00020#H\u0016J\u000e\u0010F\u001a\u00020C2\u0006\u0010E\u001a\u00020\u0000J\u000e\u0010F\u001a\u00020C2\u0006\u0010E\u001a\u000202J\u000e\u0010H\u001a\u00020C2\u0006\u0010G\u001a\u00020\u0000J\u000e\u0010H\u001a\u00020C2\u0006\u0010G\u001a\u000202J\u001a\u0010J\u001a\u00020#2\u0006\u0010A\u001a\u00020\u00002\u0008\u0008\u0002\u0010I\u001a\u00020#H\u0007J\u001a\u0010J\u001a\u00020#2\u0006\u0010A\u001a\u0002022\u0008\u0008\u0002\u0010I\u001a\u00020#H\u0017J\u001a\u0010K\u001a\u00020#2\u0006\u0010A\u001a\u00020\u00002\u0008\u0008\u0002\u0010I\u001a\u00020#H\u0007J\u001a\u0010K\u001a\u00020#2\u0006\u0010A\u001a\u0002022\u0008\u0008\u0002\u0010I\u001a\u00020#H\u0017J\u0013\u0010M\u001a\u00020C2\u0008\u0010A\u001a\u0004\u0018\u00010LH\u0096\u0002J\u0008\u0010N\u001a\u00020#H\u0016J\u0011\u0010O\u001a\u00020#2\u0006\u0010A\u001a\u00020\u0000H\u0096\u0002J\u0008\u0010P\u001a\u00020\nH\u0016J\u0017\u0010-\u001a\u00020(2\u0006\u0010,\u001a\u00020#H\u0007\u00a2\u0006\u0004\u0008Q\u0010*J\u000f\u0010S\u001a\u00020#H\u0007\u00a2\u0006\u0004\u0008R\u00100R\"\u0010N\u001a\u00020#8\u0000@\u0000X\u0080\u000e\u00a2\u0006\u0012\n\u0004\u0008N\u0010T\u001a\u0004\u0008U\u00100\"\u0004\u0008V\u0010WR$\u0010\u000b\u001a\u0004\u0018\u00010\n8\u0000@\u0000X\u0080\u000e\u00a2\u0006\u0012\n\u0004\u0008\u000b\u0010X\u001a\u0004\u0008Y\u0010Z\"\u0004\u0008[\u0010\\R\u001a\u0010]\u001a\u0002028\u0000X\u0080\u0004\u00a2\u0006\u000c\n\u0004\u0008]\u0010^\u001a\u0004\u0008_\u00105R\u0011\u0010S\u001a\u00020#8G\u00a2\u0006\u0006\u001a\u0004\u0008S\u00100\u00a8\u0006d"
|
|
}
|
|
d2 = {
|
|
"Lokio/ByteString;",
|
|
"Ljava/io/Serializable;",
|
|
"",
|
|
"Ljava/io/ObjectInputStream;",
|
|
"in",
|
|
"Lkotlin/d1;",
|
|
"readObject",
|
|
"Ljava/io/ObjectOutputStream;",
|
|
"out",
|
|
"writeObject",
|
|
"",
|
|
"utf8",
|
|
"Ljava/nio/charset/Charset;",
|
|
"charset",
|
|
"string",
|
|
"base64",
|
|
"md5",
|
|
"sha1",
|
|
"sha256",
|
|
"sha512",
|
|
"algorithm",
|
|
"digest$okio",
|
|
"(Ljava/lang/String;)Lokio/ByteString;",
|
|
"digest",
|
|
"key",
|
|
"hmacSha1",
|
|
"hmacSha256",
|
|
"hmacSha512",
|
|
"hmac$okio",
|
|
"(Ljava/lang/String;Lokio/ByteString;)Lokio/ByteString;",
|
|
"hmac",
|
|
"base64Url",
|
|
"hex",
|
|
"toAsciiLowercase",
|
|
"toAsciiUppercase",
|
|
"",
|
|
"beginIndex",
|
|
"endIndex",
|
|
"substring",
|
|
"pos",
|
|
"",
|
|
"internalGet$okio",
|
|
"(I)B",
|
|
"internalGet",
|
|
"index",
|
|
"getByte",
|
|
"get",
|
|
"getSize$okio",
|
|
"()I",
|
|
"getSize",
|
|
"",
|
|
"toByteArray",
|
|
"internalArray$okio",
|
|
"()[B",
|
|
"internalArray",
|
|
"Ljava/nio/ByteBuffer;",
|
|
"asByteBuffer",
|
|
"Ljava/io/OutputStream;",
|
|
"write",
|
|
"Lzj/m;",
|
|
"buffer",
|
|
"offset",
|
|
"byteCount",
|
|
"write$okio",
|
|
"(Lzj/m;II)V",
|
|
"other",
|
|
"otherOffset",
|
|
"",
|
|
"rangeEquals",
|
|
"prefix",
|
|
"startsWith",
|
|
"suffix",
|
|
"endsWith",
|
|
"fromIndex",
|
|
"indexOf",
|
|
"lastIndexOf",
|
|
"",
|
|
"equals",
|
|
"hashCode",
|
|
"compareTo",
|
|
"toString",
|
|
"-deprecated_getByte",
|
|
"-deprecated_size",
|
|
"size",
|
|
"I",
|
|
"getHashCode$okio",
|
|
"setHashCode$okio",
|
|
"(I)V",
|
|
"Ljava/lang/String;",
|
|
"getUtf8$okio",
|
|
"()Ljava/lang/String;",
|
|
"setUtf8$okio",
|
|
"(Ljava/lang/String;)V",
|
|
"data",
|
|
"[B",
|
|
"getData$okio",
|
|
"<init>",
|
|
"([B)V",
|
|
"Companion",
|
|
"a",
|
|
"okio"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final Companion:Lokio/ByteString$a;
|
|
|
|
.field public static final EMPTY:Lokio/ByteString;
|
|
.annotation build Lkotlin/jvm/JvmField;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static final serialVersionUID:J = 0x1L
|
|
|
|
|
|
# instance fields
|
|
.field private final data:[B
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private transient hashCode:I
|
|
|
|
.field private transient utf8:Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# 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/u;)V
|
|
|
|
sput-object v0, Lokio/ByteString;->Companion:Lokio/ByteString$a;
|
|
|
|
.line 1
|
|
new-instance v0, Lokio/ByteString;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-array v1, v1, [B
|
|
|
|
invoke-direct {v0, v1}, Lokio/ByteString;-><init>([B)V
|
|
|
|
sput-object v0, Lokio/ByteString;->EMPTY:Lokio/ByteString;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>([B)V
|
|
.locals 1
|
|
.param p1 # [B
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const-string v0, "data"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lokio/ByteString;->data:[B
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final decodeBase64(Ljava/lang/String;)Lokio/ByteString;
|
|
.locals 1
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Lkotlin/jvm/JvmStatic;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
|
|
sget-object v0, Lokio/ByteString;->Companion:Lokio/ByteString$a;
|
|
|
|
invoke-virtual {v0, p0}, Lokio/ByteString$a;->h(Ljava/lang/String;)Lokio/ByteString;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final decodeHex(Ljava/lang/String;)Lokio/ByteString;
|
|
.locals 1
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Lkotlin/jvm/JvmStatic;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
sget-object v0, Lokio/ByteString;->Companion:Lokio/ByteString$a;
|
|
|
|
invoke-virtual {v0, p0}, Lokio/ByteString$a;->i(Ljava/lang/String;)Lokio/ByteString;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final encodeString(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/ByteString;
|
|
.locals 1
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Ljava/nio/charset/Charset;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "encodeString"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/jvm/JvmStatic;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
sget-object v0, Lokio/ByteString;->Companion:Lokio/ByteString$a;
|
|
|
|
invoke-virtual {v0, p0, p1}, Lokio/ByteString$a;->j(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/ByteString;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final encodeUtf8(Ljava/lang/String;)Lokio/ByteString;
|
|
.locals 1
|
|
.param p0 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Lkotlin/jvm/JvmStatic;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
sget-object v0, Lokio/ByteString;->Companion:Lokio/ByteString$a;
|
|
|
|
invoke-virtual {v0, p0}, Lokio/ByteString$a;->l(Ljava/lang/String;)Lokio/ByteString;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static synthetic indexOf$default(Lokio/ByteString;Lokio/ByteString;IILjava/lang/Object;)I
|
|
.locals 0
|
|
|
|
if-nez p4, :cond_1
|
|
|
|
and-int/lit8 p3, p3, 0x2
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, p1, p2}, Lokio/ByteString;->indexOf(Lokio/ByteString;I)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string p1, "Super calls with default arguments not supported in this target, function: indexOf"
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static synthetic indexOf$default(Lokio/ByteString;[BIILjava/lang/Object;)I
|
|
.locals 0
|
|
|
|
if-nez p4, :cond_1
|
|
|
|
and-int/lit8 p3, p3, 0x2
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, p1, p2}, Lokio/ByteString;->indexOf([BI)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string p1, "Super calls with default arguments not supported in this target, function: indexOf"
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static synthetic lastIndexOf$default(Lokio/ByteString;Lokio/ByteString;IILjava/lang/Object;)I
|
|
.locals 0
|
|
|
|
if-nez p4, :cond_1
|
|
|
|
and-int/lit8 p3, p3, 0x2
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->size()I
|
|
|
|
move-result p2
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, p1, p2}, Lokio/ByteString;->lastIndexOf(Lokio/ByteString;I)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string p1, "Super calls with default arguments not supported in this target, function: lastIndexOf"
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static synthetic lastIndexOf$default(Lokio/ByteString;[BIILjava/lang/Object;)I
|
|
.locals 0
|
|
|
|
if-nez p4, :cond_1
|
|
|
|
and-int/lit8 p3, p3, 0x2
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->size()I
|
|
|
|
move-result p2
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, p1, p2}, Lokio/ByteString;->lastIndexOf([BI)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string p1, "Super calls with default arguments not supported in this target, function: lastIndexOf"
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final of(Ljava/nio/ByteBuffer;)Lokio/ByteString;
|
|
.locals 1
|
|
.param p0 # Ljava/nio/ByteBuffer;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "of"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/jvm/JvmStatic;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
sget-object v0, Lokio/ByteString;->Companion:Lokio/ByteString$a;
|
|
|
|
invoke-virtual {v0, p0}, Lokio/ByteString$a;->m(Ljava/nio/ByteBuffer;)Lokio/ByteString;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final varargs of([B)Lokio/ByteString;
|
|
.locals 1
|
|
.param p0 # [B
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Lkotlin/jvm/JvmStatic;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
sget-object v0, Lokio/ByteString;->Companion:Lokio/ByteString$a;
|
|
|
|
invoke-virtual {v0, p0}, Lokio/ByteString$a;->n([B)Lokio/ByteString;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final of([BII)Lokio/ByteString;
|
|
.locals 1
|
|
.param p0 # [B
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "of"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/jvm/JvmStatic;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
sget-object v0, Lokio/ByteString;->Companion:Lokio/ByteString$a;
|
|
|
|
invoke-virtual {v0, p0, p1, p2}, Lokio/ByteString$a;->o([BII)Lokio/ByteString;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final read(Ljava/io/InputStream;I)Lokio/ByteString;
|
|
.locals 1
|
|
.param p0 # Ljava/io/InputStream;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "read"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/jvm/JvmStatic;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
sget-object v0, Lokio/ByteString;->Companion:Lokio/ByteString$a;
|
|
|
|
invoke-virtual {v0, p0, p1}, Lokio/ByteString$a;->q(Ljava/io/InputStream;I)Lokio/ByteString;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private final readObject(Ljava/io/ObjectInputStream;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readInt()I
|
|
|
|
move-result v0
|
|
|
|
.line 2
|
|
sget-object v1, Lokio/ByteString;->Companion:Lokio/ByteString$a;
|
|
|
|
invoke-virtual {v1, p1, v0}, Lokio/ByteString$a;->q(Ljava/io/InputStream;I)Lokio/ByteString;
|
|
|
|
move-result-object p1
|
|
|
|
.line 3
|
|
const-class v0, Lokio/ByteString;
|
|
|
|
const-string v1, "data"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "field"
|
|
|
|
.line 4
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/reflect/Field;->setAccessible(Z)V
|
|
|
|
.line 5
|
|
iget-object p1, p1, Lokio/ByteString;->data:[B
|
|
|
|
invoke-virtual {v0, p0, p1}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic substring$default(Lokio/ByteString;IIILjava/lang/Object;)Lokio/ByteString;
|
|
.locals 0
|
|
|
|
if-nez p4, :cond_2
|
|
|
|
and-int/lit8 p4, p3, 0x1
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
:cond_0
|
|
and-int/lit8 p3, p3, 0x2
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->size()I
|
|
|
|
move-result p2
|
|
|
|
:cond_1
|
|
invoke-virtual {p0, p1, p2}, Lokio/ByteString;->substring(II)Lokio/ByteString;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_2
|
|
new-instance p0, Ljava/lang/UnsupportedOperationException;
|
|
|
|
const-string p1, "Super calls with default arguments not supported in this target, function: substring"
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method private final writeObject(Ljava/io/ObjectOutputStream;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokio/ByteString;->data:[B
|
|
|
|
array-length v0, v0
|
|
|
|
invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->writeInt(I)V
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lokio/ByteString;->data:[B
|
|
|
|
invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->write([B)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final -deprecated_getByte(I)B
|
|
.locals 0
|
|
.annotation runtime Lkotlin/Deprecated;
|
|
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
|
|
message = "moved to operator function"
|
|
replaceWith = .subannotation Lkotlin/ReplaceWith;
|
|
expression = "this[index]"
|
|
imports = {}
|
|
.end subannotation
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "-deprecated_getByte"
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lokio/ByteString;->getByte(I)B
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final -deprecated_size()I
|
|
.locals 1
|
|
.annotation runtime Lkotlin/Deprecated;
|
|
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
|
|
message = "moved to val"
|
|
replaceWith = .subannotation Lkotlin/ReplaceWith;
|
|
expression = "size"
|
|
imports = {}
|
|
.end subannotation
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "-deprecated_size"
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lokio/ByteString;->size()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public asByteBuffer()Ljava/nio/ByteBuffer;
|
|
.locals 2
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokio/ByteString;->data:[B
|
|
|
|
invoke-static {v0}, Ljava/nio/ByteBuffer;->wrap([B)Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->asReadOnlyBuffer()Ljava/nio/ByteBuffer;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "ByteBuffer.wrap(data).asReadOnlyBuffer()"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public base64()Ljava/lang/String;
|
|
.locals 3
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-static {v0, v1, v2, v1}, Lzj/a;->c([B[BILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public base64Url()Ljava/lang/String;
|
|
.locals 2
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {}, Lzj/a;->e()[B
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v0, v1}, Lzj/a;->b([B[B)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public bridge synthetic compareTo(Ljava/lang/Object;)I
|
|
.locals 0
|
|
|
|
.line 1
|
|
check-cast p1, Lokio/ByteString;
|
|
|
|
invoke-virtual {p0, p1}, Lokio/ByteString;->compareTo(Lokio/ByteString;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public compareTo(Lokio/ByteString;)I
|
|
.locals 9
|
|
.param p1 # Lokio/ByteString;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const-string v0, "other"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lokio/ByteString;->size()I
|
|
|
|
move-result v0
|
|
|
|
.line 3
|
|
invoke-virtual {p1}, Lokio/ByteString;->size()I
|
|
|
|
move-result v1
|
|
|
|
.line 4
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
move v4, v3
|
|
|
|
:goto_0
|
|
const/4 v5, -0x1
|
|
|
|
const/4 v6, 0x1
|
|
|
|
if-ge v4, v2, :cond_1
|
|
|
|
.line 5
|
|
invoke-virtual {p0, v4}, Lokio/ByteString;->getByte(I)B
|
|
|
|
move-result v7
|
|
|
|
and-int/lit16 v7, v7, 0xff
|
|
|
|
.line 6
|
|
invoke-virtual {p1, v4}, Lokio/ByteString;->getByte(I)B
|
|
|
|
move-result v8
|
|
|
|
and-int/lit16 v8, v8, 0xff
|
|
|
|
if-ne v7, v8, :cond_0
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-ge v7, v8, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
if-ne v0, v1, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
if-ge v0, v1, :cond_3
|
|
|
|
:goto_1
|
|
move v3, v5
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
move v3, v6
|
|
|
|
:goto_2
|
|
return v3
|
|
.end method
|
|
|
|
.method public digest$okio(Ljava/lang/String;)Lokio/ByteString;
|
|
.locals 2
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "algorithm"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
new-instance v0, Lokio/ByteString;
|
|
|
|
invoke-static {p1}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v1, p0, Lokio/ByteString;->data:[B
|
|
|
|
invoke-virtual {p1, v1}, Ljava/security/MessageDigest;->digest([B)[B
|
|
|
|
move-result-object p1
|
|
|
|
const-string v1, "MessageDigest.getInstance(algorithm).digest(data)"
|
|
|
|
invoke-static {p1, v1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {v0, p1}, Lokio/ByteString;-><init>([B)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final endsWith(Lokio/ByteString;)Z
|
|
.locals 3
|
|
.param p1 # Lokio/ByteString;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const-string v0, "suffix"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lokio/ByteString;->size()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1}, Lokio/ByteString;->size()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
invoke-virtual {p1}, Lokio/ByteString;->size()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {p0, v0, p1, v2, v1}, Lokio/ByteString;->rangeEquals(ILokio/ByteString;II)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final endsWith([B)Z
|
|
.locals 3
|
|
.param p1 # [B
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const-string v0, "suffix"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lokio/ByteString;->size()I
|
|
|
|
move-result v0
|
|
|
|
array-length v1, p1
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
array-length v1, p1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {p0, v0, p1, v2, v1}, Lokio/ByteString;->rangeEquals(I[BII)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 4
|
|
.param p1 # Ljava/lang/Object;
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-ne p1, p0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 1
|
|
:cond_0
|
|
instance-of v2, p1, Lokio/ByteString;
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
check-cast p1, Lokio/ByteString;
|
|
|
|
invoke-virtual {p1}, Lokio/ByteString;->size()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v3
|
|
|
|
array-length v3, v3
|
|
|
|
if-ne v2, v3, :cond_1
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v3
|
|
|
|
array-length v3, v3
|
|
|
|
invoke-virtual {p1, v1, v2, v1, v3}, Lokio/ByteString;->rangeEquals(I[BII)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move v0, v1
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getByte(I)B
|
|
.locals 0
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "getByte"
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lokio/ByteString;->internalGet$okio(I)B
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final getData$okio()[B
|
|
.locals 1
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokio/ByteString;->data:[B
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getHashCode$okio()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lokio/ByteString;->hashCode:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getSize$okio()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v0
|
|
|
|
array-length v0, v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getUtf8$okio()Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokio/ByteString;->utf8:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lokio/ByteString;->getHashCode$okio()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Ljava/util/Arrays;->hashCode([B)I
|
|
|
|
move-result v0
|
|
|
|
.line 3
|
|
invoke-virtual {p0, v0}, Lokio/ByteString;->setHashCode$okio(I)V
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public hex()Ljava/lang/String;
|
|
.locals 9
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v0
|
|
|
|
array-length v0, v0
|
|
|
|
mul-int/lit8 v0, v0, 0x2
|
|
|
|
new-array v0, v0, [C
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v1
|
|
|
|
array-length v2, v1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
move v4, v3
|
|
|
|
:goto_0
|
|
if-ge v3, v2, :cond_0
|
|
|
|
aget-byte v5, v1, v3
|
|
|
|
add-int/lit8 v6, v4, 0x1
|
|
|
|
.line 3
|
|
invoke-static {}, Lak/b;->I()[C
|
|
|
|
move-result-object v7
|
|
|
|
shr-int/lit8 v8, v5, 0x4
|
|
|
|
and-int/lit8 v8, v8, 0xf
|
|
|
|
aget-char v7, v7, v8
|
|
|
|
aput-char v7, v0, v4
|
|
|
|
add-int/lit8 v4, v6, 0x1
|
|
|
|
.line 4
|
|
invoke-static {}, Lak/b;->I()[C
|
|
|
|
move-result-object v7
|
|
|
|
and-int/lit8 v5, v5, 0xf
|
|
|
|
.line 5
|
|
aget-char v5, v7, v5
|
|
|
|
aput-char v5, v0, v6
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 6
|
|
:cond_0
|
|
new-instance v1, Ljava/lang/String;
|
|
|
|
invoke-direct {v1, v0}, Ljava/lang/String;-><init>([C)V
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public hmac$okio(Ljava/lang/String;Lokio/ByteString;)Lokio/ByteString;
|
|
.locals 2
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lokio/ByteString;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "algorithm"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "key"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
:try_start_0
|
|
invoke-static {p1}, Ljavax/crypto/Mac;->getInstance(Ljava/lang/String;)Ljavax/crypto/Mac;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2
|
|
new-instance v1, Ljavax/crypto/spec/SecretKeySpec;
|
|
|
|
invoke-virtual {p2}, Lokio/ByteString;->toByteArray()[B
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {v1, p2, p1}, Ljavax/crypto/spec/SecretKeySpec;-><init>([BLjava/lang/String;)V
|
|
|
|
invoke-virtual {v0, v1}, Ljavax/crypto/Mac;->init(Ljava/security/Key;)V
|
|
|
|
.line 3
|
|
new-instance p1, Lokio/ByteString;
|
|
|
|
iget-object p2, p0, Lokio/ByteString;->data:[B
|
|
|
|
invoke-virtual {v0, p2}, Ljavax/crypto/Mac;->doFinal([B)[B
|
|
|
|
move-result-object p2
|
|
|
|
const-string v0, "mac.doFinal(data)"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {p1, p2}, Lokio/ByteString;-><init>([B)V
|
|
:try_end_0
|
|
.catch Ljava/security/InvalidKeyException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p1
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 4
|
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw p2
|
|
.end method
|
|
|
|
.method public hmacSha1(Lokio/ByteString;)Lokio/ByteString;
|
|
.locals 1
|
|
.param p1 # Lokio/ByteString;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "key"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "HmacSHA1"
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0, p1}, Lokio/ByteString;->hmac$okio(Ljava/lang/String;Lokio/ByteString;)Lokio/ByteString;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public hmacSha256(Lokio/ByteString;)Lokio/ByteString;
|
|
.locals 1
|
|
.param p1 # Lokio/ByteString;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "key"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "HmacSHA256"
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0, p1}, Lokio/ByteString;->hmac$okio(Ljava/lang/String;Lokio/ByteString;)Lokio/ByteString;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public hmacSha512(Lokio/ByteString;)Lokio/ByteString;
|
|
.locals 1
|
|
.param p1 # Lokio/ByteString;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "key"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "HmacSHA512"
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0, p1}, Lokio/ByteString;->hmac$okio(Ljava/lang/String;Lokio/ByteString;)Lokio/ByteString;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final indexOf(Lokio/ByteString;)I
|
|
.locals 3
|
|
.param p1 # Lokio/ByteString;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/jvm/JvmOverloads;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-static {p0, p1, v0, v1, v2}, Lokio/ByteString;->indexOf$default(Lokio/ByteString;Lokio/ByteString;IILjava/lang/Object;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final indexOf(Lokio/ByteString;I)I
|
|
.locals 1
|
|
.param p1 # Lokio/ByteString;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/jvm/JvmOverloads;
|
|
.end annotation
|
|
|
|
const-string v0, "other"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Lokio/ByteString;->internalArray$okio()[B
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1, p2}, Lokio/ByteString;->indexOf([BI)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final indexOf([B)I
|
|
.locals 3
|
|
.param p1 # [B
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/jvm/JvmOverloads;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-static {p0, p1, v0, v1, v2}, Lokio/ByteString;->indexOf$default(Lokio/ByteString;[BIILjava/lang/Object;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public indexOf([BI)I
|
|
.locals 4
|
|
.param p1 # [B
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/jvm/JvmOverloads;
|
|
.end annotation
|
|
|
|
const-string v0, "other"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v0
|
|
|
|
array-length v0, v0
|
|
|
|
array-length v1, p1
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 3
|
|
invoke-static {p2, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result p2
|
|
|
|
if-gt p2, v0, :cond_1
|
|
|
|
.line 4
|
|
:goto_0
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v2
|
|
|
|
array-length v3, p1
|
|
|
|
invoke-static {v2, p2, p1, v1, v3}, Lzj/j;->d([BI[BII)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
if-eq p2, v0, :cond_1
|
|
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p2, -0x1
|
|
|
|
:goto_1
|
|
return p2
|
|
.end method
|
|
|
|
.method public internalArray$okio()[B
|
|
.locals 1
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public internalGet$okio(I)B
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v0
|
|
|
|
aget-byte p1, v0, p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final lastIndexOf(Lokio/ByteString;)I
|
|
.locals 3
|
|
.param p1 # Lokio/ByteString;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/jvm/JvmOverloads;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-static {p0, p1, v0, v1, v2}, Lokio/ByteString;->lastIndexOf$default(Lokio/ByteString;Lokio/ByteString;IILjava/lang/Object;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final lastIndexOf(Lokio/ByteString;I)I
|
|
.locals 1
|
|
.param p1 # Lokio/ByteString;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/jvm/JvmOverloads;
|
|
.end annotation
|
|
|
|
const-string v0, "other"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Lokio/ByteString;->internalArray$okio()[B
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1, p2}, Lokio/ByteString;->lastIndexOf([BI)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final lastIndexOf([B)I
|
|
.locals 3
|
|
.param p1 # [B
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/jvm/JvmOverloads;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-static {p0, p1, v0, v1, v2}, Lokio/ByteString;->lastIndexOf$default(Lokio/ByteString;[BIILjava/lang/Object;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public lastIndexOf([BI)I
|
|
.locals 3
|
|
.param p1 # [B
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lkotlin/jvm/JvmOverloads;
|
|
.end annotation
|
|
|
|
const-string v0, "other"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v0
|
|
|
|
array-length v0, v0
|
|
|
|
array-length v1, p1
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 3
|
|
invoke-static {p2, v0}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p2
|
|
|
|
:goto_0
|
|
if-ltz p2, :cond_1
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
array-length v2, p1
|
|
|
|
invoke-static {v0, p2, p1, v1, v2}, Lzj/j;->d([BI[BII)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
add-int/lit8 p2, p2, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p2, -0x1
|
|
|
|
:goto_1
|
|
return p2
|
|
.end method
|
|
|
|
.method public md5()Lokio/ByteString;
|
|
.locals 1
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "MD5"
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0}, Lokio/ByteString;->digest$okio(Ljava/lang/String;)Lokio/ByteString;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public rangeEquals(ILokio/ByteString;II)Z
|
|
.locals 1
|
|
.param p2 # Lokio/ByteString;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const-string v0, "other"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p2, p3, v0, p1, p4}, Lokio/ByteString;->rangeEquals(I[BII)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public rangeEquals(I[BII)Z
|
|
.locals 1
|
|
.param p2 # [B
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const-string v0, "other"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v0
|
|
|
|
array-length v0, v0
|
|
|
|
sub-int/2addr v0, p4
|
|
|
|
if-gt p1, v0, :cond_0
|
|
|
|
if-ltz p3, :cond_0
|
|
|
|
.line 3
|
|
array-length v0, p2
|
|
|
|
sub-int/2addr v0, p4
|
|
|
|
if-gt p3, v0, :cond_0
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0, p1, p2, p3, p4}, Lzj/j;->d([BI[BII)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
.method public final setHashCode$okio(I)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput p1, p0, Lokio/ByteString;->hashCode:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setUtf8$okio(Ljava/lang/String;)V
|
|
.locals 0
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lokio/ByteString;->utf8:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public sha1()Lokio/ByteString;
|
|
.locals 1
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "SHA-1"
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0}, Lokio/ByteString;->digest$okio(Ljava/lang/String;)Lokio/ByteString;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public sha256()Lokio/ByteString;
|
|
.locals 1
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "SHA-256"
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0}, Lokio/ByteString;->digest$okio(Ljava/lang/String;)Lokio/ByteString;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public sha512()Lokio/ByteString;
|
|
.locals 1
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "SHA-512"
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0}, Lokio/ByteString;->digest$okio(Ljava/lang/String;)Lokio/ByteString;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final size()I
|
|
.locals 1
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "size"
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lokio/ByteString;->getSize$okio()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final startsWith(Lokio/ByteString;)Z
|
|
.locals 2
|
|
.param p1 # Lokio/ByteString;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const-string v0, "prefix"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Lokio/ByteString;->size()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p0, v1, p1, v1, v0}, Lokio/ByteString;->rangeEquals(ILokio/ByteString;II)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final startsWith([B)Z
|
|
.locals 2
|
|
.param p1 # [B
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const-string v0, "prefix"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 2
|
|
array-length v0, p1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p0, v1, p1, v1, v0}, Lokio/ByteString;->rangeEquals(I[BII)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public string(Ljava/nio/charset/Charset;)Ljava/lang/String;
|
|
.locals 2
|
|
.param p1 # Ljava/nio/charset/Charset;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "charset"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokio/ByteString;->data:[B
|
|
|
|
new-instance v1, Ljava/lang/String;
|
|
|
|
invoke-direct {v1, v0, p1}, Ljava/lang/String;-><init>([BLjava/nio/charset/Charset;)V
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public final substring()Lokio/ByteString;
|
|
.locals 3
|
|
.annotation build Lkotlin/jvm/JvmOverloads;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x3
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-static {p0, v0, v0, v1, v2}, Lokio/ByteString;->substring$default(Lokio/ByteString;IIILjava/lang/Object;)Lokio/ByteString;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final substring(I)Lokio/ByteString;
|
|
.locals 3
|
|
.annotation build Lkotlin/jvm/JvmOverloads;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-static {p0, p1, v0, v1, v2}, Lokio/ByteString;->substring$default(Lokio/ByteString;IIILjava/lang/Object;)Lokio/ByteString;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public substring(II)Lokio/ByteString;
|
|
.locals 3
|
|
.annotation build Lkotlin/jvm/JvmOverloads;
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
move v2, v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v2, v1
|
|
|
|
:goto_0
|
|
if-eqz v2, :cond_6
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v2
|
|
|
|
array-length v2, v2
|
|
|
|
if-gt p2, v2, :cond_1
|
|
|
|
move v2, v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v2, v1
|
|
|
|
:goto_1
|
|
if-eqz v2, :cond_5
|
|
|
|
sub-int v2, p2, p1
|
|
|
|
if-ltz v2, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move v0, v1
|
|
|
|
:goto_2
|
|
if-eqz v0, :cond_4
|
|
|
|
if-nez p1, :cond_3
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v0
|
|
|
|
array-length v0, v0
|
|
|
|
if-ne p2, v0, :cond_3
|
|
|
|
move-object v0, p0
|
|
|
|
goto :goto_3
|
|
|
|
.line 3
|
|
:cond_3
|
|
new-instance v0, Lokio/ByteString;
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1, p1, p2}, Lkotlin/collections/n;->G1([BII)[B
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Lokio/ByteString;-><init>([B)V
|
|
|
|
:goto_3
|
|
return-object v0
|
|
|
|
.line 4
|
|
:cond_4
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "endIndex < beginIndex"
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_5
|
|
const-string p1, "endIndex > length("
|
|
|
|
.line 5
|
|
invoke-static {p1}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object p2
|
|
|
|
array-length p2, p2
|
|
|
|
const/16 v0, 0x29
|
|
|
|
invoke-static {p1, p2, v0}, Lc1/k;->a(Ljava/lang/StringBuilder;IC)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
|
|
|
|
.line 6
|
|
:cond_6
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "beginIndex < 0"
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public toAsciiLowercase()Lokio/ByteString;
|
|
.locals 6
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
:goto_0
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v1
|
|
|
|
array-length v1, v1
|
|
|
|
if-ge v0, v1, :cond_5
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v1
|
|
|
|
aget-byte v1, v1, v0
|
|
|
|
const/16 v2, 0x41
|
|
|
|
int-to-byte v2, v2
|
|
|
|
if-lt v1, v2, :cond_4
|
|
|
|
const/16 v3, 0x5a
|
|
|
|
int-to-byte v3, v3
|
|
|
|
if-le v1, v3, :cond_0
|
|
|
|
goto :goto_3
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v4
|
|
|
|
array-length v5, v4
|
|
|
|
invoke-static {v4, v5}, Ljava/util/Arrays;->copyOf([BI)[B
|
|
|
|
move-result-object v4
|
|
|
|
const-string v5, "java.util.Arrays.copyOf(this, size)"
|
|
|
|
invoke-static {v4, v5}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
add-int/lit8 v5, v0, 0x1
|
|
|
|
add-int/lit8 v1, v1, 0x20
|
|
|
|
int-to-byte v1, v1
|
|
|
|
.line 4
|
|
aput-byte v1, v4, v0
|
|
|
|
.line 5
|
|
:goto_1
|
|
array-length v0, v4
|
|
|
|
if-ge v5, v0, :cond_3
|
|
|
|
.line 6
|
|
aget-byte v0, v4, v5
|
|
|
|
if-lt v0, v2, :cond_2
|
|
|
|
if-le v0, v3, :cond_1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
add-int/lit8 v0, v0, 0x20
|
|
|
|
int-to-byte v0, v0
|
|
|
|
.line 7
|
|
aput-byte v0, v4, v5
|
|
|
|
:cond_2
|
|
:goto_2
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
.line 8
|
|
:cond_3
|
|
new-instance v0, Lokio/ByteString;
|
|
|
|
invoke-direct {v0, v4}, Lokio/ByteString;-><init>([B)V
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
:goto_3
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
move-object v0, p0
|
|
|
|
:goto_4
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public toAsciiUppercase()Lokio/ByteString;
|
|
.locals 6
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
:goto_0
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v1
|
|
|
|
array-length v1, v1
|
|
|
|
if-ge v0, v1, :cond_5
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v1
|
|
|
|
aget-byte v1, v1, v0
|
|
|
|
const/16 v2, 0x61
|
|
|
|
int-to-byte v2, v2
|
|
|
|
if-lt v1, v2, :cond_4
|
|
|
|
const/16 v3, 0x7a
|
|
|
|
int-to-byte v3, v3
|
|
|
|
if-le v1, v3, :cond_0
|
|
|
|
goto :goto_3
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v4
|
|
|
|
array-length v5, v4
|
|
|
|
invoke-static {v4, v5}, Ljava/util/Arrays;->copyOf([BI)[B
|
|
|
|
move-result-object v4
|
|
|
|
const-string v5, "java.util.Arrays.copyOf(this, size)"
|
|
|
|
invoke-static {v4, v5}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
add-int/lit8 v5, v0, 0x1
|
|
|
|
add-int/lit8 v1, v1, -0x20
|
|
|
|
int-to-byte v1, v1
|
|
|
|
.line 4
|
|
aput-byte v1, v4, v0
|
|
|
|
.line 5
|
|
:goto_1
|
|
array-length v0, v4
|
|
|
|
if-ge v5, v0, :cond_3
|
|
|
|
.line 6
|
|
aget-byte v0, v4, v5
|
|
|
|
if-lt v0, v2, :cond_2
|
|
|
|
if-le v0, v3, :cond_1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
add-int/lit8 v0, v0, -0x20
|
|
|
|
int-to-byte v0, v0
|
|
|
|
.line 7
|
|
aput-byte v0, v4, v5
|
|
|
|
:cond_2
|
|
:goto_2
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
.line 8
|
|
:cond_3
|
|
new-instance v0, Lokio/ByteString;
|
|
|
|
invoke-direct {v0, v4}, Lokio/ByteString;-><init>([B)V
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
:goto_3
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
move-object v0, p0
|
|
|
|
:goto_4
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public toByteArray()[B
|
|
.locals 2
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v0
|
|
|
|
array-length v1, v0
|
|
|
|
invoke-static {v0, v1}, Ljava/util/Arrays;->copyOf([BI)[B
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "java.util.Arrays.copyOf(this, size)"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 21
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v0
|
|
|
|
array-length v0, v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
move v0, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v0, v2
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
const-string v0, "[size=0]"
|
|
|
|
goto/16 :goto_3
|
|
|
|
.line 2
|
|
:cond_1
|
|
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v0
|
|
|
|
const/16 v3, 0x40
|
|
|
|
invoke-static {v0, v3}, Lak/b;->a([BI)I
|
|
|
|
move-result v0
|
|
|
|
const/4 v4, -0x1
|
|
|
|
const-string v5, "\u2026]"
|
|
|
|
const/16 v6, 0x5d
|
|
|
|
const-string v7, "[size="
|
|
|
|
if-ne v0, v4, :cond_6
|
|
|
|
.line 3
|
|
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v0
|
|
|
|
array-length v0, v0
|
|
|
|
if-gt v0, v3, :cond_2
|
|
|
|
const-string v0, "[hex="
|
|
|
|
.line 4
|
|
invoke-static {v0}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->hex()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, v6}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto/16 :goto_3
|
|
|
|
.line 5
|
|
:cond_2
|
|
invoke-static {v7}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v4
|
|
|
|
array-length v4, v4
|
|
|
|
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v4, " hex="
|
|
|
|
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 6
|
|
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v4
|
|
|
|
array-length v4, v4
|
|
|
|
if-gt v3, v4, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move v1, v2
|
|
|
|
:goto_1
|
|
if-eqz v1, :cond_5
|
|
|
|
.line 7
|
|
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v1
|
|
|
|
array-length v1, v1
|
|
|
|
if-ne v3, v1, :cond_4
|
|
|
|
move-object/from16 v1, p0
|
|
|
|
goto :goto_2
|
|
|
|
.line 8
|
|
:cond_4
|
|
new-instance v1, Lokio/ByteString;
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v4
|
|
|
|
invoke-static {v4, v2, v3}, Lkotlin/collections/n;->G1([BII)[B
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v1, v2}, Lokio/ByteString;-><init>([B)V
|
|
|
|
.line 9
|
|
:goto_2
|
|
invoke-virtual {v1}, Lokio/ByteString;->hex()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto/16 :goto_3
|
|
|
|
:cond_5
|
|
const-string v0, "endIndex > length("
|
|
|
|
.line 10
|
|
invoke-static {v0}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v1
|
|
|
|
array-length v1, v1
|
|
|
|
const/16 v2, 0x29
|
|
|
|
invoke-static {v0, v1, v2}, Lc1/k;->a(Ljava/lang/StringBuilder;IC)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
.line 11
|
|
:cond_6
|
|
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->utf8()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v3, "null cannot be cast to non-null type java.lang.String"
|
|
|
|
.line 12
|
|
invoke-static {v1, v3}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
invoke-virtual {v1, v2, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
const-string v2, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
|
|
|
|
invoke-static {v8, v2}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x4
|
|
|
|
const/4 v14, 0x0
|
|
|
|
const-string v9, "\\"
|
|
|
|
const-string v10, "\\\\"
|
|
|
|
move v11, v2
|
|
|
|
move v12, v3
|
|
|
|
move-object v13, v14
|
|
|
|
.line 13
|
|
invoke-static/range {v8 .. v13}, Lkotlin/text/u;->k2(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v15
|
|
|
|
const/16 v18, 0x0
|
|
|
|
const/16 v19, 0x4
|
|
|
|
const/16 v20, 0x0
|
|
|
|
const-string v16, "\n"
|
|
|
|
const-string v17, "\\n"
|
|
|
|
.line 14
|
|
invoke-static/range {v15 .. v20}, Lkotlin/text/u;->k2(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
const-string v10, "\r"
|
|
|
|
const-string v11, "\\r"
|
|
|
|
move v12, v2
|
|
|
|
move v13, v3
|
|
|
|
.line 15
|
|
invoke-static/range {v9 .. v14}, Lkotlin/text/u;->k2(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
.line 16
|
|
invoke-virtual {v1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v1
|
|
|
|
if-ge v0, v1, :cond_7
|
|
|
|
.line 17
|
|
invoke-static {v7}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B
|
|
|
|
move-result-object v1
|
|
|
|
array-length v1, v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, " text="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_3
|
|
|
|
.line 18
|
|
:cond_7
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "[text="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, v6}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public utf8()Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lokio/ByteString;->getUtf8$okio()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Lokio/ByteString;->internalArray$okio()[B
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lzj/i;->c([B)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 3
|
|
invoke-virtual {p0, v0}, Lokio/ByteString;->setUtf8$okio(Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public write(Ljava/io/OutputStream;)V
|
|
.locals 1
|
|
.param p1 # Ljava/io/OutputStream;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "out"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lokio/ByteString;->data:[B
|
|
|
|
invoke-virtual {p1, v0}, Ljava/io/OutputStream;->write([B)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public write$okio(Lzj/m;II)V
|
|
.locals 1
|
|
.param p1 # Lzj/m;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const-string v0, "buffer"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-static {p0, p1, p2, p3}, Lak/b;->G(Lokio/ByteString;Lzj/m;II)V
|
|
|
|
return-void
|
|
.end method
|