Create a DoubleBuffer : DoubleBuffer « File « Java Tutorial






import java.nio.ByteBuffer;
import java.nio.DoubleBuffer;

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

    DoubleBuffer dbuf = buf.asDoubleBuffer();

  }
}








11.44.DoubleBuffer
11.44.1.Create a DoubleBuffer
11.44.2.Convert ByteBuffer to DoubleBuffer
11.44.3.Use While loop to read a DoubleBuffer