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

Function cbm_json_writer_allocator

src/foundation/json_writer.h:28–32  ·  view source on GitHub ↗

Pass this allocator to yyjson_write_opts or yyjson_mut_write_opts. The * resulting string must be released with cbm_free(CBM_MEM_CLASS_OTHER, ...). * The document itself retains whichever allocator created it. */

Source from the content-addressed store, hash-verified

26 * resulting string must be released with cbm_free(CBM_MEM_CLASS_OTHER, ...).
27 * The document itself retains whichever allocator created it. */
28static inline const yyjson_alc *cbm_json_writer_allocator(void) {
29 static const yyjson_alc allocator = {cbm_json_writer_malloc, cbm_json_writer_realloc,
30 cbm_json_writer_free, NULL};
31 return &allocator;
32}
33
34#endif /* CBM_JSON_WRITER_H */

Callers 15

snapshotFunction · 0.85
error_jsonFunction · 0.85
envelopeFunction · 0.85
handle_ingest_tracesFunction · 0.85
cbm_atlas_why_jsonFunction · 0.85
cbm_atlas_flows_jsonFunction · 0.85
cbm_atlas_flow_jsonFunction · 0.85
cbm_atlas_trace_jsonFunction · 0.85
cbm_atlas_impact_jsonFunction · 0.85
handle_project_healthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected