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

Function tpt_equal

src/mcp/test_impact_tree_util.c:106–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106bool tpt_equal(tpt_context *c, const void *a, const void *b, size_t n) {
107 const unsigned char *x = a, *y = b;
108 while (n) {
109 size_t chunk = n > TPT_CHUNK ? TPT_CHUNK : n;
110 if (!tpt_poll(c) || memcmp(x, y, chunk))
111 return false;
112 x += chunk;
113 y += chunk;
114 n -= chunk;
115 }
116 return true;
117}
118
119bool tpt_length(tpt_context *c, const char *s, size_t max, size_t *out) {
120 if (!s)

Callers 8

tpt_stream_chunkFunction · 0.85
tpt_read_streamFunction · 0.85
tpt_entryFunction · 0.85
tpt_inventory_rowFunction · 0.85
tpt_prefix_newFunction · 0.85
tpt_find_directoryFunction · 0.85
tpt_batch_rowFunction · 0.85
tpt_batchFunction · 0.85

Calls 1

tpt_pollFunction · 0.85

Tested by

no test coverage detected