allocate

fun allocate(capacity: Int): CharBuffer

Allocates a new buffer with the given capacity.