[#subprocess-Buffer]
= xref:subprocess.adoc[subprocess]::Buffer
:relfileprefix: ../
:mrdocs:

class&colon; Buffer This class is a very thin wrapper around std&colon;&colon;vector&lt;char&gt; This is basically used to determine the length of the actual data stored inside the dynamically resized vector&period;

== Synopsis

Declared in `&lt;util&sol;subprocess&period;h&gt;`

[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&period;

OutBuffer and ErrBuffer are just different typedefs to this class&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:subprocess/Buffer/2constructor-0f.adoc[`Buffer`]         [.small]#[constructor]#
| Constructors
| xref:subprocess/Buffer/add_cap.adoc[`add&lowbar;cap`] 
| Resizes the underlying storage to the given capacity&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:subprocess/Buffer/buf.adoc[`buf`] 
| Dynamically sized storage for the captured bytes&period;
| xref:subprocess/Buffer/length.adoc[`length`] 
| Number of valid bytes currently stored in buf&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
