List of usage examples for java.nio FloatBuffer rewind
public final Buffer rewind()
From source file:Main.java
public static void main(String[] args) { FloatBuffer floatBuffer = FloatBuffer.wrap(new float[] { 1.23F }); floatBuffer.rewind(); System.out.println(Arrays.toString(floatBuffer.array())); }
From source file:Main.java
public static void main(String[] args) { FloatBuffer floatBuffer = FloatBuffer.wrap(new float[] { 1.23F }, 0, 1); floatBuffer.rewind(); System.out.println(Arrays.toString(floatBuffer.array())); }
From source file:Main.java
public static void main(String[] args) { FloatBuffer floatBuffer = FloatBuffer.allocate(10); floatBuffer.put(0, 1.23F);// w ww. ja v a 2s. 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);// w w w .j ava 2 s . 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);//from ww w . 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);/* w ww. j av a 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);/*from w w w . j av a2 s.c o m*/ floatBuffer.rewind(); FloatBuffer floatBuffer1 = floatBuffer.duplicate(); 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. ja v a 2s . co m floatBuffer.rewind(); FloatBuffer floatBuffer1 = floatBuffer.slice(); 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);/*from w w w .j av a 2 s. c om*/ floatBuffer.rewind(); FloatBuffer floatBuffer1 = floatBuffer.compact(); 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);//from www . j a v a 2s .c om floatBuffer.rewind(); FloatBuffer floatBuffer1 = floatBuffer.compact(); System.out.println(floatBuffer.compareTo(floatBuffer1)); }