class: Buffer This class is a very thin wrapper around std::vector<char> This is basically used to determine the length of the actual data stored inside the dynamically resized vector.
Declared in <util/subprocess.h>
class Buffer;
This is what is returned as the output to the communicate function, so, users must know about this class.
OutBuffer and ErrBuffer are just different typedefs to this class.
| Name | Description |
|---|---|
Buffer [constructor] | Constructors |
add_cap | Resizes the underlying storage to the given capacity. |
| Name | Description |
|---|---|
buf | Dynamically sized storage for the captured bytes. |
length | Number of valid bytes currently stored in buf. |