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

Function pv2_append

tests/test_test_impact_profiles.c:467–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465typedef struct { char *data; size_t used; size_t capacity; } pv2_buffer_t;
466
467static bool pv2_append(pv2_buffer_t *buffer, const char *text, size_t size) {
468 if (size > buffer->capacity - buffer->used)
469 return false;
470 memcpy(buffer->data + buffer->used, text, size);
471 buffer->used += size;
472 return true;
473}
474
475static bool pv2_stress_input(CBMArena *arena, pv2_buffer_t *profiles, pv2_buffer_t *tests) {
476 const size_t name_size = 70000;

Callers 1

pv2_stress_inputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected