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

Function cbm_ac_table_bytes

internal/cbm/ac.c:423–428  ·  view source on GitHub ↗

cbm_ac_table_bytes returns the approximate memory used by the goto table.

Source from the content-addressed store, hash-verified

421
422// cbm_ac_table_bytes returns the approximate memory used by the goto table.
423int cbm_ac_table_bytes(const CBMAutomaton *ac) {
424 if (!ac) {
425 return 0;
426 }
427 return ac->num_states * ac->alpha_size * (int)sizeof(int);
428}

Callers 1

test_ac.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected