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 { private final ByteBuffer a; public static class Factory implements DataRewinder.Factory { @Override // com.bumptech.glide.load.data.DataRewinder.Factory public DataRewinder a(ByteBuffer byteBuffer) { return new ByteBufferRewinder(byteBuffer); } @Override // com.bumptech.glide.load.data.DataRewinder.Factory public Class 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; } }