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 abstract LongBuffer put(int index, long l);

Source Link

Document

Writes a long to the specified index of this buffer; the position is not changed.

Usage

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());

}