Bitcoin Core  27.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
subprocess::Buffer Class Reference

#include <subprocess.h>

Public Member Functions

 Buffer ()
 Buffer (size_t cap)
void add_cap (size_t cap)

Public Attributes

std::vector< char > buf
size_t length = 0

Detailed Description

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.

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.

Definition at line 678 of file subprocess.h.

Constructor & Destructor Documentation

◆ Buffer() [1/2]

subprocess::Buffer::Buffer ( )

Definition at line 681 of file subprocess.h.

◆ Buffer() [2/2]

subprocess::Buffer::Buffer ( size_t  cap)

Definition at line 682 of file subprocess.h.

Member Function Documentation

◆ add_cap()

void subprocess::Buffer::add_cap ( size_t  cap)

Definition at line 683 of file subprocess.h.

Here is the caller graph for this function:

Member Data Documentation

◆ buf

std::vector<char> subprocess::Buffer::buf

Definition at line 686 of file subprocess.h.

◆ length

size_t subprocess::Buffer::length = 0

Definition at line 687 of file subprocess.h.

The documentation for this class was generated from the following file: