reverse

fun ByteBuffer.reverse()
fun ShortBuffer.reverse()
fun IntBuffer.reverse()
fun LongBuffer.reverse()
fun FloatBuffer.reverse()
fun DoubleBuffer.reverse()
fun CharBuffer.reverse()

Reverses elements in the buffer in-place.

fun ByteBuffer.reverse(fromIndex: Int, toIndex: Int)
fun ShortBuffer.reverse(fromIndex: Int, toIndex: Int)
fun IntBuffer.reverse(fromIndex: Int, toIndex: Int)
fun LongBuffer.reverse(fromIndex: Int, toIndex: Int)
fun DoubleBuffer.reverse(fromIndex: Int, toIndex: Int)
fun CharBuffer.reverse(fromIndex: Int, toIndex: Int)

Reverses elements of the array in the specified range in-place.

Parameters

fromIndex

the start of the range (inclusive) to reverse.

toIndex

the end of the range (exclusive) to reverse.

Throws

if fromIndex is less than zero or toIndex is greater than the size of this array.

if fromIndex is greater than toIndex.

fun FloatBuffer.reverse(fromIndex: Int, toIndex: Int)

Reverses elements of the array in the specified range in-place.

Parameters

fromIndex

the start of the range (inclusive) to reverse.

toIndex

the end of the range (exclusive) to reverse.

Throws

if fromIndex is less than zero or toIndex is greater than the lim of this array.

if fromIndex is greater than toIndex.