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

Function cv2_image

src/mcp/test_impact_coverage.c:841–853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

839}
840
841static bool cv2_image(cv2_context_t *ctx, cv2_span_t span) {
842 if (span.length != 64)
843 return cv2_fail(ctx, CBM_COVERAGE_PARSE_FORMAT);
844 for (size_t i = 0; i < span.length; i++) {
845 if (!cv2_step(ctx))
846 return false;
847 if (cv2_hex_digit(span.data[i]) < 0)
848 return cv2_fail(ctx, CBM_COVERAGE_PARSE_FORMAT);
849 ctx->binding.image_sha256[i] = (char)span.data[i];
850 }
851 ctx->binding.image_sha256[64] = '\0';
852 return true;
853}
854
855static bool cv2_header(cv2_context_t *ctx, cv2_span_t profiles) {
856 cv2_span_t fields[4];

Callers 1

cv2_headerFunction · 0.85

Calls 3

cv2_failFunction · 0.85
cv2_stepFunction · 0.85
cv2_hex_digitFunction · 0.85

Tested by

no test coverage detected