master
md 14 lines 393 Bytes
Rendered Raw
1 # ProcessOutputHandler
2
3 Observed use:
4
5 - `Process::OutputReceived` and `Process::ErrorReceived` raise one argument containing raw output bytes.
6 - The wrapper forwards a `winrt::array_view<const uint8_t>` produced from the C callback buffer.
7
8 ```cpp
9 process.OutputReceived([](auto const& data)
10 {
11 std::string text(data.begin(), data.end());
12 printf("stdout: %s\n", text.c_str());
13 });
14 ```