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

Function application_text_copy

src/daemon/application.c:351–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349}
350
351static char *application_text_copy(const uint8_t *bytes, uint32_t length) {
352 if (!bytes || length == 0 || memchr(bytes, '\0', length) != NULL) {
353 return NULL;
354 }
355 char *copy = malloc((size_t)length + 1U);
356 if (copy) {
357 memcpy(copy, bytes, length);
358 copy[length] = '\0';
359 }
360 return copy;
361}
362
363static bool application_regular_db_exists(const char *project) {
364 const char *cache = cbm_resolve_cache_dir();

Callers 4

application_set_contextFunction · 0.85
application_mcp_requestFunction · 0.85
application_tool_requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected