subprocess::Buffer::add_cap

Resizes the underlying storage to the given capacity.

Synopsis

Declared in <util/subprocess.h>

void
add_cap(size_t cap);

Parameters

NameDescription
capNew size of the underlying vector, in bytes.