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

Function put_u16

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

Write a 2-byte big-endian value

Source from the content-addressed store, hash-verified

286
287// Write a 2-byte big-endian value
288static void put_u16(uint8_t *buf, uint16_t val) {
289 buf[0] = (uint8_t)(val >> SHIFT_8);
290 buf[SKIP_ONE] = (uint8_t)(val & BYTE_MASK);
291}
292
293// Write a 4-byte big-endian value
294static 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