MCPcopy Create free account
hub / github.com/RsyncProject/rsync / send_one_name

Function send_one_name

uidlist.c:373–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371}
372
373static void send_one_name(int f, id_t id, const char *name)
374{
375 int len;
376
377 if (!name)
378 name = "";
379 if ((len = strlen(name)) > 255) /* Impossible? */
380 len = 255;
381
382 write_varint30(f, id);
383 write_byte(f, len);
384 if (len)
385 write_buf(f, name, len);
386}
387
388static void send_one_list(int f, struct idlist *idlist, int usernames)
389{

Callers 1

send_one_listFunction · 0.85

Calls 3

write_varint30Function · 0.85
write_byteFunction · 0.85
write_bufFunction · 0.85

Tested by

no test coverage detected