put

fun put(value: Long): LongBuffer

Relative put method. Writes the given long at the current position and then increments the position.

Return

this LongBuffer.

Parameters

value

the long value to write.

Throws

if there is no space remaining.


fun put(index: Int, value: Long): LongBuffer

Absolute put method. Writes the given long into the buffer at the specified index (in longs).

Return

this LongBuffer.

Parameters

index

the index at which to write.

value

the long value to write.

Throws

if index is out of bounds.