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

Function runtime_activation_response_encode

src/daemon/runtime.c:482–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482static bool runtime_activation_response_encode(
483 uint8_t out[CBM_DAEMON_ACTIVATION_SHUTDOWN_RESPONSE_SIZE],
484 const cbm_daemon_runtime_activation_result_t *result) {
485 if (!out || !result) {
486 return false;
487 }
488 memset(out, 0, CBM_DAEMON_ACTIVATION_SHUTDOWN_RESPONSE_SIZE);
489 runtime_put_u32(out + ACTIVATION_RESPONSE_ABI_OFFSET, CBM_DAEMON_RENDEZVOUS_ABI);
490 runtime_put_u32(out + ACTIVATION_RESPONSE_ACCEPTED_OFFSET, result->accepted ? 1U : 0U);
491 runtime_put_u64(out + ACTIVATION_RESPONSE_CLIENTS_OFFSET, result->active_clients);
492 runtime_put_u64(out + ACTIVATION_RESPONSE_CONNECTIONS_OFFSET, result->active_connections);
493 return true;
494}
495
496static bool runtime_activation_response_decode(
497 const uint8_t payload[CBM_DAEMON_ACTIVATION_SHUTDOWN_RESPONSE_SIZE],

Calls 2

runtime_put_u32Function · 0.85
runtime_put_u64Function · 0.85

Tested by

no test coverage detected