List of usage examples for java.nio FloatBuffer allocate
public static FloatBuffer allocate(int capacity)
From source file:Main.java
public static void main(String[] args) { FloatBuffer floatBuffer = FloatBuffer.allocate(10); floatBuffer.put(1, 1.23F);/*from w w w. j a v a 2 s. c o m*/ System.out.println(floatBuffer.hashCode()); }
From source file:Main.java
public static void main(String[] args) { FloatBuffer floatBuffer = FloatBuffer.allocate(10); floatBuffer.put(1, 1.23F);// ww w. j a va 2s . c o m System.out.println(floatBuffer.toString()); }
From source file:Main.java
public static void main(String[] args) { FloatBuffer floatBuffer = FloatBuffer.allocate(10); floatBuffer.put(1, 1.23F);//from ww w . jav a 2 s . c om System.out.println(floatBuffer.hasArray()); }
From source file:Main.java
public static void main(String[] args) { FloatBuffer floatBuffer = FloatBuffer.allocate(10); floatBuffer.put(1, 1.23F);// w w w . jav a 2s. co m System.out.println(floatBuffer.isDirect()); }
From source file:Main.java
public static void main(String[] args) { FloatBuffer floatBuffer = FloatBuffer.allocate(10); floatBuffer.put(1, 1.23F);//from w ww. j a v a 2 s . co m System.out.println(floatBuffer.order()); }
From source file:Main.java
public static void main(String[] args) { FloatBuffer floatBuffer = FloatBuffer.allocate(10); floatBuffer.put(0, 1.23F);/*from w ww .ja v a2 s .c om*/ floatBuffer.rewind(); System.out.println(floatBuffer.arrayOffset()); }
From source file:Main.java
public static void main(String[] args) { FloatBuffer floatBuffer = FloatBuffer.allocate(10); floatBuffer.put(0, 1.23F);//from w w w .j a v a2s . c o m floatBuffer.rewind(); System.out.println(floatBuffer.get()); }
From source file:Main.java
public static void main(String[] args) { FloatBuffer floatBuffer = FloatBuffer.allocate(10); floatBuffer.put(0, 1.23F);/*w ww . j a v a 2s .c o m*/ floatBuffer.rewind(); System.out.println(floatBuffer.get(0)); }
From source file:Main.java
public static void main(String[] args) { FloatBuffer floatBuffer = FloatBuffer.allocate(10); floatBuffer.put(0, 1.23F);//from ww w . ja va 2 s. c o m floatBuffer.rewind(); FloatBuffer floatBuffer1 = floatBuffer.asReadOnlyBuffer(); System.out.println(floatBuffer.equals(floatBuffer1)); }
From source file:Main.java
public static void main(String[] args) { FloatBuffer floatBuffer = FloatBuffer.allocate(10); floatBuffer.put(0, 1.23F);/* w w w . j av a 2s .c o m*/ floatBuffer.rewind(); FloatBuffer floatBuffer1 = floatBuffer.duplicate(); System.out.println(floatBuffer.equals(floatBuffer1)); }