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.

Synopsis

Declared in <util/subprocess.h>

class Buffer;

Description

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.

Member Functions

Name

Description

Buffer [constructor]

Constructors

add_cap

Resizes the underlying storage to the given capacity.

Data Members

Name

Description

buf

Dynamically sized storage for the captured bytes.

length

Number of valid bytes currently stored in buf.

Created with MrDocs