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

Function put_u32

internal/cbm/sqlite_writer.c:294–299  ·  view source on GitHub ↗

Write a 4-byte big-endian value

Source from the content-addressed store, hash-verified

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

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