MCPcopy Create free account
hub / github.com/antirez/ds4 / agent_tool_pid

Function agent_tool_pid

ds4_agent.c:7131–7133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7129 memcpy(out + offset, insert, insert_len);
7130 memcpy(out + offset + insert_len, data + offset + remove_len,
7131 len - offset - remove_len);
7132 out[out_len] = '\0';
7133
7134 int rc = agent_write_file_bytes(path, out, out_len, err, sizeof(err));
7135 if (rc != 0) {
7136 free(out);

Callers 1

agent_execute_tool_callFunction · 0.85

Calls 2

agent_parse_int_defaultFunction · 0.85
agent_tool_arg_valueFunction · 0.85

Tested by

no test coverage detected