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

Function application_text_copy

src/daemon/application.c:430–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428}
429
430static char *application_text_copy(const uint8_t *bytes, uint32_t length) {
431 if (!bytes || length == 0 || memchr(bytes, '\0', length) != NULL) {
432 return NULL;
433 }
434 char *copy = malloc((size_t)length + 1U);
435 if (copy) {
436 memcpy(copy, bytes, length);
437 copy[length] = '\0';
438 }
439 return copy;
440}
441
442static bool application_regular_db_exists(const char *project) {
443 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