Creates a CordBuffer instance of the desired capacity, capped at the default limit kDefaultLimit. The returned buffer has a guaranteed capacity of at least min(kDefaultLimit, capacity). See the class comments for more information on buffer capacities and intended usage.
Declared in <absl/strings/cord_buffer.h>
static
CordBuffer
CreateWithDefaultLimit(size_t capacity);
A new CordBuffer with the requested capacity.
| Name | Description |
|---|---|
| capacity | The desired capacity, capped at kDefaultLimit. |