- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
41 lines
890 B
Java
41 lines
890 B
Java
package androidx.emoji2.text.flatbuffer;
|
|
|
|
import java.nio.ByteBuffer;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class BaseVector {
|
|
protected ByteBuffer bb;
|
|
private int element_size;
|
|
private int length;
|
|
private int vector;
|
|
|
|
public int __element(int i) {
|
|
return this.vector + (i * this.element_size);
|
|
}
|
|
|
|
public int __vector() {
|
|
return this.vector;
|
|
}
|
|
|
|
public int length() {
|
|
return this.length;
|
|
}
|
|
|
|
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 void reset() {
|
|
__reset(0, 0, null);
|
|
}
|
|
}
|