Example usage for java.nio LongBuffer put

List of usage examples for java.nio LongBuffer put

Introduction

In this page you can find the example usage for java.nio LongBuffer put.

Prototype

public LongBuffer put(LongBuffer src) 

Source Link

Document

Writes all the remaining longs of the src long buffer to this buffer's current position, and increases both buffers' position by the number of longs copied.

Usage

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(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();/* w  w  w  . j  a  v  a 2 s  . c  o m*/
    System.out.println(bb.get());

}

From source file:Main.java

public static void main(String[] args) {
    LongBuffer bb = LongBuffer.allocate(10);
    bb.put(100);

    bb.rewind();/*from   w  w  w  .  j a  v  a  2  s.c  o  m*/
    System.out.println(bb.get(0));

}

From source file:Main.java

public static void main(String[] args) {
    LongBuffer bb = LongBuffer.allocate(10);
    bb.put(100);

    bb.rewind();//from  w  ww. j  a  va2  s  .  c o  m

    long[] longArray = new long[10];
    bb.get(longArray, 0, 2);

    System.out.println(Arrays.toString(longArray));

}

From source file:Main.java

public static void main(String[] args) {
    LongBuffer bb = LongBuffer.allocate(10);
    bb.put(100);

    bb.rewind();/*from   w ww  .  java  2s.  c o m*/

    long[] longArray = new long[10];
    bb.get(longArray);

    System.out.println(Arrays.toString(longArray));

}