package com.flurry.org.apache.avro.file;

import java.io.ByteArrayInputStream;
import java.io.IOException;

/* loaded from: /storage/emulated/0/Documents/jadec/sources/com.UBI.A90.WW/dex-files/0.dex */
public class SeekableByteArrayInput extends ByteArrayInputStream implements SeekableInput {
    public SeekableByteArrayInput(byte[] data) {
        super(data);
    }

    @Override // com.flurry.org.apache.avro.file.SeekableInput
    public long length() throws IOException {
        return this.count;
    }

    @Override // com.flurry.org.apache.avro.file.SeekableInput
    public void seek(long p) throws IOException {
        reset();
        skip(p);
    }

    @Override // com.flurry.org.apache.avro.file.SeekableInput
    public long tell() throws IOException {
        return this.pos;
    }
}
