Lines Matching refs:extent
108 bool IsBitExtentInExtent(const Extent& extent, const BitExtent& bit_extent) { in IsBitExtentInExtent() argument
109 return (bit_extent.offset / 8) >= (extent.start_block() * kBlockSize) && in IsBitExtentInExtent()
111 ((extent.start_block() + extent.num_blocks()) * kBlockSize); in IsBitExtentInExtent()
125 ByteExtent ExpandToByteExtent(const BitExtent& extent) { in ExpandToByteExtent() argument
126 uint64_t offset = extent.offset / 8; in ExpandToByteExtent()
127 uint64_t length = ((extent.offset + extent.length + 7) / 8) - offset; in ExpandToByteExtent()
220 for (const auto& extent : extents) { in FindDeflates() local
221 if (IsBitExtentInExtent(extent, deflate)) { in FindDeflates()
235 for (const auto& extent : extents) { in CompactDeflates() local
236 size_t gap_bytes = extent.start_block() * kBlockSize - bytes_passed; in CompactDeflates()
238 if (IsBitExtentInExtent(extent, deflate)) { in CompactDeflates()
243 bytes_passed += extent.num_blocks() * kBlockSize; in CompactDeflates()