You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
137 lines
2.5 KiB
137 lines
2.5 KiB
.class Lokio/Buffer$2; |
|
.super Ljava/io/InputStream; |
|
.source "Buffer.java" |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingMethod; |
|
value = Lokio/Buffer;->inputStream()Ljava/io/InputStream; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x0 |
|
name = null |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field final synthetic this$0:Lokio/Buffer; |
|
|
|
|
|
# direct methods |
|
.method constructor <init>(Lokio/Buffer;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 110 |
|
iput-object p1, p0, Lokio/Buffer$2;->this$0:Lokio/Buffer; |
|
|
|
invoke-direct {p0}, Ljava/io/InputStream;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public available()I |
|
.locals 4 |
|
|
|
.prologue |
|
.line 121 |
|
iget-object v0, p0, Lokio/Buffer$2;->this$0:Lokio/Buffer; |
|
|
|
iget-wide v0, v0, Lokio/Buffer;->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 v0, v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method public close()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 125 |
|
return-void |
|
.end method |
|
|
|
.method public read()I |
|
.locals 4 |
|
|
|
.prologue |
|
.line 112 |
|
iget-object v0, p0, Lokio/Buffer$2;->this$0:Lokio/Buffer; |
|
|
|
iget-wide v0, v0, Lokio/Buffer;->size:J |
|
|
|
const-wide/16 v2, 0x0 |
|
|
|
cmp-long v0, v0, v2 |
|
|
|
if-lez v0, :cond_0 |
|
|
|
iget-object v0, p0, Lokio/Buffer$2;->this$0:Lokio/Buffer; |
|
|
|
invoke-virtual {v0}, Lokio/Buffer;->readByte()B |
|
|
|
move-result v0 |
|
|
|
and-int/lit16 v0, v0, 0xff |
|
|
|
.line 113 |
|
:goto_0 |
|
return v0 |
|
|
|
:cond_0 |
|
const/4 v0, -0x1 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public read([BII)I |
|
.locals 1 |
|
|
|
.prologue |
|
.line 117 |
|
iget-object v0, p0, Lokio/Buffer$2;->this$0:Lokio/Buffer; |
|
|
|
invoke-virtual {v0, p1, p2, p3}, Lokio/Buffer;->read([BII)I |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method public toString()Ljava/lang/String; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 128 |
|
new-instance v0, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
iget-object v1, p0, Lokio/Buffer$2;->this$0:Lokio/Buffer; |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
const-string v1, ".inputStream()" |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method
|
|
|