ADD week 5
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package androidx.emoji2.text.flatbuffer;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
|
||||
/* loaded from: classes.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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user