Ensures that capacity is reserved for at least the specified number of bytes.
Existing buffer content is preserved.