copyInto

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

Copies from the gap buffer into the provided CharArray.

Parameters

array

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