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

Function text_bom_length

src/cli/config_text_edit.c:1006–1009  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1004}
1005
1006static size_t text_bom_length(const char *data, size_t len) {
1007 static const unsigned char bom[] = {0xefU, 0xbbU, 0xbfU};
1008 return len >= sizeof(bom) && memcmp(data, bom, sizeof(bom)) == 0 ? sizeof(bom) : 0U;
1009}
1010
1011static int text_validate_markers(const char *begin_marker, const char *end_marker,
1012 size_t *begin_len, size_t *end_len) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected