Java ByteBuffer Skip skip(ByteBuffer buffer, int count)

Here you can find the source of skip(ByteBuffer buffer, int count)

Description

skip

License

Apache License

Declaration

public static int skip(ByteBuffer buffer, int count) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.nio.ByteBuffer;

public class Main {
    public static int skip(ByteBuffer buffer, int count) {
        int toSkip = Math.min(buffer.remaining(), count);
        buffer.position(buffer.position() + toSkip);
        return toSkip;
    }/* w w w.j  a  v a2 s  . c o m*/
}

Related

  1. bufferSkip(ByteBuffer buffer, int count)
  2. iskip(ByteBuffer byteBuffer, int intsToSkip)
  3. skip(ByteBuffer buffer, int length)
  4. skip(ByteBuffer dest, int length)
  5. skipBufs(ByteBuffer[] bufs, int nextWithRemaining)
  6. skipBytes(ByteBuffer buf, int count)