2019-11-28 00:30:53 +00:00
|
|
|
.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
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
2019-11-28 00:30:53 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public static bridge synthetic a(Lokio/ByteString$a;[BIII)Lokio/ByteString;
|
|
|
|
.locals 1
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
and-int/lit8 v0, p4, 0x1
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v0, :cond_0
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 p2, 0x0
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_0
|
|
|
|
and-int/lit8 p4, p4, 0x2
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p4, :cond_1
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
array-length p3, p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {p0, p1, p2, p3}, Lokio/ByteString$a;->a([BII)Lokio/ByteString;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
# virtual methods
|
|
|
|
.method public final a(Ljava/io/InputStream;I)Lokio/ByteString;
|
|
|
|
.locals 4
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/io/IOException;
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p1, :cond_4
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v0, 0x0
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ltz p2, :cond_0
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
|
|
|
|
new-array v1, p2, [B
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-ge v0, p2, :cond_2
|
|
|
|
|
|
|
|
sub-int v2, p2, v0
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance p1, Ljava/io/EOFException;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
: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: "
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-static {p1, p2}, Lf/e/b/a/a;->a(Ljava/lang/String;I)Ljava/lang/String;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const-string p1, "$receiver"
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
2019-11-28 00:30:53 +00:00
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public final a(Ljava/lang/String;)Lokio/ByteString;
|
|
|
|
.locals 0
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p1, :cond_0
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-static {p1}, Ld0/y/a;->a(Ljava/lang/String;)Lokio/ByteString;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object p1
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
return-object p1
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_0
|
|
|
|
const-string p1, "$receiver"
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
2019-11-28 00:30:53 +00:00
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public final varargs a([B)Lokio/ByteString;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-static {p1}, Ld0/y/a;->a([B)Lokio/ByteString;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "data"
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public final a([BII)Lokio/ByteString;
|
|
|
|
.locals 7
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
array-length v0, p1
|
|
|
|
|
|
|
|
int-to-long v1, v0
|
|
|
|
|
|
|
|
int-to-long v3, p2
|
|
|
|
|
|
|
|
int-to-long v5, p3
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-static/range {v1 .. v6}, Lf/o/a/j/a;->a(JJJ)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
new-array v0, p3, [B
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-static {p1, p2, v0, v1, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
|
|
|
|
new-instance p1, Lokio/ByteString;
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Lokio/ByteString;-><init>([B)V
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
2019-11-28 00:30:53 +00:00
|
|
|
const-string p1, "$receiver"
|
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 p1, 0x0
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
throw p1
|
|
|
|
.end method
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public final b(Ljava/lang/String;)Lokio/ByteString;
|
|
|
|
.locals 0
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p1, :cond_0
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-static {p1}, Ld0/y/a;->b(Ljava/lang/String;)Lokio/ByteString;
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object p1
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
return-object p1
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_0
|
|
|
|
const-string p1, "$receiver"
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2020-05-11 19:22:21 +00:00
|
|
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 p1, 0x0
|
2019-11-28 00:30:53 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
throw p1
|
2019-11-28 00:30:53 +00:00
|
|
|
.end method
|