We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbc9e82 commit 1392c47Copy full SHA for 1392c47
subprocess.hpp
@@ -1288,6 +1288,9 @@ class Popen
1288
int send(const char* msg, size_t length)
1289
{ return stream_.send(msg, length); }
1290
1291
+ int send(const std::string& msg)
1292
+ { return send(msg.c_str(), msg.size()); }
1293
+
1294
int send(const std::vector<char>& msg)
1295
{ return stream_.send(msg); }
1296
@@ -1298,6 +1301,11 @@ class Popen
1298
1301
return res;
1299
1302
}
1300
1303
1304
+ std::pair<OutBuffer, ErrBuffer> communicate(const std::string& msg)
1305
+ {
1306
+ return communicate(msg.c_str(), msg.size());
1307
+ }
1308
1309
std::pair<OutBuffer, ErrBuffer> communicate(const std::vector<char>& msg)
1310
{
1311
auto res = stream_.communicate(msg);
0 commit comments