mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
182 lines
4.3 KiB
Smali
182 lines
4.3 KiB
Smali
.class public final Lokhttp3/internal/cache2/FileOperator;
|
|
.super Ljava/lang/Object;
|
|
.source "FileOperator.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {
|
|
0x1,
|
|
0x0,
|
|
0x3
|
|
}
|
|
d1 = {
|
|
"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0004\u0008\u0000\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0002\u0010\u0004J\u001e\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u00082\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\u0008J\u001e\u0010\u000c\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u00082\u0006\u0010\r\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\u0008R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u000e"
|
|
}
|
|
d2 = {
|
|
"Lokhttp3/internal/cache2/FileOperator;",
|
|
"",
|
|
"fileChannel",
|
|
"Ljava/nio/channels/FileChannel;",
|
|
"(Ljava/nio/channels/FileChannel;)V",
|
|
"read",
|
|
"",
|
|
"pos",
|
|
"",
|
|
"sink",
|
|
"Lokio/Buffer;",
|
|
"byteCount",
|
|
"write",
|
|
"source",
|
|
"okhttp"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final fileChannel:Ljava/nio/channels/FileChannel;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/nio/channels/FileChannel;)V
|
|
.locals 1
|
|
|
|
const-string v0, "fileChannel"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 32
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/cache2/FileOperator;->fileChannel:Ljava/nio/channels/FileChannel;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final read(JLokio/Buffer;J)V
|
|
.locals 9
|
|
|
|
const-string v0, "sink"
|
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v2, p4, v0
|
|
|
|
if-ltz v2, :cond_1
|
|
|
|
:goto_0
|
|
cmp-long v2, p4, v0
|
|
|
|
if-lez v2, :cond_0
|
|
|
|
iget-object v3, p0, Lokhttp3/internal/cache2/FileOperator;->fileChannel:Ljava/nio/channels/FileChannel;
|
|
|
|
.line 65
|
|
move-object v8, p3
|
|
|
|
check-cast v8, Ljava/nio/channels/WritableByteChannel;
|
|
|
|
move-wide v4, p1
|
|
|
|
move-wide v6, p4
|
|
|
|
invoke-virtual/range {v3 .. v8}, Ljava/nio/channels/FileChannel;->transferTo(JJLjava/nio/channels/WritableByteChannel;)J
|
|
|
|
move-result-wide v2
|
|
|
|
add-long/2addr p1, v2
|
|
|
|
sub-long/2addr p4, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
.line 59
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/IndexOutOfBoundsException;
|
|
|
|
invoke-direct {p0}, Ljava/lang/IndexOutOfBoundsException;-><init>()V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public final write(JLokio/Buffer;J)V
|
|
.locals 9
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "source"
|
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v2, p4, v0
|
|
|
|
if-ltz v2, :cond_1
|
|
|
|
.line 39
|
|
invoke-virtual {p3}, Lokio/Buffer;->size()J
|
|
|
|
move-result-wide v2
|
|
|
|
cmp-long v2, p4, v2
|
|
|
|
if-gtz v2, :cond_1
|
|
|
|
:goto_0
|
|
cmp-long v2, p4, v0
|
|
|
|
if-lez v2, :cond_0
|
|
|
|
iget-object v3, p0, Lokhttp3/internal/cache2/FileOperator;->fileChannel:Ljava/nio/channels/FileChannel;
|
|
|
|
.line 46
|
|
move-object v4, p3
|
|
|
|
check-cast v4, Ljava/nio/channels/ReadableByteChannel;
|
|
|
|
move-wide v5, p1
|
|
|
|
move-wide v7, p4
|
|
|
|
invoke-virtual/range {v3 .. v8}, Ljava/nio/channels/FileChannel;->transferFrom(Ljava/nio/channels/ReadableByteChannel;JJ)J
|
|
|
|
move-result-wide v2
|
|
|
|
add-long/2addr p1, v2
|
|
|
|
sub-long/2addr p4, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
.line 40
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/IndexOutOfBoundsException;
|
|
|
|
invoke-direct {p0}, Ljava/lang/IndexOutOfBoundsException;-><init>()V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|