what-the-bank/sources/com/google/android/gms/internal/firebase_ml/zzgu.java

63 lines
1.9 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.firebase_ml;
/* loaded from: classes2.dex */
public abstract class zzgu {
@Deprecated
private final byte zzxq;
protected final byte zzxr;
private final int zzxs;
private final int zzxt;
protected final int zzxu;
private final int zzxv;
/* JADX INFO: Access modifiers changed from: protected */
public zzgu(int i, int i2, int i3, int i4) {
this(3, 4, i3, i4, (byte) 61);
}
/* JADX INFO: Access modifiers changed from: package-private */
public abstract void zza(byte[] bArr, int i, int i2, zzgv zzgvVar);
/* JADX INFO: Access modifiers changed from: protected */
public abstract boolean zza(byte b);
private zzgu(int i, int i2, int i3, int i4, byte b) {
this.zzxq = (byte) 61;
this.zzxs = 3;
this.zzxt = 4;
this.zzxu = (i3 <= 0 || i4 <= 0) ? 0 : (i3 / 4) << 2;
this.zzxv = i4;
this.zzxr = (byte) 61;
}
/* JADX INFO: Access modifiers changed from: protected */
public final byte[] zza(int i, zzgv zzgvVar) {
if (zzgvVar.buffer == null || zzgvVar.buffer.length < zzgvVar.pos + i) {
if (zzgvVar.buffer == null) {
zzgvVar.buffer = new byte[8192];
zzgvVar.pos = 0;
zzgvVar.zzxx = 0;
} else {
byte[] bArr = new byte[zzgvVar.buffer.length << 1];
System.arraycopy(zzgvVar.buffer, 0, bArr, 0, zzgvVar.buffer.length);
zzgvVar.buffer = bArr;
}
return zzgvVar.buffer;
}
return zzgvVar.buffer;
}
public final long zzc(byte[] bArr) {
int length = bArr.length;
int i = this.zzxs;
long j = (((length + i) - 1) / i) * this.zzxt;
int i2 = this.zzxu;
if (i2 <= 0) {
return j;
}
long j2 = i2;
return j + ((((j2 + j) - 1) / j2) * this.zzxv);
}
}