MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / copyPayloadBytes

Function copyPayloadBytes

pj_runtime/src/DataSourceRuntimeHost.cpp:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43Q_LOGGING_CATEGORY(lcIngest, "pj.runtime.ingest")
44
45std::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

Callers 2

makeLazyFetchClosureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected