Searched refs:GetBlockNumber (Results 1 – 5 of 5) sorted by relevance
206 TEST(RangeSetTest, GetBlockNumber) { in TEST() argument208 ASSERT_EQ(static_cast<size_t>(1), rs.GetBlockNumber(0)); in TEST()209 ASSERT_EQ(static_cast<size_t>(6), rs.GetBlockNumber(5)); in TEST()210 ASSERT_EQ(static_cast<size_t>(9), rs.GetBlockNumber(8)); in TEST()214 ASSERT_EXIT(rs.GetBlockNumber(9), ::testing::KilledBySignal(SIGABRT), ""); in TEST()
46 size_t GetBlockNumber(size_t idx) const;
365 size_t block_num = ranges_.GetBlockNumber(i); in DumpBuffer()366 size_t buffer_index = location.GetBlockNumber(i); in DumpBuffer()
601 size_t block_num = src.GetBlockNumber(i); in PrintHashForCorruptedSourceBlocks()602 size_t buffer_index = locs.GetBlockNumber(i); in PrintHashForCorruptedSourceBlocks()621 size_t block_num = src.GetBlockNumber(i); in PrintHashForCorruptedStashedBlocks()1569 uint64_t write_offset = static_cast<uint64_t>(hash_tree_ranges.GetBlockNumber(0)) * BLOCKSIZE; in PerformCommandComputeHashTree()
159 size_t RangeSet::GetBlockNumber(size_t idx) const { in GetBlockNumber() function in RangeSet