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.
Synopsis
Declared in <absl/strings/cord_buffer.h>
static
CordBuffer
CreateWithDefaultLimit(size_t capacity);
Return Value
A new CordBuffer with the requested capacity.
Parameters
Name |
Description |
capacity |
The desired capacity, capped at |
Created with MrDocs