Companion

object Companion

Functions

Link copied to clipboard
fun allocate(capacity: Int): CharBuffer

Allocates a new buffer with the given capacity.

Link copied to clipboard
fun wrap(array: CharArray, offset: Int = 0, length: Int = array.size - offset): CharBuffer

Wraps an existing char array.

fun wrap(csq: CharSequence, start: Int = 0, end: Int = csq.length): CharBuffer

Wraps a CharSequence into a read-only buffer.