capacity

Returns the number of UTF-16 code units the buffer can hold without growing.

Return

the allocated capacity, which is at least length.