apkfuckery/com.discord/smali_classes2/okio/c$2.smali

120 lines
2.2 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class final Lokio/c$2;
.super Ljava/io/InputStream;
.source "Buffer.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
2019-11-15 02:21:15 +00:00
value = Lokio/c;->Hm()Ljava/io/InputStream;
2019-07-24 11:27:29 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
2019-11-15 02:21:15 +00:00
.field final synthetic byQ:Lokio/c;
2019-07-24 11:27:29 +00:00
# direct methods
.method constructor <init>(Lokio/c;)V
.locals 0
2019-11-15 02:21:15 +00:00
iput-object p1, p0, Lokio/c$2;->byQ:Lokio/c;
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Ljava/io/InputStream;-><init>()V
return-void
.end method
# virtual methods
.method public final available()I
.locals 4
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Lokio/c$2;->byQ:Lokio/c;
2019-07-24 11:27:29 +00:00
iget-wide v0, v0, Lokio/c;->size:J
const-wide/32 v2, 0x7fffffff
invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->min(JJ)J
move-result-wide v0
long-to-int v1, v0
return v1
.end method
.method public final close()V
.locals 0
return-void
.end method
.method public final read()I
.locals 5
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Lokio/c$2;->byQ:Lokio/c;
2019-07-24 11:27:29 +00:00
iget-wide v0, v0, Lokio/c;->size:J
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-lez v4, :cond_0
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Lokio/c$2;->byQ:Lokio/c;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Lokio/c;->readByte()B
move-result v0
and-int/lit16 v0, v0, 0xff
return v0
:cond_0
const/4 v0, -0x1
return v0
.end method
.method public final read([BII)I
.locals 1
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Lokio/c$2;->byQ:Lokio/c;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0, p1, p2, p3}, Lokio/c;->read([BII)I
move-result p1
return p1
.end method
.method public final toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
2019-11-15 02:21:15 +00:00
iget-object v1, p0, Lokio/c$2;->byQ:Lokio/c;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ".inputStream()"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method