The list of methods to do ByteBuffer Skip are organized into topic(s).
ByteBuffer[]
skipBufs(ByteBuffer[] bufs, int nextWithRemaining) skip Bufs
int newSize = bufs.length - nextWithRemaining;
ByteBuffer[] temp = new ByteBuffer[newSize];
for (int i = 0; i < newSize; i++) {
temp[i] = bufs[i + nextWithRemaining];
return temp;
void
skipToNALUnit(ByteBuffer buf) skip To NAL Unit
if (!buf.hasRemaining())
return;
int val = 0xffffffff;
while (buf.hasRemaining()) {
val <<= 8;
val |= (buf.get() & 0xff);
if ((val & 0xffffff) == 1) {
buf.position(buf.position());
...