Helper to write bytes to a BytesSink
| 450 | |
| 451 | // Helper to write bytes to a BytesSink |
| 452 | void WriteBytes(BytesSink sink, const std::vector<uint8_t>& bytes) { |
| 453 | if (sink.inner == 0 || bytes.empty()) { |
| 454 | return; |
| 455 | } |
| 456 | |
| 457 | size_t bytes_to_write = bytes.size(); |
| 458 | FFI::bytes_sink_write(sink, bytes.data(), &bytes_to_write); |
| 459 | } |
| 460 | |
| 461 | Status Module::__call_reducer__( |
| 462 | uint32_t id, |
no test coverage detected
searching dependent graphs…