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

Function cif_windows_encoding

src/discover/inventory_metadata.c:14–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13#ifdef _WIN32
14static bool cif_windows_encoding(cif_context *c, const char *path, size_t length) {
15 wchar_t wide[CIF_PATH_MAX + 1];
16 char roundtrip[CIF_PATH_MAX + 1];
17 if (!cif_poll(c)) {
18 return false;
19 }
20 cbm_path_syntax_result_t s = cbm_path_windows_roundtrip(path, length, wide, CIF_PATH_MAX + 1,
21 roundtrip, sizeof(roundtrip));
22 if (s != CBM_PATH_SYNTAX_OK) {
23 return cif_fail(c, CBM_INVENTORY_UNSUPPORTED);
24 }
25 return cif_poll(c);
26}
27
28static bool cif_device_root(const unsigned char *root, size_t n) {
29 if (n < 4) {

Callers 2

cif_rootFunction · 0.85
cif_file_pathFunction · 0.85

Calls 3

cif_pollFunction · 0.85
cif_failFunction · 0.85

Tested by

no test coverage detected