b0$d$a.smali
.class Lcom/bumptech/glide/load/p/d/b0$d$a;
.super Landroid/media/MediaDataSource;
.source ""
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/bumptech/glide/load/p/d/b0$d;->b(Landroid/media/MediaMetadataRetriever;Ljava/nio/ByteBuffer;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic e:Ljava/nio/ByteBuffer;
# direct methods
.method constructor <init>(Lcom/bumptech/glide/load/p/d/b0$d;Ljava/nio/ByteBuffer;)V
.registers 3
iput-object p2, p0, Lcom/bumptech/glide/load/p/d/b0$d$a;->e:Ljava/nio/ByteBuffer;
invoke-direct {p0}, Landroid/media/MediaDataSource;-><init>()V
return-void
.end method
# virtual methods
.method public close()V
.registers 1
return-void
.end method
.method public getSize()J
.registers 3
iget-object v0, p0, Lcom/bumptech/glide/load/p/d/b0$d$a;->e:Ljava/nio/ByteBuffer;
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->limit()I
move-result v0
int-to-long v0, v0
return-wide v0
.end method
.method public readAt(J[BII)I
.registers 9
iget-object v0, p0, Lcom/bumptech/glide/load/p/d/b0$d$a;->e:Ljava/nio/ByteBuffer;
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->limit()I
move-result v0
int-to-long v0, v0
cmp-long v2, p1, v0
if-ltz v2, :cond_d
const/4 p1, -0x1
return p1
:cond_d
iget-object v0, p0, Lcom/bumptech/glide/load/p/d/b0$d$a;->e:Ljava/nio/ByteBuffer;
long-to-int p2, p1
invoke-virtual {v0, p2}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
iget-object p1, p0, Lcom/bumptech/glide/load/p/d/b0$d$a;->e:Ljava/nio/ByteBuffer;
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I
move-result p1
invoke-static {p5, p1}, Ljava/lang/Math;->min(II)I
move-result p1
iget-object p2, p0, Lcom/bumptech/glide/load/p/d/b0$d$a;->e:Ljava/nio/ByteBuffer;
invoke-virtual {p2, p3, p4, p1}, Ljava/nio/ByteBuffer;->get([BII)Ljava/nio/ByteBuffer;
return p1
.end method