package j;

import java.io.IOException;
import java.nio.channels.WritableByteChannel;

/* JADX INFO: compiled from: BufferedSink.kt */
/* JADX INFO: loaded from: classes.dex */
public interface f extends z, WritableByteChannel {
    d buffer();

    f emit() throws IOException;

    f emitCompleteSegments() throws IOException;

    @Override // j.z, java.io.Flushable
    void flush() throws IOException;

    d getBuffer();

    f write(h hVar) throws IOException;

    f write(byte[] bArr) throws IOException;

    f write(byte[] bArr, int i2, int i3) throws IOException;

    long writeAll(b0 b0Var) throws IOException;

    f writeByte(int i2) throws IOException;

    f writeDecimalLong(long j2) throws IOException;

    f writeHexadecimalUnsignedLong(long j2) throws IOException;

    f writeInt(int i2) throws IOException;

    f writeShort(int i2) throws IOException;

    f writeUtf8(String str) throws IOException;
}
