| 43 | Q_LOGGING_CATEGORY(lcIngest, "pj.runtime.ingest") |
| 44 | |
| 45 | std::vector<uint8_t> copyPayloadBytes(const PJ_payload_t& payload) { |
| 46 | std::vector<uint8_t> bytes; |
| 47 | if (payload.size > 0 && payload.data != nullptr) { |
| 48 | bytes.assign(payload.data, payload.data + payload.size); |
| 49 | } |
| 50 | return bytes; |
| 51 | } |
| 52 | |
| 53 | // Idempotent lazy closure that replays the same PayloadView on every read. |
| 54 | // Anchor-bearing payload: captures the anchor so the buffer lives for the |
no outgoing calls
no test coverage detected