Example usage for java.nio LongBuffer arrayOffset

List of usage examples for java.nio LongBuffer arrayOffset

Introduction

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

Prototype

public final int arrayOffset() 

Source Link

Document

Returns the offset of the long array which this buffer is based on, if there is one.

Usage

From source file:Main.java

public static void main(String[] args) {
    LongBuffer bb = LongBuffer.allocate(10);
    bb.put(100);//from   w  w  w .j av a2 s  .co  m
    System.out.println(bb.arrayOffset());

}

From source file:Main.java

public static void main(String[] args) {
    LongBuffer bb = LongBuffer.allocate(10);
    bb.put(100L);//from   w  w  w .j a  v  a2s . c  om
    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);//from   w w  w .  j  a va 2 s  .com
    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);/*from   ww  w. j  av a  2 s.  co m*/
    System.out.println(bb.arrayOffset());

}