842 lines
23 KiB
Smali
842 lines
23 KiB
Smali
.class public final Lokio/ByteString$a;
|
|
.super Ljava/lang/Object;
|
|
.source "ByteString.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lokio/ByteString;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "a"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
|
value = "SMAP\nByteString.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ByteString.kt\nokio/ByteString$Companion\n+ 2 ByteString.kt\nokio/internal/ByteStringKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,338:1\n252#2:339\n256#2,2:340\n262#2,3:342\n269#2,2:345\n275#2:347\n277#2,7:349\n1#3:348\n1#3:356\n*E\n*S KotlinDebug\n*F\n+ 1 ByteString.kt\nokio/ByteString$Companion\n*L\n222#1:339\n227#1,2:340\n239#1,3:342\n247#1,2:345\n250#1:347\n250#1,7:349\n250#1:348\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {}
|
|
d1 = {
|
|
"\u0000F\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u0012\n\u0002\u0010\u0005\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0002\u0008\u0010\n\u0002\u0010\t\n\u0002\u0008\u0005\u0008\u0086\u0003\u0018\u00002\u00020\u0001B\t\u0008\u0002\u00a2\u0006\u0004\u0008+\u0010,J\u0014\u0010\u0006\u001a\u00020\u00052\n\u0010\u0004\u001a\u00020\u0002\"\u00020\u0003H\u0007J\'\u0010\n\u001a\u00020\u0005*\u00020\u00022\u0008\u0008\u0002\u0010\u0008\u001a\u00020\u00072\u0008\u0008\u0002\u0010\t\u001a\u00020\u0007H\u0007\u00a2\u0006\u0004\u0008\n\u0010\u000bJ\u0013\u0010\r\u001a\u00020\u0005*\u00020\u000cH\u0007\u00a2\u0006\u0004\u0008\r\u0010\u000eJ\u000c\u0010\u0010\u001a\u00020\u0005*\u00020\u000fH\u0007J\u001d\u0010\u0013\u001a\u00020\u0005*\u00020\u000f2\u0008\u0008\u0002\u0010\u0012\u001a\u00020\u0011H\u0007\u00a2\u0006\u0004\u0008\u0013\u0010\u0014J\u000e\u0010\u0015\u001a\u0004\u0018\u00010\u0005*\u00020\u000fH\u0007J\u000c\u0010\u0016\u001a\u00020\u0005*\u00020\u000fH\u0007J\u001b\u0010\u0018\u001a\u00020\u0005*\u00020\u00172\u0006\u0010\t\u001a\u00020\u0007H\u0007\u00a2\u0006\u0004\u0008\u0018\u0010\u0019J\u0019\u0010\u001b\u001a\u0004\u0018\u00010\u00052\u0006\u0010\u001a\u001a\u00020\u000fH\u0007\u00a2\u0006\u0004\u0008\u001b\u0010\u001cJ\u0017\u0010\u001d\u001a\u00020\u00052\u0006\u0010\u001a\u001a\u00020\u000fH\u0007\u00a2\u0006\u0004\u0008\u001d\u0010\u001cJ\u001f\u0010\u001e\u001a\u00020\u00052\u0006\u0010\u001a\u001a\u00020\u000f2\u0006\u0010\u0012\u001a\u00020\u0011H\u0007\u00a2\u0006\u0004\u0008\u001e\u0010\u0014J\u0017\u0010\u001f\u001a\u00020\u00052\u0006\u0010\u001a\u001a\u00020\u000fH\u0007\u00a2\u0006\u0004\u0008\u001f\u0010\u001cJ\u0017\u0010!\u001a\u00020\u00052\u0006\u0010 \u001a\u00020\u000cH\u0007\u00a2\u0006\u0004\u0008!\u0010\u000eJ\'\u0010#\u001a\u00020\u00052\u0006\u0010\"\u001a\u00020\u00022\u0006\u0010\u0008\u001a\u00020\u00072\u0006\u0010\t\u001a\u00020\u0007H\u0007\u00a2\u0006\u0004\u0008#\u0010\u000bJ\u001f\u0010%\u001a\u00020\u00052\u0006\u0010$\u001a\u00020\u00172\u0006\u0010\t\u001a\u00020\u0007H\u0007\u00a2\u0006\u0004\u0008%\u0010\u0019R\u0014\u0010&\u001a\u00020\u00058\u0006X\u0087\u0004\u00a2\u0006\u0006\n\u0004\u0008&\u0010\'R\u0014\u0010)\u001a\u00020(8\u0002X\u0082T\u00a2\u0006\u0006\n\u0004\u0008)\u0010*\u00a8\u0006-"
|
|
}
|
|
d2 = {
|
|
"Lokio/ByteString$a;",
|
|
"",
|
|
"",
|
|
"",
|
|
"data",
|
|
"Lokio/ByteString;",
|
|
"n",
|
|
"",
|
|
"offset",
|
|
"byteCount",
|
|
"o",
|
|
"([BII)Lokio/ByteString;",
|
|
"Ljava/nio/ByteBuffer;",
|
|
"m",
|
|
"(Ljava/nio/ByteBuffer;)Lokio/ByteString;",
|
|
"",
|
|
"l",
|
|
"Ljava/nio/charset/Charset;",
|
|
"charset",
|
|
"j",
|
|
"(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/ByteString;",
|
|
"h",
|
|
"i",
|
|
"Ljava/io/InputStream;",
|
|
"q",
|
|
"(Ljava/io/InputStream;I)Lokio/ByteString;",
|
|
"string",
|
|
"a",
|
|
"(Ljava/lang/String;)Lokio/ByteString;",
|
|
"b",
|
|
"c",
|
|
"d",
|
|
"buffer",
|
|
"e",
|
|
"array",
|
|
"f",
|
|
"inputstream",
|
|
"g",
|
|
"EMPTY",
|
|
"Lokio/ByteString;",
|
|
"",
|
|
"serialVersionUID",
|
|
"J",
|
|
"<init>",
|
|
"()V",
|
|
"okio"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/u;)V
|
|
.locals 0
|
|
|
|
.line 2
|
|
invoke-direct {p0}, Lokio/ByteString$a;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic k(Lokio/ByteString$a;Ljava/lang/String;Ljava/nio/charset/Charset;ILjava/lang/Object;)Lokio/ByteString;
|
|
.locals 0
|
|
|
|
and-int/lit8 p3, p3, 0x1
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
.line 1
|
|
sget-object p2, Lkotlin/text/d;->a:Ljava/nio/charset/Charset;
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, p1, p2}, 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 synthetic p(Lokio/ByteString$a;[BIIILjava/lang/Object;)Lokio/ByteString;
|
|
.locals 0
|
|
|
|
and-int/lit8 p5, p4, 0x1
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
:cond_0
|
|
and-int/lit8 p4, p4, 0x2
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
array-length p3, p1
|
|
|
|
:cond_1
|
|
invoke-virtual {p0, p1, p2, p3}, Lokio/ByteString$a;->o([BII)Lokio/ByteString;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Ljava/lang/String;)Lokio/ByteString;
|
|
.locals 1
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Lkotlin/Deprecated;
|
|
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
|
|
message = "moved to extension function"
|
|
replaceWith = .subannotation Lkotlin/ReplaceWith;
|
|
expression = "string.decodeBase64()"
|
|
imports = {
|
|
"okio.ByteString.Companion.decodeBase64"
|
|
}
|
|
.end subannotation
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "-deprecated_decodeBase64"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/Nullable;
|
|
.end annotation
|
|
|
|
const-string v0, "string"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lokio/ByteString$a;->h(Ljava/lang/String;)Lokio/ByteString;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final b(Ljava/lang/String;)Lokio/ByteString;
|
|
.locals 1
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Lkotlin/Deprecated;
|
|
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
|
|
message = "moved to extension function"
|
|
replaceWith = .subannotation Lkotlin/ReplaceWith;
|
|
expression = "string.decodeHex()"
|
|
imports = {
|
|
"okio.ByteString.Companion.decodeHex"
|
|
}
|
|
.end subannotation
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "-deprecated_decodeHex"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "string"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lokio/ByteString$a;->i(Ljava/lang/String;)Lokio/ByteString;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final c(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/ByteString;
|
|
.locals 1
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Ljava/nio/charset/Charset;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Lkotlin/Deprecated;
|
|
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
|
|
message = "moved to extension function"
|
|
replaceWith = .subannotation Lkotlin/ReplaceWith;
|
|
expression = "string.encode(charset)"
|
|
imports = {
|
|
"okio.ByteString.Companion.encode"
|
|
}
|
|
.end subannotation
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "-deprecated_encodeString"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "string"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "charset"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1, p2}, Lokio/ByteString$a;->j(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/ByteString;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final d(Ljava/lang/String;)Lokio/ByteString;
|
|
.locals 1
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Lkotlin/Deprecated;
|
|
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
|
|
message = "moved to extension function"
|
|
replaceWith = .subannotation Lkotlin/ReplaceWith;
|
|
expression = "string.encodeUtf8()"
|
|
imports = {
|
|
"okio.ByteString.Companion.encodeUtf8"
|
|
}
|
|
.end subannotation
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "-deprecated_encodeUtf8"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "string"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lokio/ByteString$a;->l(Ljava/lang/String;)Lokio/ByteString;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final e(Ljava/nio/ByteBuffer;)Lokio/ByteString;
|
|
.locals 1
|
|
.param p1 # Ljava/nio/ByteBuffer;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Lkotlin/Deprecated;
|
|
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
|
|
message = "moved to extension function"
|
|
replaceWith = .subannotation Lkotlin/ReplaceWith;
|
|
expression = "buffer.toByteString()"
|
|
imports = {
|
|
"okio.ByteString.Companion.toByteString"
|
|
}
|
|
.end subannotation
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "-deprecated_of"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "buffer"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lokio/ByteString$a;->m(Ljava/nio/ByteBuffer;)Lokio/ByteString;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final f([BII)Lokio/ByteString;
|
|
.locals 1
|
|
.param p1 # [B
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Lkotlin/Deprecated;
|
|
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
|
|
message = "moved to extension function"
|
|
replaceWith = .subannotation Lkotlin/ReplaceWith;
|
|
expression = "array.toByteString(offset, byteCount)"
|
|
imports = {
|
|
"okio.ByteString.Companion.toByteString"
|
|
}
|
|
.end subannotation
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "-deprecated_of"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "array"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1, p2, p3}, Lokio/ByteString$a;->o([BII)Lokio/ByteString;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final g(Ljava/io/InputStream;I)Lokio/ByteString;
|
|
.locals 1
|
|
.param p1 # Ljava/io/InputStream;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Lkotlin/Deprecated;
|
|
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
|
|
message = "moved to extension function"
|
|
replaceWith = .subannotation Lkotlin/ReplaceWith;
|
|
expression = "inputstream.readByteString(byteCount)"
|
|
imports = {
|
|
"okio.ByteString.Companion.readByteString"
|
|
}
|
|
.end subannotation
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "-deprecated_read"
|
|
.end annotation
|
|
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "inputstream"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1, p2}, Lokio/ByteString$a;->q(Ljava/io/InputStream;I)Lokio/ByteString;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final h(Ljava/lang/String;)Lokio/ByteString;
|
|
.locals 1
|
|
.param p1 # 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
|
|
|
|
const-string v0, "$this$decodeBase64"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-static {p1}, Lzj/a;->a(Ljava/lang/String;)[B
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 2
|
|
new-instance v0, Lokio/ByteString;
|
|
|
|
invoke-direct {v0, p1}, Lokio/ByteString;-><init>([B)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final i(Ljava/lang/String;)Lokio/ByteString;
|
|
.locals 6
|
|
.param p1 # 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
|
|
|
|
const-string v0, "$this$decodeHex"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
rem-int/lit8 v0, v0, 0x2
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
move v0, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v0, v1
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 2
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
div-int/lit8 v0, v0, 0x2
|
|
|
|
new-array v3, v0, [B
|
|
|
|
:goto_1
|
|
if-ge v1, v0, :cond_1
|
|
|
|
mul-int/lit8 v4, v1, 0x2
|
|
|
|
.line 3
|
|
invoke-virtual {p1, v4}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v5
|
|
|
|
invoke-static {v5}, Lak/b;->b(C)I
|
|
|
|
move-result v5
|
|
|
|
shl-int/lit8 v5, v5, 0x4
|
|
|
|
add-int/2addr v4, v2
|
|
|
|
.line 4
|
|
invoke-virtual {p1, v4}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v4
|
|
|
|
invoke-static {v4}, Lak/b;->b(C)I
|
|
|
|
move-result v4
|
|
|
|
add-int/2addr v4, v5
|
|
|
|
int-to-byte v4, v4
|
|
|
|
.line 5
|
|
aput-byte v4, v3, v1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
.line 6
|
|
:cond_1
|
|
new-instance p1, Lokio/ByteString;
|
|
|
|
invoke-direct {p1, v3}, Lokio/ByteString;-><init>([B)V
|
|
|
|
return-object p1
|
|
|
|
:cond_2
|
|
const-string v0, "Unexpected hex string: "
|
|
|
|
.line 7
|
|
invoke-static {v0, p1}, Lc/g;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final j(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/ByteString;
|
|
.locals 1
|
|
.param p1 # Ljava/lang/String;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # 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
|
|
|
|
const-string v0, "$this$encode"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "charset"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
new-instance v0, Lokio/ByteString;
|
|
|
|
invoke-virtual {p1, p2}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
|
|
|
|
move-result-object p1
|
|
|
|
const-string p2, "(this as java.lang.String).getBytes(charset)"
|
|
|
|
invoke-static {p1, p2}, 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 l(Ljava/lang/String;)Lokio/ByteString;
|
|
.locals 2
|
|
.param p1 # 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
|
|
|
|
const-string v0, "$this$encodeUtf8"
|
|
|
|
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}, Lzj/i;->a(Ljava/lang/String;)[B
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Lokio/ByteString;-><init>([B)V
|
|
|
|
.line 2
|
|
invoke-virtual {v0, p1}, Lokio/ByteString;->setUtf8$okio(Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final m(Ljava/nio/ByteBuffer;)Lokio/ByteString;
|
|
.locals 1
|
|
.param p1 # 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
|
|
|
|
const-string v0, "$this$toByteString"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I
|
|
|
|
move-result v0
|
|
|
|
new-array v0, v0, [B
|
|
|
|
.line 2
|
|
invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->get([B)Ljava/nio/ByteBuffer;
|
|
|
|
.line 3
|
|
new-instance p1, Lokio/ByteString;
|
|
|
|
invoke-direct {p1, v0}, Lokio/ByteString;-><init>([B)V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final varargs n([B)Lokio/ByteString;
|
|
.locals 2
|
|
.param p1 # [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
|
|
|
|
const-string v0, "data"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
new-instance v0, Lokio/ByteString;
|
|
|
|
array-length v1, p1
|
|
|
|
invoke-static {p1, v1}, Ljava/util/Arrays;->copyOf([BI)[B
|
|
|
|
move-result-object p1
|
|
|
|
const-string v1, "java.util.Arrays.copyOf(this, size)"
|
|
|
|
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 o([BII)Lokio/ByteString;
|
|
.locals 7
|
|
.param p1 # [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
|
|
|
|
const-string v0, "$this$toByteString"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
array-length v0, p1
|
|
|
|
int-to-long v1, v0
|
|
|
|
int-to-long v3, p2
|
|
|
|
int-to-long v5, p3
|
|
|
|
invoke-static/range {v1 .. v6}, Lzj/j;->e(JJJ)V
|
|
|
|
.line 2
|
|
new-instance v0, Lokio/ByteString;
|
|
|
|
add-int/2addr p3, p2
|
|
|
|
invoke-static {p1, p2, p3}, Lkotlin/collections/n;->G1([BII)[B
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Lokio/ByteString;-><init>([B)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final q(Ljava/io/InputStream;I)Lokio/ByteString;
|
|
.locals 4
|
|
.param p1 # 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
|
|
|
|
const-string v0, "$this$readByteString"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-ltz p2, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v1, v0
|
|
|
|
:goto_0
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 1
|
|
new-array v1, p2, [B
|
|
|
|
:goto_1
|
|
if-ge v0, p2, :cond_2
|
|
|
|
sub-int v2, p2, v0
|
|
|
|
.line 2
|
|
invoke-virtual {p1, v1, v0, v2}, Ljava/io/InputStream;->read([BII)I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, -0x1
|
|
|
|
if-eq v2, v3, :cond_1
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
goto :goto_1
|
|
|
|
.line 3
|
|
:cond_1
|
|
new-instance p1, Ljava/io/EOFException;
|
|
|
|
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
|
|
|
|
throw p1
|
|
|
|
.line 4
|
|
:cond_2
|
|
new-instance p1, Lokio/ByteString;
|
|
|
|
invoke-direct {p1, v1}, Lokio/ByteString;-><init>([B)V
|
|
|
|
return-object p1
|
|
|
|
:cond_3
|
|
const-string p1, "byteCount < 0: "
|
|
|
|
.line 5
|
|
invoke-static {p1, p2}, Landroid/support/v4/media/b;->a(Ljava/lang/String;I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p2
|
|
.end method
|