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

Function pt_hash

tests/test_test_impact_tree.c:771–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

769}
770
771static void pt_hash(const void *bytes, size_t length, unsigned char out[32]) {
772 cbm_sha256_ctx hash;
773 cbm_sha256_init(&hash);
774 cbm_sha256_update(&hash, bytes, length);
775 cbm_sha256_final(&hash, out);
776}
777
778static bool pt_view_matches(pt_fixture *fx, const cbm_pinned_tree_view_t *view, bool ancestor) {
779 if (!view || view->file_count != fx->count || view->directory_count != 2 ||

Callers 2

pt_view_matchesFunction · 0.85
pt_expected_digestFunction · 0.85

Calls 3

cbm_sha256_initFunction · 0.85
cbm_sha256_updateFunction · 0.85
cbm_sha256_finalFunction · 0.85

Tested by

no test coverage detected