Rabbit-R1/switch port/smali/smali_classes3/kotlin/io/ByteStreamsKt$iterator$1.smali
2024-05-21 17:08:36 -04:00

212 lines
5.1 KiB
Smali

.class public final Lkotlin/io/ByteStreamsKt$iterator$1;
.super Lkotlin/collections/ByteIterator;
.source "IOStreams.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lkotlin/io/ByteStreamsKt;->iterator(Ljava/io/BufferedInputStream;)Lkotlin/collections/ByteIterator;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000\'\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\u0008\u0005\n\u0002\u0010\u0008\n\u0002\u0008\u0008\n\u0002\u0010\u0005\n\u0000\n\u0002\u0010\u0002\n\u0000*\u0001\u0000\u0008\n\u0018\u00002\u00020\u0001J\t\u0010\u0011\u001a\u00020\u0003H\u0096\u0002J\u0008\u0010\u0008\u001a\u00020\u0012H\u0016J\u0008\u0010\u0013\u001a\u00020\u0014H\u0002R\u001a\u0010\u0002\u001a\u00020\u0003X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0004\u0010\u0005\"\u0004\u0008\u0006\u0010\u0007R\u001a\u0010\u0008\u001a\u00020\tX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\n\u0010\u000b\"\u0004\u0008\u000c\u0010\rR\u001a\u0010\u000e\u001a\u00020\u0003X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u000f\u0010\u0005\"\u0004\u0008\u0010\u0010\u0007\u00a8\u0006\u0015"
}
d2 = {
"kotlin/io/ByteStreamsKt$iterator$1",
"Lkotlin/collections/ByteIterator;",
"finished",
"",
"getFinished",
"()Z",
"setFinished",
"(Z)V",
"nextByte",
"",
"getNextByte",
"()I",
"setNextByte",
"(I)V",
"nextPrepared",
"getNextPrepared",
"setNextPrepared",
"hasNext",
"",
"prepareNext",
"",
"kotlin-stdlib"
}
k = 0x1
mv = {
0x1,
0x9,
0x0
}
xi = 0x30
.end annotation
# instance fields
.field final synthetic $this_iterator:Ljava/io/BufferedInputStream;
.field private finished:Z
.field private nextByte:I
.field private nextPrepared:Z
# direct methods
.method constructor <init>(Ljava/io/BufferedInputStream;)V
.locals 0
iput-object p1, p0, Lkotlin/io/ByteStreamsKt$iterator$1;->$this_iterator:Ljava/io/BufferedInputStream;
.line 16
invoke-direct {p0}, Lkotlin/collections/ByteIterator;-><init>()V
const/4 p1, -0x1
iput p1, p0, Lkotlin/io/ByteStreamsKt$iterator$1;->nextByte:I
return-void
.end method
.method private final prepareNext()V
.locals 3
iget-boolean v0, p0, Lkotlin/io/ByteStreamsKt$iterator$1;->nextPrepared:Z
if-nez v0, :cond_1
iget-boolean v0, p0, Lkotlin/io/ByteStreamsKt$iterator$1;->finished:Z
if-nez v0, :cond_1
iget-object v0, p0, Lkotlin/io/ByteStreamsKt$iterator$1;->$this_iterator:Ljava/io/BufferedInputStream;
.line 26
invoke-virtual {v0}, Ljava/io/BufferedInputStream;->read()I
move-result v0
iput v0, p0, Lkotlin/io/ByteStreamsKt$iterator$1;->nextByte:I
const/4 v1, 0x1
iput-boolean v1, p0, Lkotlin/io/ByteStreamsKt$iterator$1;->nextPrepared:Z
const/4 v2, -0x1
if-ne v0, v2, :cond_0
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
iput-boolean v1, p0, Lkotlin/io/ByteStreamsKt$iterator$1;->finished:Z
:cond_1
return-void
.end method
# virtual methods
.method public final getFinished()Z
.locals 0
iget-boolean p0, p0, Lkotlin/io/ByteStreamsKt$iterator$1;->finished:Z
return p0
.end method
.method public final getNextByte()I
.locals 0
iget p0, p0, Lkotlin/io/ByteStreamsKt$iterator$1;->nextByte:I
return p0
.end method
.method public final getNextPrepared()Z
.locals 0
iget-boolean p0, p0, Lkotlin/io/ByteStreamsKt$iterator$1;->nextPrepared:Z
return p0
.end method
.method public hasNext()Z
.locals 0
.line 33
invoke-direct {p0}, Lkotlin/io/ByteStreamsKt$iterator$1;->prepareNext()V
iget-boolean p0, p0, Lkotlin/io/ByteStreamsKt$iterator$1;->finished:Z
xor-int/lit8 p0, p0, 0x1
return p0
.end method
.method public nextByte()B
.locals 2
.line 38
invoke-direct {p0}, Lkotlin/io/ByteStreamsKt$iterator$1;->prepareNext()V
iget-boolean v0, p0, Lkotlin/io/ByteStreamsKt$iterator$1;->finished:Z
if-nez v0, :cond_0
iget v0, p0, Lkotlin/io/ByteStreamsKt$iterator$1;->nextByte:I
int-to-byte v0, v0
const/4 v1, 0x0
iput-boolean v1, p0, Lkotlin/io/ByteStreamsKt$iterator$1;->nextPrepared:Z
return v0
.line 40
:cond_0
new-instance p0, Ljava/util/NoSuchElementException;
const-string v0, "Input stream is over."
invoke-direct {p0, v0}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public final setFinished(Z)V
.locals 0
iput-boolean p1, p0, Lkotlin/io/ByteStreamsKt$iterator$1;->finished:Z
return-void
.end method
.method public final setNextByte(I)V
.locals 0
iput p1, p0, Lkotlin/io/ByteStreamsKt$iterator$1;->nextByte:I
return-void
.end method
.method public final setNextPrepared(Z)V
.locals 0
iput-boolean p1, p0, Lkotlin/io/ByteStreamsKt$iterator$1;->nextPrepared:Z
return-void
.end method