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