package io.grpc.internal; import java.io.Closeable; import java.io.IOException; import java.io.OutputStream; import java.nio.ByteBuffer; /* loaded from: classes6.dex */ public interface ReadableBuffer extends Closeable { byte[] array(); int arrayOffset(); boolean byteBufferSupported(); @Override // java.io.Closeable, java.lang.AutoCloseable void close(); ByteBuffer getByteBuffer(); boolean hasArray(); void mark(); boolean markSupported(); ReadableBuffer readBytes(int i); void readBytes(OutputStream outputStream, int i) throws IOException; void readBytes(ByteBuffer byteBuffer); void readBytes(byte[] bArr, int i, int i2); int readInt(); int readUnsignedByte(); int readableBytes(); void reset(); void skipBytes(int i); }