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

Function dynbuf_init_inline

internal/cbm/sqlite_writer.c:312–317  ·  view source on GitHub ↗

Start on caller-provided space (a record builder's stack array). Growth past * it moves to the heap once; a buffer that never outgrows it never allocates. */

Source from the content-addressed store, hash-verified

310/* Start on caller-provided space (a record builder's stack array). Growth past
311 * it moves to the heap once; a buffer that never outgrows it never allocates. */
312static void dynbuf_init_inline(DynBuf *b, uint8_t *space, int cap) {
313 b->data = space;
314 b->len = 0;
315 b->cap = cap;
316 b->heap = false;
317}
318
319static bool dynbuf_ensure(DynBuf *b, int needed) {
320 if (b->len + needed <= b->cap) {

Callers 1

rec_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected