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

Function put_u32

internal/cbm/sqlite_writer.c:291–296  ·  view source on GitHub ↗

Write a 4-byte big-endian value

Source from the content-addressed store, hash-verified

289
290// Write a 4-byte big-endian value
291static void put_u32(uint8_t *buf, uint32_t val) {
292 buf[0] = (uint8_t)(val >> SHIFT_24);
293 buf[SKIP_ONE] = (uint8_t)(val >> SHIFT_16);
294 buf[PAIR_LEN] = (uint8_t)(val >> SHIFT_8);
295 buf[SERIAL_SIZE_INT24] = (uint8_t)(val & BYTE_MASK);
296}
297
298// --- Dynamic buffer ---
299

Callers 6

build_interior_cellFunction · 0.85
write_interior_pageFunction · 0.85
write_overflow_pagesFunction · 0.85
overflowize_index_cellFunction · 0.85
write_sqlite_file_headerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected