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

Function bitbag_create

util1.c:1647–1655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1645};
1646
1647struct bitbag *bitbag_create(int max_ndx)
1648{
1649 struct bitbag *bb = new(struct bitbag);
1650 bb->slot_cnt = (max_ndx + BB_PER_SLOT_BITS - 1) / BB_PER_SLOT_BITS;
1651
1652 bb->bits = new_array0(uint32*, bb->slot_cnt);
1653
1654 return bb;
1655}
1656
1657void bitbag_set_bit(struct bitbag *bb, int ndx)
1658{

Callers 1

recv_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected