copyInto

abstract fun copyInto(    array: IntArray,     destinationOffset: Int = 0,     startOffset: Int = 0,     endOffset: Int = size): IntArray

Copies from the gap buffer into the provided IntArray.

Parameters

array

the IntArray into which data should be copied.

destinationOffset

the destination index at which the copy starts.

startOffset

the offset at which copy starts, in the gap buffer.

This operation may move the gap.