skip ByteBuffer by offset - Java java.nio

Java examples for java.nio:ByteBuffer

Description

skip ByteBuffer by offset

Demo Code


//package com.java2s;

import java.nio.ByteBuffer;

public class Main {
    public static void skip(ByteBuffer b, int bytes) {
        b.position(b.position() + bytes);
    }//from   w  ww. j  a  va  2s . c o  m
}

Related Tutorials