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

Function varint_len

internal/cbm/sqlite_writer.c:211–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 9

rec_finalizeFunction · 0.85
build_table_cellFunction · 0.85
ecell_url_pathFunction · 0.85
write_db_after_nodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected