CallServerInterceptor$CountingSink.smali

.class final Lokhttp3/internal/http/CallServerInterceptor$CountingSink;
.super Lokio/f;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lokhttp3/internal/http/CallServerInterceptor;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = "CountingSink"
.end annotation


# instance fields
.field public successfulCount:J


# direct methods
.method public constructor <init>(Lokio/v;)V
    .registers 2

    invoke-direct {p0, p1}, Lokio/f;-><init>(Lokio/v;)V

    return-void
.end method


# virtual methods
.method public write(Lokio/b;J)V
    .registers 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-super {p0, p1, p2, p3}, Lokio/f;->write(Lokio/b;J)V

    .line 2
    iget-wide v0, p0, Lokhttp3/internal/http/CallServerInterceptor$CountingSink;->successfulCount:J

    add-long/2addr v0, p2

    iput-wide v0, p0, Lokhttp3/internal/http/CallServerInterceptor$CountingSink;->successfulCount:J

    return-void
.end method