package jq;

import java.util.Arrays;

/* loaded from: classes3.dex */
public final class l0 extends z0 {

    /* renamed from: a, reason: collision with root package name */
    private long[] f25231a;

    /* renamed from: b, reason: collision with root package name */
    private int f25232b;

    public l0(long[] bufferWithData) {
        kotlin.jvm.internal.t.g(bufferWithData, "bufferWithData");
        this.f25231a = bufferWithData;
        this.f25232b = bufferWithData.length;
        b(10);
    }

    @Override // jq.z0
    public void b(int i10) {
        int d10;
        long[] jArr = this.f25231a;
        if (jArr.length < i10) {
            d10 = jn.o.d(i10, jArr.length * 2);
            long[] copyOf = Arrays.copyOf(jArr, d10);
            kotlin.jvm.internal.t.f(copyOf, "copyOf(this, newSize)");
            this.f25231a = copyOf;
        }
    }

    @Override // jq.z0
    public int d() {
        return this.f25232b;
    }

    public final void e(long j10) {
        z0.c(this, 0, 1, null);
        long[] jArr = this.f25231a;
        int d10 = d();
        this.f25232b = d10 + 1;
        jArr[d10] = j10;
    }

    @Override // jq.z0
    /* renamed from: f, reason: merged with bridge method [inline-methods] */
    public long[] a() {
        long[] copyOf = Arrays.copyOf(this.f25231a, d());
        kotlin.jvm.internal.t.f(copyOf, "copyOf(this, newSize)");
        return copyOf;
    }
}
