flushing bitfield
This commit is contained in:
parent
bc9e72df60
commit
2fee0ca8c2
4 changed files with 54 additions and 12 deletions
|
|
@ -185,6 +185,10 @@ impl ChunkTracker {
|
|||
&*self.have
|
||||
}
|
||||
|
||||
pub fn get_have_pieces_mut(&mut self) -> &mut dyn BitV {
|
||||
&mut *self.have
|
||||
}
|
||||
|
||||
pub fn reserve_needed_piece(&mut self, index: ValidPieceIndex) {
|
||||
self.queue_pieces.set(index.get() as usize, false)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue