ByteBufferRewinder.smali
.class public Lcom/bumptech/glide/load/resource/bytes/ByteBufferRewinder;
.super Ljava/lang/Object;
.source "ByteBufferRewinder.java"
# interfaces
.implements Lcom/bumptech/glide/load/data/DataRewinder;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/bumptech/glide/load/resource/bytes/ByteBufferRewinder$Factory;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/bumptech/glide/load/data/DataRewinder<",
"Ljava/nio/ByteBuffer;",
">;"
}
.end annotation
# instance fields
.field private final buffer:Ljava/nio/ByteBuffer;
# direct methods
.method public constructor <init>(Ljava/nio/ByteBuffer;)V
.registers 2
.line 13
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 14
iput-object p1, p0, Lcom/bumptech/glide/load/resource/bytes/ByteBufferRewinder;->buffer:Ljava/nio/ByteBuffer;
return-void
.end method
# virtual methods
.method public cleanup()V
.registers 1
return-void
.end method
.method public bridge synthetic rewindAndGet()Ljava/lang/Object;
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 10
invoke-virtual {p0}, Lcom/bumptech/glide/load/resource/bytes/ByteBufferRewinder;->rewindAndGet()Ljava/nio/ByteBuffer;
move-result-object v0
return-object v0
.end method
.method public rewindAndGet()Ljava/nio/ByteBuffer;
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 19
iget-object v0, p0, Lcom/bumptech/glide/load/resource/bytes/ByteBufferRewinder;->buffer:Ljava/nio/ByteBuffer;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
.line 20
iget-object v0, p0, Lcom/bumptech/glide/load/resource/bytes/ByteBufferRewinder;->buffer:Ljava/nio/ByteBuffer;
return-object v0
.end method