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

Function itoa_log

src/pipeline/pass_parallel.c:342–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342static const char *itoa_log(int val) {
343 static CBM_TLS char bufs[PP_RING][CBM_SZ_32];
344 static CBM_TLS int idx = 0;
345 int i = idx;
346 idx = (idx + SKIP_ONE) & PP_RING_MASK;
347 snprintf(bufs[i], sizeof(bufs[i]), "%d", val);
348 return bufs[i];
349}
350
351/* Append a JSON-escaped string value to buf at position *pos. */
352/* Escape one character for JSON. Returns bytes written (1 or 2). */

Callers 13

log_extract_failFunction · 0.70
log_extract_doneFunction · 0.70
pp_spill_enterFunction · 0.70
cbm_pipeline_spill_closeFunction · 0.70
pp_spill_sweepFunction · 0.70
pp_charge_probeFunction · 0.70
extract_workerFunction · 0.70
log_extract_mem_statsFunction · 0.70
cbm_parallel_extract_exFunction · 0.70
resolve_workerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected