56 int64_t remaining = num_bytes;
57 const char* current_buffer =
reinterpret_cast<const char*
>(
buffer);
58 while (remaining > 0) {
65 int64_t bytes_written =
Write(current_buffer, byte_to_write);
66 if (bytes_written < 0) {
69 remaining -= bytes_written;
70 current_buffer += bytes_written;
73 intptr_t fd =
GetFD();
74 const char*
result =
nullptr;
77 "Stdout",
"WriteEvent",
reinterpret_cast<const uint8_t*
>(
buffer),
81 "Stderr",
"WriteEvent",
reinterpret_cast<const uint8_t*
>(
buffer),
static const uint8_t buffer[]