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

Function sem_batch_tokenize

src/pipeline/pass_semantic_edges.c:1807–1812  ·  view source on GitHub ↗

One batch of the token phases: tokenize functions [first, first+count) into * a fresh packed array the caller frees with sem_batch_free_tokens(). */

Source from the content-addressed store, hash-verified

1805/* One batch of the token phases: tokenize functions [first, first+count) into
1806 * a fresh packed array the caller frees with sem_batch_free_tokens(). */
1807static void sem_batch_tokenize(const cbm_gbuf_node_t **node_ptrs, cbm_gbuf_t *gbuf, int first,
1808 int count, int worker_count, CBMHashTable **pools, int *token_counts,
1809 char ***out_tokens, size_t **out_offsets) {
1810 phase2_tokenize(node_ptrs + first, gbuf, out_tokens, out_offsets, token_counts + first, count,
1811 worker_count, pools);
1812}
1813
1814static void sem_batch_free_tokens(char **tokens, size_t *offsets) {
1815 cbm_free(CBM_MEM_CLASS_SEMANTIC, tokens);

Callers 1

run_token_phases_batchedFunction · 0.85

Calls 1

phase2_tokenizeFunction · 0.85

Tested by

no test coverage detected