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

Function posix_u64_encode

src/daemon/ipc.c:2237–2241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2235}
2236
2237static void posix_u64_encode(uint8_t out[8], uint64_t value) {
2238 for (size_t index = 0; index < 8; index++) {
2239 out[index] = (uint8_t)(value >> (index * 8U));
2240 }
2241}
2242
2243static uint64_t posix_u64_decode(const uint8_t in[8]) {
2244 uint64_t value = 0;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected