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

Function ta_hex

src/mcp/test_impact_engine_artifact.c:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27enum { TA_FILE_MAX = 512 << 20 };
28
29static void ta_hex(const unsigned char bytes[32], char hex[65]) {
30 static const char digits[] = "0123456789abcdef";
31 for (int i = 0; i < 32; i++) {
32 hex[2 * i] = digits[bytes[i] >> 4];
33 hex[2 * i + 1] = digits[bytes[i] & 15];
34 }
35 hex[64] = '\0';
36}
37
38static bool ta_unhex(const char *hex, unsigned char bytes[32]) {
39 if (!hex || strlen(hex) != 64) {

Callers 2

te_db_digestFunction · 0.70
te_db_content_digestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected