buffer

abstract fun buffer(): CharArray

Returns the internal termBuffer character array which you can then directly alter. If the array is too small for your token, use .resizeBuffer to increase it. After altering the buffer be sure to call .setLength to record the number of valid characters that were placed into the termBuffer.

NOTE: The returned buffer may be larger than the valid .length.