Files
rr3-apk/decompiled/sources/com/mbridge/msdk/playercommon/exoplayer2/util/LongArray.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

46 lines
1.0 KiB
Java

package com.mbridge.msdk.playercommon.exoplayer2.util;
import java.util.Arrays;
/* loaded from: classes4.dex */
public final class LongArray {
private static final int DEFAULT_INITIAL_CAPACITY = 32;
private int size;
private long[] values;
public final int size() {
return this.size;
}
public LongArray() {
this(32);
}
public LongArray(int i) {
this.values = new long[i];
}
public final void add(long j) {
int i = this.size;
long[] jArr = this.values;
if (i == jArr.length) {
this.values = Arrays.copyOf(jArr, i * 2);
}
long[] jArr2 = this.values;
int i2 = this.size;
this.size = i2 + 1;
jArr2[i2] = j;
}
public final long get(int i) {
if (i < 0 || i >= this.size) {
throw new IndexOutOfBoundsException("Invalid index " + i + ", size is " + this.size);
}
return this.values[i];
}
public final long[] toArray() {
return Arrays.copyOf(this.values, this.size);
}
}