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

Function write_all

src/foundation/mem_events.c:1810–1824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1808}
1809
1810static bool write_all(int fd, const char *buf, size_t len) {
1811 while (len > 0) {
1812#ifdef _WIN32
1813 int put = _write(fd, buf, (unsigned)len);
1814#else
1815 ssize_t put = write(fd, buf, len);
1816#endif
1817 if (put <= 0) {
1818 return false;
1819 }
1820 buf += put;
1821 len -= (size_t)put;
1822 }
1823 return true;
1824}
1825
1826#if defined(__linux__)
1827static int first_object_bias(struct dl_phdr_info *info, size_t size, void *out) {

Callers 1

dump_lockedFunction · 0.85

Calls 1

writeFunction · 0.70

Tested by

no test coverage detected