Ensure we have the capacity to resize the buffer