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

Function pt_write

tests/test_test_impact_tree.c:158–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158static bool pt_write(const char *path, const void *bytes, size_t length) {
159 FILE *file = cbm_fopen(path, "wb");
160 if (!file)
161 return false;
162 bool ok = fwrite(bytes, 1, length, file) == length;
163 return fclose(file) == 0 && ok;
164}
165
166static bool pt_equal_file(const char *path, const void *bytes, size_t length) {
167 FILE *file = cbm_fopen(path, "rb");

Callers 12

pt_objectFunction · 0.85
pt_initFunction · 0.85
pt_pinned_roundFunction · 0.85
pt_short_alias_caseFunction · 0.85
pt_mutation_caseFunction · 0.85
pt_link_caseFunction · 0.85
pt_root_replacement_caseFunction · 0.85
pt_retry_prepareFunction · 0.85
ptr_content_caseFunction · 0.85
ptr_file_identity_caseFunction · 0.85
ptr_ancestor_replacementFunction · 0.85

Calls 2

cbm_fopenFunction · 0.85
fwriteFunction · 0.85

Tested by

no test coverage detected