copyInto

abstract fun copyInto(    array: Array<T>,     destinationOffset: Int = 0,     startOffset: Int = 0,     endOffset: Int = size): Array<T>

Copies from the gap buffer into the provided Array.

Parameters

array

the Array 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.