Rabbit-R1/original r1/smali/smali_classes3/okio/-Platform.smali
2024-05-21 17:08:36 -04:00

135 lines
4.1 KiB
Smali

.class public final Lokio/-Platform;
.super Ljava/lang/Object;
.source "-Platform.kt"
# annotations
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u00000\n\u0002\u0008\u0003\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u0012\n\u0002\u0010\u000e\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a-\u0010\u0000\u001a\u0002H\u0001\"\u0004\u0008\u0000\u0010\u00012\u0006\u0010\u0002\u001a\u00020\u00032\u000c\u0010\u0004\u001a\u0008\u0012\u0004\u0012\u0002H\u00010\u0005H\u0080\u0008\u00f8\u0001\u0000\u00a2\u0006\u0002\u0010\u0006\u001a\u000c\u0010\u0007\u001a\u00020\u0008*\u00020\tH\u0000\u001a\u000c\u0010\n\u001a\u00020\t*\u00020\u0008H\u0000*\n\u0010\u000b\"\u00020\u000c2\u00020\u000c*\n\u0010\r\"\u00020\u000e2\u00020\u000e*\n\u0010\u000f\"\u00020\u00102\u00020\u0010\u0082\u0002\u0007\n\u0005\u0008\u009920\u0001\u00a8\u0006\u0011"
}
d2 = {
"synchronized",
"R",
"lock",
"",
"block",
"Lkotlin/Function0;",
"(Ljava/lang/Object;Lkotlin/jvm/functions/Function0;)Ljava/lang/Object;",
"asUtf8ToByteArray",
"",
"",
"toUtf8String",
"ArrayIndexOutOfBoundsException",
"Ljava/lang/ArrayIndexOutOfBoundsException;",
"EOFException",
"Ljava/io/EOFException;",
"IOException",
"Ljava/io/IOException;",
"okio"
}
k = 0x2
mv = {
0x1,
0x4,
0x0
}
.end annotation
# direct methods
.method public static final asUtf8ToByteArray(Ljava/lang/String;)[B
.locals 1
const-string v0, "$this$asUtf8ToByteArray"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 22
sget-object v0, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset;
invoke-virtual {p0, v0}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
move-result-object p0
const-string v0, "(this as java.lang.String).getBytes(charset)"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public static final synchronized(Ljava/lang/Object;Lkotlin/jvm/functions/Function0;)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<R:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Object;",
"Lkotlin/jvm/functions/Function0<",
"+TR;>;)TR;"
}
.end annotation
const-string v0, "lock"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "block"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 28
monitor-enter p0
const/4 v0, 0x1
:try_start_0
invoke-interface {p1}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
move-result-object p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-static {v0}, Lkotlin/jvm/internal/InlineMarker;->finallyStart(I)V
monitor-exit p0
invoke-static {v0}, Lkotlin/jvm/internal/InlineMarker;->finallyEnd(I)V
return-object p1
:catchall_0
move-exception p1
invoke-static {v0}, Lkotlin/jvm/internal/InlineMarker;->finallyStart(I)V
monitor-exit p0
invoke-static {v0}, Lkotlin/jvm/internal/InlineMarker;->finallyEnd(I)V
throw p1
.end method
.method public static final toUtf8String([B)Ljava/lang/String;
.locals 2
const-string v0, "$this$toUtf8String"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 20
sget-object v0, Lkotlin/text/Charsets;->UTF_8:Ljava/nio/charset/Charset;
new-instance v1, Ljava/lang/String;
invoke-direct {v1, p0, v0}, Ljava/lang/String;-><init>([BLjava/nio/charset/Charset;)V
return-object v1
.end method