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

Function cells_alloc

internal/cbm/sqlite_writer.c:482–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480static CBM_TLS CBMArena *tl_cells_arena;
481
482static uint8_t *cells_alloc(size_t bytes) {
483 if (tl_cells_arena) {
484 return (uint8_t *)cbm_arena_alloc(tl_cells_arena, bytes);
485 }
486 return (uint8_t *)malloc(bytes);
487}
488
489static void cells_free(uint8_t *cell) {
490 if (!tl_cells_arena) {

Callers 2

rec_finalize_index_cellFunction · 0.85
overflowize_index_cellFunction · 0.85

Calls 1

cbm_arena_allocFunction · 0.70

Tested by

no test coverage detected