tmap/smali_classes3/com/google/api/client/util/ByteCountingOutputStream.smali
2022-06-10 21:38:30 +09:00

61 lines
1.2 KiB
Smali

.class final Lcom/google/api/client/util/ByteCountingOutputStream;
.super Ljava/io/OutputStream;
.source "ByteCountingOutputStream.java"
# instance fields
.field public count:J
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/io/OutputStream;-><init>()V
return-void
.end method
# virtual methods
.method public write(I)V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 2
iget-wide v0, p0, Lcom/google/api/client/util/ByteCountingOutputStream;->count:J
const-wide/16 v2, 0x1
add-long/2addr v0, v2
iput-wide v0, p0, Lcom/google/api/client/util/ByteCountingOutputStream;->count:J
return-void
.end method
.method public write([BII)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget-wide p1, p0, Lcom/google/api/client/util/ByteCountingOutputStream;->count:J
int-to-long v0, p3
add-long/2addr p1, v0
iput-wide p1, p0, Lcom/google/api/client/util/ByteCountingOutputStream;->count:J
return-void
.end method