List of usage examples for java.nio LongBuffer allocate
public static LongBuffer allocate(int capacity)
From source file:Main.java
public static void main(String[] args) { LongBuffer bb = LongBuffer.allocate(10); bb.put(100); System.out.println(bb.isDirect()); }
From source file:Main.java
public static void main(String[] args) { LongBuffer bb = LongBuffer.allocate(10); bb.put(100); System.out.println(bb.hashCode()); }
From source file:Main.java
public static void main(String[] args) { LongBuffer bb = LongBuffer.allocate(10); bb.put(100); System.out.println(bb.order()); }
From source file:Main.java
public static void main(String[] args) { LongBuffer bb = LongBuffer.allocate(10); bb.put(100); System.out.println(bb.arrayOffset()); }
From source file:Main.java
public static void main(String[] args) { LongBuffer bb = LongBuffer.allocate(10); bb.put(0, 123L); System.out.println(bb.arrayOffset()); }
From source file:Main.java
public static void main(String[] args) { LongBuffer bb = LongBuffer.allocate(10); bb.put(1, 100L); System.out.println(bb.arrayOffset()); }
From source file:Main.java
public static void main(String[] args) { LongBuffer bb = LongBuffer.allocate(10); bb.put(new long[] { 100, 123, 123, 123, 1 }, 0, 1); System.out.println(bb.toString()); }
From source file:Main.java
public static void main(String[] args) { LongBuffer bb = LongBuffer.allocate(10); bb.put(100L); System.out.println(bb.arrayOffset()); }
From source file:Main.java
public static void main(String[] args) { LongBuffer bb = LongBuffer.allocate(10); bb.put(100); System.out.println(bb.hasArray()); }
From source file:Main.java
public static void main(String[] args) { LongBuffer bb = LongBuffer.allocate(10); bb.put(100); bb.rewind(); System.out.println(bb.get()); }