mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-14 09:57:16 +01:00
17 lines
569 B
Java
17 lines
569 B
Java
package androidx.emoji2.text.flatbuffer;
|
|
|
|
import java.nio.ByteBuffer;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes14.dex */
|
|
public class ByteBufferUtil {
|
|
public static int getSizePrefix(ByteBuffer byteBuffer) {
|
|
return byteBuffer.getInt(byteBuffer.position());
|
|
}
|
|
|
|
public static ByteBuffer removeSizePrefix(ByteBuffer byteBuffer) {
|
|
ByteBuffer duplicate = byteBuffer.duplicate();
|
|
duplicate.position(duplicate.position() + 4);
|
|
return duplicate;
|
|
}
|
|
}
|