.class public Lm5/a$a; .super Ljava/io/InputStream; .source "ByteBufferUtil.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lm5/a; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x9 name = "a" .end annotation # static fields .field public static final c:I = -0x1 # instance fields .field public final a:Ljava/nio/ByteBuffer; .annotation build Landroidx/annotation/NonNull; .end annotation .end field .field public b:I # direct methods .method public constructor (Ljava/nio/ByteBuffer;)V .locals 1 .param p1 # Ljava/nio/ByteBuffer; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .line 1 invoke-direct {p0}, Ljava/io/InputStream;->()V const/4 v0, -0x1 .line 2 iput v0, p0, Lm5/a$a;->b:I .line 3 iput-object p1, p0, Lm5/a$a;->a:Ljava/nio/ByteBuffer; return-void .end method # virtual methods .method public available()I .locals 1 .line 1 iget-object v0, p0, Lm5/a$a;->a:Ljava/nio/ByteBuffer; invoke-virtual {v0}, Ljava/nio/ByteBuffer;->remaining()I move-result v0 return v0 .end method .method public declared-synchronized mark(I)V .locals 0 monitor-enter p0 .line 1 :try_start_0 iget-object p1, p0, Lm5/a$a;->a:Ljava/nio/ByteBuffer; invoke-virtual {p1}, Ljava/nio/ByteBuffer;->position()I move-result p1 iput p1, p0, Lm5/a$a;->b:I :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 2 monitor-exit p0 return-void :catchall_0 move-exception p1 monitor-exit p0 throw p1 .end method .method public markSupported()Z .locals 1 const/4 v0, 0x1 return v0 .end method .method public read()I .locals 1 .line 1 iget-object v0, p0, Lm5/a$a;->a:Ljava/nio/ByteBuffer; invoke-virtual {v0}, Ljava/nio/ByteBuffer;->hasRemaining()Z move-result v0 if-nez v0, :cond_0 const/4 v0, -0x1 return v0 .line 2 :cond_0 iget-object v0, p0, Lm5/a$a;->a:Ljava/nio/ByteBuffer; invoke-virtual {v0}, Ljava/nio/ByteBuffer;->get()B move-result v0 and-int/lit16 v0, v0, 0xff return v0 .end method .method public read([BII)I .locals 1 .param p1 # [B .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 3 iget-object v0, p0, Lm5/a$a;->a:Ljava/nio/ByteBuffer; invoke-virtual {v0}, Ljava/nio/ByteBuffer;->hasRemaining()Z move-result v0 if-nez v0, :cond_0 const/4 p1, -0x1 return p1 .line 4 :cond_0 invoke-virtual {p0}, Lm5/a$a;->available()I move-result v0 invoke-static {p3, v0}, Ljava/lang/Math;->min(II)I move-result p3 .line 5 iget-object v0, p0, Lm5/a$a;->a:Ljava/nio/ByteBuffer; invoke-virtual {v0, p1, p2, p3}, Ljava/nio/ByteBuffer;->get([BII)Ljava/nio/ByteBuffer; return p3 .end method .method public declared-synchronized reset()V .locals 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation monitor-enter p0 .line 1 :try_start_0 iget v0, p0, Lm5/a$a;->b:I const/4 v1, -0x1 if-eq v0, v1, :cond_0 .line 2 iget-object v1, p0, Lm5/a$a;->a:Ljava/nio/ByteBuffer; invoke-virtual {v1, v0}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer; :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 3 monitor-exit p0 return-void .line 4 :cond_0 :try_start_1 new-instance v0, Ljava/io/IOException; const-string v1, "Cannot reset to unset mark position" invoke-direct {v0, v1}, Ljava/io/IOException;->(Ljava/lang/String;)V throw v0 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 :catchall_0 move-exception v0 monitor-exit p0 throw v0 .end method .method public skip(J)J .locals 3 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 1 iget-object v0, p0, Lm5/a$a;->a:Ljava/nio/ByteBuffer; invoke-virtual {v0}, Ljava/nio/ByteBuffer;->hasRemaining()Z move-result v0 if-nez v0, :cond_0 const-wide/16 p1, -0x1 return-wide p1 .line 2 :cond_0 invoke-virtual {p0}, Lm5/a$a;->available()I move-result v0 int-to-long v0, v0 invoke-static {p1, p2, v0, v1}, Ljava/lang/Math;->min(JJ)J move-result-wide p1 .line 3 iget-object v0, p0, Lm5/a$a;->a:Ljava/nio/ByteBuffer; invoke-virtual {v0}, Ljava/nio/ByteBuffer;->position()I move-result v1 int-to-long v1, v1 add-long/2addr v1, p1 long-to-int v1, v1 invoke-virtual {v0, v1}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer; return-wide p1 .end method