MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / trace_cursor_encode

Function trace_cursor_encode

src/mcp/mcp.c:9371–9374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9369}
9370
9371static void trace_cursor_encode(const trace_cursor_t *c, char *buf, size_t bufsz) {
9372 snprintf(buf, bufsz, "c1.%c.%s.%016llx.%d.%lld", c->leg, c->generation,
9373 (unsigned long long)c->qhash, c->hop, (long long)c->node_id);
9374}
9375
9376/* Decode + validate. Returns NULL on success, else a static teaching error. */
9377static const char *trace_cursor_decode(const char *token, const char *current_generation,

Callers 1

handle_trace_call_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected