Allocates a new buffer with the given capacity.
Wraps an existing char array.
Wraps a CharSequence into a read-only buffer.