copyBuffer
Copies the contents of buffer, starting at offset for length characters, into the termBuffer array.
Parameters
buffer
the buffer to copy
offset
the index in the buffer of the first character to copy
length
the number of characters to copy