Lines Matching refs:block
57 void ExtentRanges::AddBlock(uint64_t block) {
58 AddExtent(ExtentForRange(block, 1));
61 void ExtentRanges::SubtractBlock(uint64_t block) {
62 SubtractExtent(ExtentForRange(block, 1));
195 bool ExtentRanges::ContainsBlock(uint64_t block) const {
196 auto lower = extent_set_.lower_bound(ExtentForRange(block, 1));
197 // The block could be on the extent before the one in |lower|.
200 // Any extent starting at block+1 or later is not interesting, so this is the
202 auto upper = extent_set_.lower_bound(ExtentForRange(block + 1, 0));
204 if (iter->start_block() <= block &&
205 block < iter->start_block() + iter->num_blocks()) {