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

Function put_u16

internal/cbm/sqlite_writer.c:285–288  ·  view source on GitHub ↗

Write a 2-byte big-endian value

Source from the content-addressed store, hash-verified

283
284// Write a 2-byte big-endian value
285static void put_u16(uint8_t *buf, uint16_t val) {
286 buf[0] = (uint8_t)(val >> SHIFT_8);
287 buf[SKIP_ONE] = (uint8_t)(val & BYTE_MASK);
288}
289
290// Write a 4-byte big-endian value
291static void put_u32(uint8_t *buf, uint32_t val) {

Callers 8

pb_flush_leafFunction · 0.85
pb_add_cellFunction · 0.85
write_interior_pageFunction · 0.85
fill_interior_pageFunction · 0.85
write_table_btreeFunction · 0.85
write_empty_index_leafFunction · 0.85
write_sqlite_file_headerFunction · 0.85
write_master_page1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected