mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-14 01:47:17 +01:00
41 lines
988 B
Java
41 lines
988 B
Java
package androidx.emoji2.text.flatbuffer;
|
|
|
|
import java.nio.ByteBuffer;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes14.dex */
|
|
public class BaseVector {
|
|
protected ByteBuffer bb;
|
|
private int element_size;
|
|
private int length;
|
|
private int vector;
|
|
|
|
public int __element(int i) {
|
|
return (i * this.element_size) + this.vector;
|
|
}
|
|
|
|
public void __reset(int i, int i2, ByteBuffer byteBuffer) {
|
|
this.bb = byteBuffer;
|
|
if (byteBuffer != null) {
|
|
this.vector = i;
|
|
this.length = byteBuffer.getInt(i - 4);
|
|
this.element_size = i2;
|
|
} else {
|
|
this.vector = 0;
|
|
this.length = 0;
|
|
this.element_size = 0;
|
|
}
|
|
}
|
|
|
|
public int __vector() {
|
|
return this.vector;
|
|
}
|
|
|
|
public int length() {
|
|
return this.length;
|
|
}
|
|
|
|
public void reset() {
|
|
__reset(0, 0, null);
|
|
}
|
|
}
|