g.smali
.class final Lokhttp3/internal/http2/g;
.super Lokio/i;
.source "Http2Codec.java"
# instance fields
.field private bXB:J
.field private synthetic bXN:Lokhttp3/internal/http2/f;
.field private completed:Z
# direct methods
.method constructor <init>(Lokhttp3/internal/http2/f;Lokio/s;)V
.registers 5
.prologue
.line 204
iput-object p1, p0, Lokhttp3/internal/http2/g;->bXN:Lokhttp3/internal/http2/f;
.line 205
invoke-direct {p0, p2}, Lokio/i;-><init>(Lokio/s;)V
.line 201
const/4 v0, 0x0
iput-boolean v0, p0, Lokhttp3/internal/http2/g;->completed:Z
.line 202
const-wide/16 v0, 0x0
iput-wide v0, p0, Lokhttp3/internal/http2/g;->bXB:J
.line 206
return-void
.end method
.method private d(Ljava/io/IOException;)V
.registers 5
.prologue
.line 227
iget-boolean v0, p0, Lokhttp3/internal/http2/g;->completed:Z
if-eqz v0, :cond_5
.line 230
:goto_4
return-void
.line 228
:cond_5
const/4 v0, 0x1
iput-boolean v0, p0, Lokhttp3/internal/http2/g;->completed:Z
.line 229
iget-object v0, p0, Lokhttp3/internal/http2/g;->bXN:Lokhttp3/internal/http2/f;
iget-object v0, v0, Lokhttp3/internal/http2/f;->bXx:Lokhttp3/internal/connection/g;
const/4 v1, 0x0
iget-object v2, p0, Lokhttp3/internal/http2/g;->bXN:Lokhttp3/internal/http2/f;
invoke-virtual {v0, v1, v2, p1}, Lokhttp3/internal/connection/g;->a(ZLokhttp3/internal/b/d;Ljava/io/IOException;)V
goto :goto_4
.end method
# virtual methods
.method public final close()V
.registers 2
.prologue
.line 222
invoke-super {p0}, Lokio/i;->close()V
.line 223
const/4 v0, 0x0
invoke-direct {p0, v0}, Lokhttp3/internal/http2/g;->d(Ljava/io/IOException;)V
.line 224
return-void
.end method
.method public final read(Lokio/d;J)J
.registers 8
.prologue
.line 210
:try_start_0
invoke-virtual {p0}, Lokhttp3/internal/http2/g;->delegate()Lokio/s;
move-result-object v0
invoke-interface {v0, p1, p2, p3}, Lokio/s;->read(Lokio/d;J)J
move-result-wide v0
.line 211
const-wide/16 v2, 0x0
cmp-long v2, v0, v2
if-lez v2, :cond_13
.line 212
iget-wide v2, p0, Lokhttp3/internal/http2/g;->bXB:J
add-long/2addr v2, v0
iput-wide v2, p0, Lokhttp3/internal/http2/g;->bXB:J
:try_end_13
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_13} :catch_14
.line 214
:cond_13
return-wide v0
.line 215
:catch_14
move-exception v0
.line 216
invoke-direct {p0, v0}, Lokhttp3/internal/http2/g;->d(Ljava/io/IOException;)V
.line 217
throw v0
.end method