Rabbit-R1/original r1/smali/smali_classes2/androidx/room/util/FileUtil.smali
2024-05-21 17:08:36 -04:00

88 lines
2.4 KiB
Smali

.class public final Landroidx/room/util/FileUtil;
.super Ljava/lang/Object;
.source "FileUtil.kt"
# annotations
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nFileUtil.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FileUtil.kt\nandroidx/room/util/FileUtil\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,58:1\n1#2:59\n*E\n"
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\u0014\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a\u0018\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0005H\u0007\u00a8\u0006\u0006"
}
d2 = {
"copy",
"",
"input",
"Ljava/nio/channels/ReadableByteChannel;",
"output",
"Ljava/nio/channels/FileChannel;",
"room-runtime_release"
}
k = 0x2
mv = {
0x1,
0x7,
0x1
}
xi = 0x30
.end annotation
# direct methods
.method public static final copy(Ljava/nio/channels/ReadableByteChannel;Ljava/nio/channels/FileChannel;)V
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "input"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "output"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-wide/16 v3, 0x0
const-wide v5, 0x7fffffffffffffffL
move-object v1, p1
move-object v2, p0
.line 41
:try_start_0
invoke-virtual/range {v1 .. v6}, Ljava/nio/channels/FileChannel;->transferFrom(Ljava/nio/channels/ReadableByteChannel;JJ)J
const/4 v0, 0x0
.line 53
invoke-virtual {p1, v0}, Ljava/nio/channels/FileChannel;->force(Z)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 55
invoke-interface {p0}, Ljava/nio/channels/ReadableByteChannel;->close()V
.line 56
invoke-virtual {p1}, Ljava/nio/channels/FileChannel;->close()V
return-void
:catchall_0
move-exception v0
.line 55
invoke-interface {p0}, Ljava/nio/channels/ReadableByteChannel;->close()V
.line 56
invoke-virtual {p1}, Ljava/nio/channels/FileChannel;->close()V
throw v0
.end method