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

Function profile_buffer_append

src/cli/agent_profiles.c:115–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115static bool profile_buffer_append(profile_buffer_t *buffer, const char *text) {
116 if (!text) {
117 buffer->failed = true;
118 return false;
119 }
120 size_t length = strlen(text);
121 if (!profile_buffer_reserve(buffer, length)) {
122 return false;
123 }
124 memcpy(buffer->data + buffer->length, text, length);
125 buffer->length += length;
126 buffer->data[buffer->length] = '\0';
127 return true;
128}
129
130static char *profile_buffer_finish(profile_buffer_t *buffer) {
131 if (buffer->failed) {

Callers 8

cbm_render_graph_promptFunction · 0.85
append_yaml_mcp_toolsFunction · 0.85
append_csv_mcp_toolsFunction · 0.85
append_toml_mcp_toolsFunction · 0.85
append_yaml_identityFunction · 0.85
append_codex_profileFunction · 0.85
render_profile_textFunction · 0.85

Calls 1

profile_buffer_reserveFunction · 0.85

Tested by

no test coverage detected