36 lines
1.0 KiB
Java
36 lines
1.0 KiB
Java
package com.bumptech.glide.load.resource.bytes;
|
|
|
|
import com.bumptech.glide.load.data.DataRewinder;
|
|
import java.nio.ByteBuffer;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class ByteBufferRewinder implements DataRewinder<ByteBuffer> {
|
|
private final ByteBuffer a;
|
|
|
|
public static class Factory implements DataRewinder.Factory<ByteBuffer> {
|
|
@Override // com.bumptech.glide.load.data.DataRewinder.Factory
|
|
public DataRewinder<ByteBuffer> a(ByteBuffer byteBuffer) {
|
|
return new ByteBufferRewinder(byteBuffer);
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.data.DataRewinder.Factory
|
|
public Class<ByteBuffer> a() {
|
|
return ByteBuffer.class;
|
|
}
|
|
}
|
|
|
|
public ByteBufferRewinder(ByteBuffer byteBuffer) {
|
|
this.a = byteBuffer;
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.data.DataRewinder
|
|
public void b() {
|
|
}
|
|
|
|
@Override // com.bumptech.glide.load.data.DataRewinder
|
|
public ByteBuffer a() {
|
|
this.a.position(0);
|
|
return this.a;
|
|
}
|
|
}
|