#include <chunkcounter.h>
- Author
- Joris Guisson
Class to keep track of how many peers have a chunk.
Definition at line 53 of file chunkcounter.h.
◆ dec()
void bt::ChunkCounter::dec |
( |
Uint32 |
idx | ) |
|
Decrement the counter for the idx'th chunk
- Parameters
-
◆ decBitSet()
void bt::ChunkCounter::decBitSet |
( |
const BitSet & |
bs | ) |
|
If a bit in the bitset is one, decrement the corresponding counter.
- Parameters
-
◆ get()
Uint32 bt::ChunkCounter::get |
( |
Uint32 |
idx | ) |
const |
Get the counter for the idx'th chunk
- Parameters
-
◆ inc()
void bt::ChunkCounter::inc |
( |
Uint32 |
idx | ) |
|
Increment the counter for the idx'th chunk
- Parameters
-
◆ incBitSet()
void bt::ChunkCounter::incBitSet |
( |
const BitSet & |
bs | ) |
|
If a bit in the bitset is one, increment the corresponding counter.
- Parameters
-
◆ reset()
void bt::ChunkCounter::reset |
( |
| ) |
|
The documentation for this class was generated from the following file: