Example usage for java.nio DoubleBuffer arrayOffset

List of usage examples for java.nio DoubleBuffer arrayOffset

Introduction

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

Prototype

public final int arrayOffset() 

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    DoubleBuffer bb = DoubleBuffer.allocate(BSIZE);

    bb.put(new double[] { 98765, 12345 });

    System.out.println(bb.arrayOffset());

}