[#subprocess-Buffer] = xref:subprocess.adoc[subprocess]::Buffer :relfileprefix: ../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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 [cols="1,4"] |=== | Name| Description | xref:subprocess/Buffer/2constructor-0f.adoc[`Buffer`] [.small]#[constructor]# | Constructors | xref:subprocess/Buffer/add_cap.adoc[`add_cap`] | Resizes the underlying storage to the given capacity. |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:subprocess/Buffer/buf.adoc[`buf`] | Dynamically sized storage for the captured bytes. | xref:subprocess/Buffer/length.adoc[`length`] | Number of valid bytes currently stored in buf. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#