| 151 | } |
| 152 | |
| 153 | std::vector<SampleMessageParams> message_params() { |
| 154 | std::vector<SampleMessageParams> params; |
| 155 | for (const auto& options : write_options()) { |
| 156 | for (int64_t body_length : {0, 24}) { |
| 157 | params.push_back(SampleMessageParams{ |
| 158 | .custom_metadata = nullptr, .body_length = body_length, .options = options}); |
| 159 | params.push_back(SampleMessageParams{.custom_metadata = GetCustomMetadata(), |
| 160 | .body_length = body_length, |
| 161 | .options = options}); |
| 162 | } |
| 163 | } |
| 164 | return params; |
| 165 | } |
| 166 | |
| 167 | // Return the serialized metadata encapsulated in IPC framing |
| 168 | Result<std::shared_ptr<Buffer>> EncapsulateMetadata( |