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

Function posix_u32_encode

src/daemon/ipc.c:2225–2230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2223}
2224
2225static void posix_u32_encode(uint8_t out[4], uint32_t value) {
2226 out[0] = (uint8_t)(value & 0xffU);
2227 out[1] = (uint8_t)((value >> 8U) & 0xffU);
2228 out[2] = (uint8_t)((value >> 16U) & 0xffU);
2229 out[3] = (uint8_t)((value >> 24U) & 0xffU);
2230}
2231
2232static uint32_t posix_u32_decode(const uint8_t in[4]) {
2233 return (uint32_t)in[0] | ((uint32_t)in[1] << 8U) | ((uint32_t)in[2] << 16U) |

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected