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

Function toml_buffer_append

src/cli/config_toml_edit.c:196–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196static int toml_buffer_append(toml_buffer_t *buffer, const char *data, size_t len) {
197 if ((!data && len != 0) || toml_buffer_reserve(buffer, len) != TOML_EDIT_OK) {
198 return TOML_EDIT_ERR;
199 }
200 if (len != 0) {
201 memcpy(buffer->data + buffer->len, data, len);
202 buffer->len += len;
203 }
204 buffer->data[buffer->len] = '\0';
205 return TOML_EDIT_OK;
206}
207
208static int toml_buffer_append_char(toml_buffer_t *buffer, char value) {
209 return toml_buffer_append(buffer, &value, 1);

Callers 15

toml_buffer_append_charFunction · 0.85
toml_buffer_append_cstrFunction · 0.85
toml_remove_managedFunction · 0.85
toml_append_codepointFunction · 0.85
toml_parse_key_pathFunction · 0.85
toml_append_user_linesFunction · 0.85
toml_managed_span_passFunction · 0.85
toml_managed_rewriteFunction · 0.85
toml_append_body_entryFunction · 0.85
toml_merge_named_tableFunction · 0.85

Calls 1

toml_buffer_reserveFunction · 0.85

Tested by

no test coverage detected