MCPcopy Index your code
hub / github.com/RsyncProject/rsync / write_bigbuf

Function write_bigbuf

io.c:2242–2253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2240}
2241
2242void write_bigbuf(int f, const char *buf, size_t len)
2243{
2244 size_t half_max = (iobuf.out.size - iobuf.out_empty_len) / 2;
2245
2246 while (len > half_max + 1024) {
2247 write_buf(f, buf, half_max);
2248 buf += half_max;
2249 len -= half_max;
2250 }
2251
2252 write_buf(f, buf, len);
2253}
2254
2255void write_buf(int f, const char *buf, size_t len)
2256{

Callers 2

send_xattrFunction · 0.85
send_xattr_requestFunction · 0.85

Calls 1

write_bufFunction · 0.85

Tested by

no test coverage detected