Logo Search packages:      
Sourcecode: cacao-oj6 version File versions

static LongBuffer java::nio::LongBuffer::wrap ( long[]  array  )  [inline, static]

Wraps a long array into a buffer.

The new buffer will be backed by the given long array; that is, modifications to the buffer will cause the array to be modified and vice versa. The new buffer's capacity and limit will be array.length, its position will be zero, and its mark will be undefined. Its backing array will be the given array, and its array offset will be zero.

array The array that will back this buffer
The new long buffer

Definition at line 389 of file LongBuffer.java.

References wrap().

        return wrap(array, 0, array.length);

Generated by  Doxygen 1.6.0   Back to index