package o;

import java.io.OutputStream;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class PK extends OutputStream {
    public long l;

    @Override // java.io.OutputStream
    public final void write(int i) {
        this.l++;
    }

    @Override // java.io.OutputStream
    public final void write(byte[] bArr) {
        this.l += bArr.length;
    }

    @Override // java.io.OutputStream
    public final void write(byte[] bArr, int i, int i2) {
        int i3;
        if (i >= 0 && i <= bArr.length && i2 >= 0 && (i3 = i + i2) <= bArr.length && i3 >= 0) {
            this.l += i2;
            return;
        }
        throw new IndexOutOfBoundsException();
    }
}
