LongBuffer.arrayOffset() has the following syntax.
public final int arrayOffset()
In the following code shows how to use LongBuffer.arrayOffset() method.
import java.nio.LongBuffer; // ww w .ja v a 2s . c o m public class Main { public static void main(String[] args) { LongBuffer bb = LongBuffer.allocate(10); bb.put(100); System.out.println(bb.arrayOffset()); } }
The code above generates the following result.