ByteBuffer advance Position - Java java.nio

Java examples for java.nio:ByteBuffer

Description

ByteBuffer advance Position

Demo Code


//package com.java2s;
import java.nio.ByteBuffer;

public class Main {
    public static void advancePosition(ByteBuffer buffer, int count) {
        buffer.position(buffer.position() + count);
    }//from   w w  w  .  ja  va2s  .com
}

Related Tutorials