(start_block_id: usize, blocks: usize)
| 19 | |
| 20 | impl Bitmap { |
| 21 | pub fn new(start_block_id: usize, blocks: usize) -> Self { |
| 22 | Self { |
| 23 | start_block_id, |
| 24 | blocks, |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | pub fn alloc(&self, block_device: &Arc<dyn BlockDevice>) -> Option<usize> { |
| 29 | for block_id in 0..self.blocks { |
nothing calls this directly
no outgoing calls
no test coverage detected