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

Function varint_len

internal/cbm/sqlite_writer.c:214–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214static int varint_len(int64_t value) {
215 uint64_t v = (uint64_t)value;
216 int n = VARINT_MIN_LEN;
217 while (v > VARINT_MASK) {
218 v >>= VARINT_SHIFT;
219 n++;
220 }
221 return n;
222}
223
224// SQLite serial type for a TEXT value
225static int64_t text_serial_type(int len) {

Callers 6

rec_total_headerFunction · 0.85
rec_finalize_index_cellFunction · 0.85
build_table_cellFunction · 0.85
write_db_after_nodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected