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

Function application_text_copy

src/daemon/application.c:350–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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