Create a long ByteBuffer : LongBuffer « File « Java Tutorial






import java.nio.ByteBuffer;
import java.nio.LongBuffer;

public class Main {
  public static void main(String[] argv) throws Exception {
    ByteBuffer buf = ByteBuffer.allocate(15);

    LongBuffer lbuf = buf.asLongBuffer();

  }
}








11.47.LongBuffer
11.47.1.Create a long ByteBuffer
11.47.2.Convert ByteBuffer to a LongBuffer
11.47.3.Loop through a LongBuffer with a while loop