Java Utililty Methods ByteBuffer Skip

List of utility methods to do ByteBuffer Skip

  1. HOME
  2. Java
  3. B
  4. ByteBuffer Skip

Description

The list of methods to do ByteBuffer Skip are organized into topic(s).

Method

void bufferSkip(ByteBuffer buffer, int count)
buffer Skip
buffer.position(buffer.position() + count);
void iskip(ByteBuffer byteBuffer, int intsToSkip)
iskip
nskip(byteBuffer, intsToSkip, 4);
int skip(ByteBuffer buffer, int count)
skip
int toSkip = Math.min(buffer.remaining(), count);
buffer.position(buffer.position() + toSkip);
return toSkip;
void skip(ByteBuffer buffer, int length)
Increment position in buffer.
buffer.position(buffer.position() + length);
void skip(ByteBuffer dest, int length)
skip
dest.position(dest.position() + length);
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 skipBytes(ByteBuffer buf, int count)
Skip a specified number of bytes, i.e., advance the buffer's position.
buf.position(buf.position() + count);
void skipChars(ByteBuffer buffer, byte[] chars)
skip Chars
while (buffer.hasRemaining()) {
 byte b = buffer.get();
 if (contains(chars, b)) {
 continue;
 } else {
 buffer.position(buffer.position() - 1);
 break;
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());
...
void skipUnknown(ByteBuffer buf, int length)
skip Unknown
buf.position(buf.position() + length);


AltStyle によって変換されたページ (->オリジナル) /