Java LongBuffer.put(long[] src, int offset, int length)
Syntax
LongBuffer.put(long[] src, int offset, int length) has the following syntax.
public LongBuffer put(long[] src, int offset, int length)
Example
In the following code shows how to use LongBuffer.put(long[] src, int offset, int length) method.
import java.nio.LongBuffer;
/*from w w w . j a v a2 s. c om*/
public class Main {
public static void main(String[] args) {
LongBuffer bb = LongBuffer.allocate(10);
bb.put(new long[]{100,123,123,123,1},0,1);
System.out.println(bb.toString());
}
}
The code above generates the following result.