.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$Companion; } .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 = { 0x1, 0x0, 0x3 } d1 = { "\u0000p\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000f\n\u0000\n\u0002\u0010\u0012\n\u0002\u0008\u0004\n\u0002\u0010\u0008\n\u0002\u0008\u0006\n\u0002\u0010\u000e\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0002\u0008\u0008\n\u0002\u0010\u000b\n\u0002\u0008\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0005\n\u0002\u0008\u001a\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0008\n\u0002\u0018\u0002\n\u0002\u0008\t\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0008\u0016\u0018\u0000 Z2\u00020\u00012\u0008\u0012\u0004\u0012\u00020\u00000\u0002:\u0001ZB\u000f\u0008\u0000\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u00a2\u0006\u0002\u0010\u0005J\u0008\u0010\u0015\u001a\u00020\u0016H\u0016J\u0008\u0010\u0017\u001a\u00020\u0010H\u0016J\u0008\u0010\u0018\u001a\u00020\u0010H\u0016J\u0011\u0010\u0019\u001a\u00020\t2\u0006\u0010\u001a\u001a\u00020\u0000H\u0096\u0002J\u0015\u0010\u001b\u001a\u00020\u00002\u0006\u0010\u001c\u001a\u00020\u0010H\u0010\u00a2\u0006\u0002\u0008\u001dJ\u000e\u0010\u001e\u001a\u00020\u001f2\u0006\u0010 \u001a\u00020\u0004J\u000e\u0010\u001e\u001a\u00020\u001f2\u0006\u0010 \u001a\u00020\u0000J\u0013\u0010!\u001a\u00020\u001f2\u0008\u0010\u001a\u001a\u0004\u0018\u00010\"H\u0096\u0002J\u0016\u0010#\u001a\u00020$2\u0006\u0010%\u001a\u00020\tH\u0087\u0002\u00a2\u0006\u0002\u0008&J\u0015\u0010&\u001a\u00020$2\u0006\u0010%\u001a\u00020\tH\u0007\u00a2\u0006\u0002\u0008\'J\r\u0010(\u001a\u00020\tH\u0010\u00a2\u0006\u0002\u0008)J\u0008\u0010\u0008\u001a\u00020\tH\u0016J\u0008\u0010*\u001a\u00020\u0010H\u0016J\u001d\u0010+\u001a\u00020\u00002\u0006\u0010\u001c\u001a\u00020\u00102\u0006\u0010,\u001a\u00020\u0000H\u0010\u00a2\u0006\u0002\u0008-J\u0010\u0010.\u001a\u00020\u00002\u0006\u0010,\u001a\u00020\u0000H\u0016J\u0010\u0010/\u001a\u00020\u00002\u0006\u0010,\u001a\u00020\u0000H\u0016J\u0010\u00100\u001a\u00020\u00002\u0006\u0010,\u001a\u00020\u0000H\u0016J\u001a\u00101\u001a\u00020\t2\u0006\u0010\u001a\u001a\u00020\u00042\u0008\u0008\u0002\u00102\u001a\u00020\tH\u0017J\u001a\u00101\u001a\u00020\t2\u0006\u0010\u001a\u001a\u00020\u00002\u0008\u0008\u0002\u00102\u001a\u00020\tH\u0007J\r\u00103\u001a\u00020\u0004H\u0010\u00a2\u0006\u0002\u00084J\u0015\u00105\u001a\u00020$2\u0006\u00106\u001a\u00020\tH\u0010\u00a2\u0006\u0002\u00087J\u001a\u00108\u001a\u00020\t2\u0006\u0010\u001a\u001a\u00020\u00042\u0008\u0008\u0002\u00102\u001a\u00020\tH\u0017J\u001a\u00108\u001a\u00020\t2\u0006\u0010\u001a\u001a\u00020\u00002\u0008\u0008\u0002\u00102\u001a\u00020\tH\u0007J\u0008\u00109\u001a\u00020\u0000H\u0016J(\u0010:\u001a\u00020\u001f2\u0006\u0010;\u001a\u00020\t2\u0006\u0010\u001a\u001a\u00020\u00042\u0006\u0010<\u001a\u00020\t2\u0006\u0010=\u001a\u00020\tH\u0016J(\u0010:\u001a\u00020\u001f2\u0006\u0010;\u001a\u00020\t2\u0006\u0010\u001a\u001a\u00020\u00002\u0006\u0010<\u001a\u00020\t2\u0006\u0010=\u001a\u00020\tH\u0016J\u0010\u0010>\u001a\u00020?2\u0006\u0010@\u001a\u00020AH\u0002J\u0008\u0010B\u001a\u00020\u0000H\u0016J\u0008\u0010C\u001a\u00020\u0000H\u0016J\u0008\u0010D\u001a\u00020\u0000H\u0016J\r\u0010\u000e\u001a\u00020\tH\u0007\u00a2\u0006\u0002\u0008EJ\u000e\u0010F\u001a\u00020\u001f2\u0006\u0010G\u001a\u00020\u0004J\u000e\u0010F\u001a\u00020\u001f2\u0006\u0010G\u001a\u00020\u0000J\u0010\u0010H\u001a\u00020\u00102\u0006\u0010I\u001a\u00020JH\u0016J\u001c\u0010K\u001a\u00020\u00002\u0008\u0008\u0002\u0010L\u001a\u00020\t2\u0008\u0008\u0002\u0010M\u001a\u00020\tH\u0017J\u0008\u0010N\u001a\u00020\u0000H\u0016J\u0008\u0010O\u001a\u00020\u0000H\u0016J\u0008\u0010P\u001a\u00020\u0004H\u0016J\u0008\u0010Q\u001a\u00020\u0010H\u0016J\u0008\u0010\u000f\u001a\u00020\u0010H\u0016J\u0010\u0010R\u001a\u00020?2\u0006\u0010S\u001a\u00020TH\u0016J%\u0010R\u001a\u00020?2\u0006\u0010U\u001a\u00020V2\u0006\u0010;\u001a\u00020\t2\u0006\u0010=\u001a\u00020\tH\u0010\u00a2\u0006\u0002\u0008WJ\u0010\u0010X\u001a\u00020?2\u0006\u0010S\u001a\u00020YH\u0002R\u0014\u0010\u0003\u001a\u00020\u0004X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0006\u0010\u0007R\u001a\u0010\u0008\u001a\u00020\tX\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\n\u0010\u000b\"\u0004\u0008\u000c\u0010\rR\u0011\u0010\u000e\u001a\u00020\t8G\u00a2\u0006\u0006\u001a\u0004\u0008\u000e\u0010\u000bR\u001c\u0010\u000f\u001a\u0004\u0018\u00010\u0010X\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0011\u0010\u0012\"\u0004\u0008\u0013\u0010\u0014\u00a8\u0006[" } d2 = { "Lokio/ByteString;", "Ljava/io/Serializable;", "", "data", "", "([B)V", "getData$okio", "()[B", "hashCode", "", "getHashCode$okio", "()I", "setHashCode$okio", "(I)V", "size", "utf8", "", "getUtf8$okio", "()Ljava/lang/String;", "setUtf8$okio", "(Ljava/lang/String;)V", "asByteBuffer", "Ljava/nio/ByteBuffer;", "base64", "base64Url", "compareTo", "other", "digest", "algorithm", "digest$okio", "endsWith", "", "suffix", "equals", "", "get", "", "index", "getByte", "-deprecated_getByte", "getSize", "getSize$okio", "hex", "hmac", "key", "hmac$okio", "hmacSha1", "hmacSha256", "hmacSha512", "indexOf", "fromIndex", "internalArray", "internalArray$okio", "internalGet", "pos", "internalGet$okio", "lastIndexOf", "md5", "rangeEquals", "offset", "otherOffset", "byteCount", "readObject", "", "in", "Ljava/io/ObjectInputStream;", "sha1", "sha256", "sha512", "-deprecated_size", "startsWith", "prefix", "string", "charset", "Ljava/nio/charset/Charset;", "substring", "beginIndex", "endIndex", "toAsciiLowercase", "toAsciiUppercase", "toByteArray", "toString", "write", "out", "Ljava/io/OutputStream;", "buffer", "Lokio/Buffer;", "write$okio", "writeObject", "Ljava/io/ObjectOutputStream;", "Companion", "okio" } k = 0x1 mv = { 0x1, 0x4, 0x0 } .end annotation # static fields .field public static final Companion:Lokio/ByteString$Companion; .field public static final EMPTY:Lokio/ByteString; .field private static final serialVersionUID:J = 0x1L # instance fields .field private final data:[B .field private transient hashCode:I .field private transient utf8:Ljava/lang/String; # direct methods .method static constructor ()V .locals 2 new-instance v0, Lokio/ByteString$Companion; const/4 v1, 0x0 invoke-direct {v0, v1}, Lokio/ByteString$Companion;->(Lkotlin/jvm/internal/DefaultConstructorMarker;)V sput-object v0, Lokio/ByteString;->Companion:Lokio/ByteString$Companion; .line 219 new-instance v0, Lokio/ByteString; const/4 v1, 0x0 new-array v1, v1, [B invoke-direct {v0, v1}, Lokio/ByteString;->([B)V sput-object v0, Lokio/ByteString;->EMPTY:Lokio/ByteString; return-void .end method .method public constructor ([B)V .locals 1 const-string v0, "data" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 59 invoke-direct {p0}, Ljava/lang/Object;->()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 .annotation runtime Lkotlin/jvm/JvmStatic; .end annotation sget-object v0, Lokio/ByteString;->Companion:Lokio/ByteString$Companion; invoke-virtual {v0, p0}, Lokio/ByteString$Companion;->decodeBase64(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 .annotation runtime Lkotlin/jvm/JvmStatic; .end annotation sget-object v0, Lokio/ByteString;->Companion:Lokio/ByteString$Companion; invoke-virtual {v0, p0}, Lokio/ByteString$Companion;->decodeHex(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 .annotation runtime Lkotlin/jvm/JvmStatic; .end annotation sget-object v0, Lokio/ByteString;->Companion:Lokio/ByteString$Companion; invoke-virtual {v0, p0, p1}, Lokio/ByteString$Companion;->encodeString(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 .annotation runtime Lkotlin/jvm/JvmStatic; .end annotation sget-object v0, Lokio/ByteString;->Companion:Lokio/ByteString$Companion; invoke-virtual {v0, p0}, Lokio/ByteString$Companion;->encodeUtf8(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;->(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;->(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;->(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;->(Ljava/lang/String;)V throw p0 .end method .method public static final of(Ljava/nio/ByteBuffer;)Lokio/ByteString; .locals 1 .annotation runtime Lkotlin/jvm/JvmStatic; .end annotation sget-object v0, Lokio/ByteString;->Companion:Lokio/ByteString$Companion; invoke-virtual {v0, p0}, Lokio/ByteString$Companion;->of(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 .annotation runtime Lkotlin/jvm/JvmStatic; .end annotation sget-object v0, Lokio/ByteString;->Companion:Lokio/ByteString$Companion; invoke-virtual {v0, p0}, Lokio/ByteString$Companion;->of([B)Lokio/ByteString; move-result-object p0 return-object p0 .end method .method public static final of([BII)Lokio/ByteString; .locals 1 .annotation runtime Lkotlin/jvm/JvmStatic; .end annotation sget-object v0, Lokio/ByteString;->Companion:Lokio/ByteString$Companion; invoke-virtual {v0, p0, p1, p2}, Lokio/ByteString$Companion;->of([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 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .annotation runtime Lkotlin/jvm/JvmStatic; .end annotation sget-object v0, Lokio/ByteString;->Companion:Lokio/ByteString$Companion; invoke-virtual {v0, p0, p1}, Lokio/ByteString$Companion;->read(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 188 invoke-virtual {p1}, Ljava/io/ObjectInputStream;->readInt()I move-result v0 sget-object v1, Lokio/ByteString;->Companion:Lokio/ByteString$Companion; .line 189 check-cast p1, Ljava/io/InputStream; invoke-virtual {v1, p1, v0}, Lokio/ByteString$Companion;->read(Ljava/io/InputStream;I)Lokio/ByteString; move-result-object p1 const-class v0, Lokio/ByteString; const-string v1, "data" .line 190 invoke-virtual {v0, v1}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field; move-result-object v0 const-string v1, "field" .line 191 invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V const/4 v1, 0x1 invoke-virtual {v0, v1}, Ljava/lang/reflect/Field;->setAccessible(Z)V .line 192 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;->(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 iget-object v0, p0, Lokio/ByteString;->data:[B .line 197 array-length v0, v0 invoke-virtual {p1, v0}, Ljava/io/ObjectOutputStream;->writeInt(I)V iget-object p0, p0, Lokio/ByteString;->data:[B .line 198 invoke-virtual {p1, p0}, 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 .line 206 invoke-virtual {p0, p1}, Lokio/ByteString;->getByte(I)B move-result p0 return p0 .end method .method public final -deprecated_size()I .locals 0 .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 .line 213 invoke-virtual {p0}, Lokio/ByteString;->size()I move-result p0 return p0 .end method .method public asByteBuffer()Ljava/nio/ByteBuffer; .locals 1 iget-object p0, p0, Lokio/ByteString;->data:[B .line 133 invoke-static {p0}, Ljava/nio/ByteBuffer;->wrap([B)Ljava/nio/ByteBuffer; move-result-object p0 invoke-virtual {p0}, Ljava/nio/ByteBuffer;->asReadOnlyBuffer()Ljava/nio/ByteBuffer; move-result-object p0 const-string v0, "ByteBuffer.wrap(data).asReadOnlyBuffer()" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V return-object p0 .end method .method public base64()Ljava/lang/String; .locals 2 .line 346 invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B move-result-object p0 const/4 v0, 0x0 const/4 v1, 0x1 invoke-static {p0, v0, v1, v0}, Lokio/-Base64;->encodeBase64$default([B[BILjava/lang/Object;)Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public base64Url()Ljava/lang/String; .locals 1 .line 347 invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B move-result-object p0 invoke-static {}, Lokio/-Base64;->getBASE64_URL_SAFE()[B move-result-object v0 invoke-static {p0, v0}, Lokio/-Base64;->encodeBase64([B[B)Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public bridge synthetic compareTo(Ljava/lang/Object;)I .locals 0 .line 58 check-cast p1, Lokio/ByteString; invoke-virtual {p0, p1}, Lokio/ByteString;->compareTo(Lokio/ByteString;)I move-result p0 return p0 .end method .method public compareTo(Lokio/ByteString;)I .locals 9 const-string v0, "other" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 449 invoke-virtual {p0}, Lokio/ByteString;->size()I move-result v0 .line 450 invoke-virtual {p1}, Lokio/ByteString;->size()I move-result v1 .line 452 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 454 invoke-virtual {p0, v4}, Lokio/ByteString;->getByte(I)B move-result v7 and-int/lit16 v7, v7, 0xff .line 456 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 1 const-string v0, "algorithm" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 85 new-instance v0, Lokio/ByteString; invoke-static {p1}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest; move-result-object p1 iget-object p0, p0, Lokio/ByteString;->data:[B invoke-virtual {p1, p0}, Ljava/security/MessageDigest;->digest([B)[B move-result-object p0 const-string p1, "MessageDigest.getInstance(algorithm).digest(data)" invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-direct {v0, p0}, Lokio/ByteString;->([B)V return-object v0 .end method .method public final endsWith(Lokio/ByteString;)Z .locals 3 const-string v0, "suffix" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 423 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 const/4 v1, 0x0 invoke-virtual {p1}, Lokio/ByteString;->size()I move-result v2 invoke-virtual {p0, v0, p1, v1, v2}, Lokio/ByteString;->rangeEquals(ILokio/ByteString;II)Z move-result p0 return p0 .end method .method public final endsWith([B)Z .locals 3 const-string v0, "suffix" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 424 invoke-virtual {p0}, Lokio/ByteString;->size()I move-result v0 array-length v1, p1 sub-int/2addr v0, v1 const/4 v1, 0x0 array-length v2, p1 invoke-virtual {p0, v0, p1, v1, v2}, Lokio/ByteString;->rangeEquals(I[BII)Z move-result p0 return p0 .end method .method public equals(Ljava/lang/Object;)Z .locals 4 const/4 v0, 0x1 if-ne p1, p0, :cond_0 goto :goto_0 .line 442 :cond_0 instance-of v1, p1, Lokio/ByteString; const/4 v2, 0x0 if-eqz v1, :cond_1 check-cast p1, Lokio/ByteString; invoke-virtual {p1}, Lokio/ByteString;->size()I move-result v1 invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B move-result-object v3 array-length v3, v3 if-ne v1, v3, :cond_1 invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B move-result-object v1 invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B move-result-object p0 array-length p0, p0 invoke-virtual {p1, v2, v1, v2, p0}, Lokio/ByteString;->rangeEquals(I[BII)Z move-result p0 if-eqz p0, :cond_1 goto :goto_0 :cond_1 move v0, v2 :goto_0 return v0 .end method .method public final getByte(I)B .locals 0 .line 121 invoke-virtual {p0, p1}, Lokio/ByteString;->internalGet$okio(I)B move-result p0 return p0 .end method .method public final getData$okio()[B .locals 0 iget-object p0, p0, Lokio/ByteString;->data:[B return-object p0 .end method .method public final getHashCode$okio()I .locals 0 iget p0, p0, Lokio/ByteString;->hashCode:I return p0 .end method .method public getSize$okio()I .locals 0 .line 414 invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B move-result-object p0 array-length p0, p0 return p0 .end method .method public final getUtf8$okio()Ljava/lang/String; .locals 0 iget-object p0, p0, Lokio/ByteString;->utf8:Ljava/lang/String; return-object p0 .end method .method public hashCode()I .locals 1 .line 444 invoke-virtual {p0}, Lokio/ByteString;->getHashCode$okio()I move-result v0 if-eqz v0, :cond_0 goto :goto_0 .line 446 :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 447 invoke-virtual {p0, v0}, Lokio/ByteString;->setHashCode$okio(I)V :goto_0 return v0 .end method .method public hex()Ljava/lang/String; .locals 8 .line 348 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 350 invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B move-result-object p0 array-length v1, p0 const/4 v2, 0x0 move v3, v2 :goto_0 if-ge v2, v1, :cond_0 aget-byte v4, p0, v2 add-int/lit8 v5, v3, 0x1 .line 351 invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C move-result-object v6 shr-int/lit8 v7, v4, 0x4 and-int/lit8 v7, v7, 0xf aget-char v6, v6, v7 aput-char v6, v0, v3 add-int/lit8 v3, v3, 0x2 .line 353 invoke-static {}, Lokio/internal/ByteStringKt;->getHEX_DIGIT_CHARS()[C move-result-object v6 and-int/lit8 v4, v4, 0xf .line 354 aget-char v4, v6, v4 aput-char v4, v0, v5 add-int/lit8 v2, v2, 0x1 goto :goto_0 .line 355 :cond_0 new-instance p0, Ljava/lang/String; invoke-direct {p0, v0}, Ljava/lang/String;->([C)V return-object p0 .end method .method public hmac$okio(Ljava/lang/String;Lokio/ByteString;)Lokio/ByteString; .locals 2 const-string v0, "algorithm" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "key" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 98 :try_start_0 invoke-static {p1}, Ljavax/crypto/Mac;->getInstance(Ljava/lang/String;)Ljavax/crypto/Mac; move-result-object v0 .line 99 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;->([BLjava/lang/String;)V check-cast v1, Ljava/security/Key; invoke-virtual {v0, v1}, Ljavax/crypto/Mac;->init(Ljava/security/Key;)V .line 100 new-instance p1, Lokio/ByteString; iget-object p0, p0, Lokio/ByteString;->data:[B invoke-virtual {v0, p0}, Ljavax/crypto/Mac;->doFinal([B)[B move-result-object p0 const-string p2, "mac.doFinal(data)" invoke-static {p0, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-direct {p1, p0}, Lokio/ByteString;->([B)V :try_end_0 .catch Ljava/security/InvalidKeyException; {:try_start_0 .. :try_end_0} :catch_0 return-object p1 :catch_0 move-exception p0 .line 102 new-instance p1, Ljava/lang/IllegalArgumentException; check-cast p0, Ljava/lang/Throwable; invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/Throwable;)V check-cast p1, Ljava/lang/Throwable; throw p1 .end method .method public hmacSha1(Lokio/ByteString;)Lokio/ByteString; .locals 1 const-string v0, "key" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "HmacSHA1" .line 88 invoke-virtual {p0, v0, p1}, Lokio/ByteString;->hmac$okio(Ljava/lang/String;Lokio/ByteString;)Lokio/ByteString; move-result-object p0 return-object p0 .end method .method public hmacSha256(Lokio/ByteString;)Lokio/ByteString; .locals 1 const-string v0, "key" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "HmacSHA256" .line 91 invoke-virtual {p0, v0, p1}, Lokio/ByteString;->hmac$okio(Ljava/lang/String;Lokio/ByteString;)Lokio/ByteString; move-result-object p0 return-object p0 .end method .method public hmacSha512(Lokio/ByteString;)Lokio/ByteString; .locals 1 const-string v0, "key" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "HmacSHA512" .line 94 invoke-virtual {p0, v0, p1}, Lokio/ByteString;->hmac$okio(Ljava/lang/String;Lokio/ByteString;)Lokio/ByteString; move-result-object p0 return-object p0 .end method .method public final indexOf(Lokio/ByteString;)I .locals 3 const/4 v0, 0x2 const/4 v1, 0x0 const/4 v2, 0x0 invoke-static {p0, p1, v2, v0, v1}, Lokio/ByteString;->indexOf$default(Lokio/ByteString;Lokio/ByteString;IILjava/lang/Object;)I move-result p0 return p0 .end method .method public final indexOf(Lokio/ByteString;I)I .locals 1 const-string v0, "other" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 167 invoke-virtual {p1}, Lokio/ByteString;->internalArray$okio()[B move-result-object p1 invoke-virtual {p0, p1, p2}, Lokio/ByteString;->indexOf([BI)I move-result p0 return p0 .end method .method public final indexOf([B)I .locals 3 const/4 v0, 0x2 const/4 v1, 0x0 const/4 v2, 0x0 invoke-static {p0, p1, v2, v0, v1}, Lokio/ByteString;->indexOf$default(Lokio/ByteString;[BIILjava/lang/Object;)I move-result p0 return p0 .end method .method public indexOf([BI)I .locals 4 const-string v0, "other" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 425 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 426 invoke-static {p2, v1}, Ljava/lang/Math;->max(II)I move-result p2 if-gt p2, v0, :cond_1 .line 427 :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}, Lokio/-Util;->arrayRangeEquals([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 0 .line 416 invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B move-result-object p0 return-object p0 .end method .method public internalGet$okio(I)B .locals 0 .line 413 invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B move-result-object p0 aget-byte p0, p0, p1 return p0 .end method .method public final lastIndexOf(Lokio/ByteString;)I .locals 3 const/4 v0, 0x2 const/4 v1, 0x0 const/4 v2, 0x0 invoke-static {p0, p1, v2, v0, v1}, Lokio/ByteString;->lastIndexOf$default(Lokio/ByteString;Lokio/ByteString;IILjava/lang/Object;)I move-result p0 return p0 .end method .method public final lastIndexOf(Lokio/ByteString;I)I .locals 1 const-string v0, "other" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 432 invoke-virtual {p1}, Lokio/ByteString;->internalArray$okio()[B move-result-object p1 invoke-virtual {p0, p1, p2}, Lokio/ByteString;->lastIndexOf([BI)I move-result p0 return p0 .end method .method public final lastIndexOf([B)I .locals 3 const/4 v0, 0x2 const/4 v1, 0x0 const/4 v2, 0x0 invoke-static {p0, p1, v2, v0, v1}, Lokio/ByteString;->lastIndexOf$default(Lokio/ByteString;[BIILjava/lang/Object;)I move-result p0 return p0 .end method .method public lastIndexOf([BI)I .locals 3 const-string v0, "other" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 433 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 434 invoke-static {p2, v0}, Ljava/lang/Math;->min(II)I move-result p2 :goto_0 if-ltz p2, :cond_1 .line 435 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}, Lokio/-Util;->arrayRangeEquals([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 const-string v0, "MD5" .line 73 invoke-virtual {p0, v0}, Lokio/ByteString;->digest$okio(Ljava/lang/String;)Lokio/ByteString; move-result-object p0 return-object p0 .end method .method public rangeEquals(ILokio/ByteString;II)Z .locals 1 const-string v0, "other" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 417 invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B move-result-object p0 invoke-virtual {p2, p3, p0, p1, p4}, Lokio/ByteString;->rangeEquals(I[BII)Z move-result p0 return p0 .end method .method public rangeEquals(I[BII)Z .locals 1 const-string v0, "other" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V if-ltz p1, :cond_0 .line 418 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 419 array-length v0, p2 sub-int/2addr v0, p4 if-gt p3, v0, :cond_0 .line 420 invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B move-result-object p0 invoke-static {p0, p1, p2, p3, p4}, Lokio/-Util;->arrayRangeEquals([BI[BII)Z move-result p0 if-eqz p0, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 return p0 .end method .method public final setHashCode$okio(I)V .locals 0 iput p1, p0, Lokio/ByteString;->hashCode:I return-void .end method .method public final setUtf8$okio(Ljava/lang/String;)V .locals 0 iput-object p1, p0, Lokio/ByteString;->utf8:Ljava/lang/String; return-void .end method .method public sha1()Lokio/ByteString; .locals 1 const-string v0, "SHA-1" .line 76 invoke-virtual {p0, v0}, Lokio/ByteString;->digest$okio(Ljava/lang/String;)Lokio/ByteString; move-result-object p0 return-object p0 .end method .method public sha256()Lokio/ByteString; .locals 1 const-string v0, "SHA-256" .line 79 invoke-virtual {p0, v0}, Lokio/ByteString;->digest$okio(Ljava/lang/String;)Lokio/ByteString; move-result-object p0 return-object p0 .end method .method public sha512()Lokio/ByteString; .locals 1 const-string v0, "SHA-512" .line 82 invoke-virtual {p0, v0}, Lokio/ByteString;->digest$okio(Ljava/lang/String;)Lokio/ByteString; move-result-object p0 return-object p0 .end method .method public final size()I .locals 0 .line 124 invoke-virtual {p0}, Lokio/ByteString;->getSize$okio()I move-result p0 return p0 .end method .method public final startsWith(Lokio/ByteString;)Z .locals 2 const-string v0, "prefix" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x0 .line 421 invoke-virtual {p1}, Lokio/ByteString;->size()I move-result v1 invoke-virtual {p0, v0, p1, v0, v1}, Lokio/ByteString;->rangeEquals(ILokio/ByteString;II)Z move-result p0 return p0 .end method .method public final startsWith([B)Z .locals 2 const-string v0, "prefix" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V const/4 v0, 0x0 .line 422 array-length v1, p1 invoke-virtual {p0, v0, p1, v0, v1}, Lokio/ByteString;->rangeEquals(I[BII)Z move-result p0 return p0 .end method .method public string(Ljava/nio/charset/Charset;)Ljava/lang/String; .locals 1 const-string v0, "charset" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object p0, p0, Lokio/ByteString;->data:[B .line 68 new-instance v0, Ljava/lang/String; invoke-direct {v0, p0, p1}, Ljava/lang/String;->([BLjava/nio/charset/Charset;)V return-object v0 .end method .method public final substring()Lokio/ByteString; .locals 3 const/4 v0, 0x3 const/4 v1, 0x0 const/4 v2, 0x0 invoke-static {p0, v2, v2, v0, v1}, Lokio/ByteString;->substring$default(Lokio/ByteString;IIILjava/lang/Object;)Lokio/ByteString; move-result-object p0 return-object p0 .end method .method public final substring(I)Lokio/ByteString; .locals 3 const/4 v0, 0x2 const/4 v1, 0x0 const/4 v2, 0x0 invoke-static {p0, p1, v2, v0, v1}, Lokio/ByteString;->substring$default(Lokio/ByteString;IIILjava/lang/Object;)Lokio/ByteString; move-result-object p0 return-object p0 .end method .method public substring(II)Lokio/ByteString; .locals 3 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 404 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 409 invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B move-result-object v0 array-length v0, v0 if-ne p2, v0, :cond_3 goto :goto_3 .line 412 :cond_3 new-instance v0, Lokio/ByteString; invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B move-result-object p0 invoke-static {p0, p1, p2}, Lkotlin/collections/ArraysKt;->copyOfRange([BII)[B move-result-object p0 invoke-direct {v0, p0}, Lokio/ByteString;->([B)V move-object p0, v0 :goto_3 return-object p0 .line 407 :cond_4 new-instance p0, Ljava/lang/IllegalArgumentException; const-string p1, "endIndex < beginIndex" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .line 404 :cond_5 new-instance p1, Ljava/lang/StringBuilder; const-string p2, "endIndex > length(" invoke-direct {p1, p2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B move-result-object p0 array-length p0, p0 invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p0 const/16 p1, 0x29 invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 new-instance p1, Ljava/lang/IllegalArgumentException; invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p0 invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p1, Ljava/lang/Throwable; throw p1 .line 402 :cond_6 new-instance p0, Ljava/lang/IllegalArgumentException; const-string p1, "beginIndex < 0" invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V check-cast p0, Ljava/lang/Throwable; throw p0 .end method .method public toAsciiLowercase()Lokio/ByteString; .locals 5 const/4 v0, 0x0 .line 357 :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 358 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 365 :cond_0 invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B move-result-object p0 array-length v4, p0 invoke-static {p0, v4}, Ljava/util/Arrays;->copyOf([BI)[B move-result-object p0 const-string v4, "java.util.Arrays.copyOf(this, size)" invoke-static {p0, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V add-int/lit8 v4, v0, 0x1 add-int/lit8 v1, v1, 0x20 int-to-byte v1, v1 .line 366 aput-byte v1, p0, v0 .line 367 :goto_1 array-length v0, p0 if-ge v4, v0, :cond_3 .line 368 aget-byte v0, p0, v4 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 373 aput-byte v0, p0, v4 :cond_2 :goto_2 add-int/lit8 v4, v4, 0x1 goto :goto_1 .line 376 :cond_3 new-instance v0, Lokio/ByteString; invoke-direct {v0, p0}, Lokio/ByteString;->([B)V move-object p0, v0 goto :goto_4 :cond_4 :goto_3 add-int/lit8 v0, v0, 0x1 goto :goto_0 :cond_5 :goto_4 return-object p0 .end method .method public toAsciiUppercase()Lokio/ByteString; .locals 5 const/4 v0, 0x0 .line 380 :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 381 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 388 :cond_0 invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B move-result-object p0 array-length v4, p0 invoke-static {p0, v4}, Ljava/util/Arrays;->copyOf([BI)[B move-result-object p0 const-string v4, "java.util.Arrays.copyOf(this, size)" invoke-static {p0, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V add-int/lit8 v4, v0, 0x1 add-int/lit8 v1, v1, -0x20 int-to-byte v1, v1 .line 389 aput-byte v1, p0, v0 .line 390 :goto_1 array-length v0, p0 if-ge v4, v0, :cond_3 .line 391 aget-byte v0, p0, v4 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 396 aput-byte v0, p0, v4 :cond_2 :goto_2 add-int/lit8 v4, v4, 0x1 goto :goto_1 .line 399 :cond_3 new-instance v0, Lokio/ByteString; invoke-direct {v0, p0}, Lokio/ByteString;->([B)V move-object p0, v0 goto :goto_4 :cond_4 :goto_3 add-int/lit8 v0, v0, 0x1 goto :goto_0 :cond_5 :goto_4 return-object p0 .end method .method public toByteArray()[B .locals 1 .line 415 invoke-virtual {p0}, Lokio/ByteString;->getData$okio()[B move-result-object p0 array-length v0, p0 invoke-static {p0, v0}, Ljava/util/Arrays;->copyOf([BI)[B move-result-object p0 const-string v0, "java.util.Arrays.copyOf(this, size)" invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V return-object p0 .end method .method public toString()Ljava/lang/String; .locals 19 .line 465 invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B move-result-object v0 array-length v0, v0 if-nez v0, :cond_0 const-string v0, "[size=0]" goto/16 :goto_2 .line 467 :cond_0 invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B move-result-object v0 const/16 v1, 0x40 invoke-static {v0, v1}, Lokio/internal/ByteStringKt;->access$codePointIndexToCharIndex([BI)I move-result v0 const/4 v2, -0x1 const-string v3, "\u2026]" const/16 v4, 0x5d const-string v5, "[size=" const/4 v6, 0x0 if-ne v0, v2, :cond_5 .line 469 invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B move-result-object v0 array-length v0, v0 if-gt v0, v1, :cond_1 .line 470 new-instance v0, Ljava/lang/StringBuilder; const-string v1, "[hex=" invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V 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; move-result-object v0 invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 goto/16 :goto_2 .line 472 :cond_1 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0, v5}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B move-result-object v2 array-length v2, v2 invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v0 const-string v2, " hex=" invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 .line 475 invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B move-result-object v2 array-length v2, v2 if-gt v1, v2, :cond_2 const/4 v2, 0x1 goto :goto_0 :cond_2 move v2, v6 :goto_0 if-eqz v2, :cond_4 .line 480 invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B move-result-object v2 array-length v2, v2 if-ne v1, v2, :cond_3 move-object/from16 v2, p0 goto :goto_1 .line 483 :cond_3 new-instance v2, Lokio/ByteString; invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->getData$okio()[B move-result-object v4 invoke-static {v4, v6, v1}, Lkotlin/collections/ArraysKt;->copyOfRange([BII)[B move-result-object v1 invoke-direct {v2, v1}, Lokio/ByteString;->([B)V .line 472 :goto_1 invoke-virtual {v2}, Lokio/ByteString;->hex()Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 goto/16 :goto_2 .line 475 :cond_4 new-instance v0, Ljava/lang/StringBuilder; const-string v1, "endIndex > length(" invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V 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; move-result-object v0 const/16 v1, 0x29 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()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;->(Ljava/lang/String;)V check-cast v1, Ljava/lang/Throwable; throw v1 .line 484 :cond_5 invoke-virtual/range {p0 .. p0}, Lokio/ByteString;->utf8()Ljava/lang/String; move-result-object v1 if-eqz v1, :cond_7 .line 485 invoke-virtual {v1, v6, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String; move-result-object v7 const-string v2, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)" invoke-static {v7, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V const-string v8, "\\" const-string v9, "\\\\" const/4 v10, 0x0 const/4 v11, 0x4 const/4 v12, 0x0 .line 486 invoke-static/range {v7 .. v12}, Lkotlin/text/StringsKt;->replace$default(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Ljava/lang/String; move-result-object v13 const-string v14, "\n" const-string v15, "\\n" const/16 v16, 0x0 const/16 v17, 0x4 const/16 v18, 0x0 .line 487 invoke-static/range {v13 .. v18}, Lkotlin/text/StringsKt;->replace$default(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Ljava/lang/String; move-result-object v6 const-string v7, "\r" const-string v8, "\\r" const/4 v9, 0x0 const/4 v10, 0x4 const/4 v11, 0x0 .line 488 invoke-static/range {v6 .. v11}, Lkotlin/text/StringsKt;->replace$default(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Ljava/lang/String; move-result-object v2 .line 489 invoke-virtual {v1}, Ljava/lang/String;->length()I move-result v1 if-ge v0, v1, :cond_6 .line 490 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0, v5}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V 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; move-result-object v0 const-string v1, " text=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 goto :goto_2 .line 492 :cond_6 new-instance v0, Ljava/lang/StringBuilder; const-string v1, "[text=" invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 :goto_2 return-object v0 .line 485 :cond_7 new-instance v0, Ljava/lang/NullPointerException; const-string v1, "null cannot be cast to non-null type java.lang.String" invoke-direct {v0, v1}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V throw v0 .end method .method public utf8()Ljava/lang/String; .locals 1 .line 339 invoke-virtual {p0}, Lokio/ByteString;->getUtf8$okio()Ljava/lang/String; move-result-object v0 if-nez v0, :cond_0 .line 342 invoke-virtual {p0}, Lokio/ByteString;->internalArray$okio()[B move-result-object v0 invoke-static {v0}, Lokio/-Platform;->toUtf8String([B)Ljava/lang/String; move-result-object v0 .line 343 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 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation const-string v0, "out" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object p0, p0, Lokio/ByteString;->data:[B .line 138 invoke-virtual {p1, p0}, Ljava/io/OutputStream;->write([B)V return-void .end method .method public write$okio(Lokio/Buffer;II)V .locals 1 const-string v0, "buffer" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 142 invoke-static {p0, p1, p2, p3}, Lokio/internal/ByteStringKt;->commonWrite(Lokio/ByteString;Lokio/Buffer;II)V return-void .end method