| 1423 | } |
| 1424 | |
| 1425 | Status WriteEOS() { |
| 1426 | // End of stream marker |
| 1427 | constexpr int32_t kZeroLength = 0; |
| 1428 | if (!options_.write_legacy_ipc_format) { |
| 1429 | RETURN_NOT_OK(Write(&kIpcContinuationToken, sizeof(int32_t))); |
| 1430 | } |
| 1431 | return Write(&kZeroLength, sizeof(int32_t)); |
| 1432 | } |
| 1433 | |
| 1434 | protected: |
| 1435 | IpcWriteOptions options_; |