Searched refs:GetBlockNumber (Results 1 – 5 of 5) sorted by relevance
207 TEST(RangeSetTest, GetBlockNumber) { in TEST() argument209 ASSERT_EQ(static_cast<size_t>(1), rs.GetBlockNumber(0)); in TEST()210 ASSERT_EQ(static_cast<size_t>(6), rs.GetBlockNumber(5)); in TEST()211 ASSERT_EQ(static_cast<size_t>(9), rs.GetBlockNumber(8)); in TEST()215 ASSERT_EXIT(rs.GetBlockNumber(9), ::testing::KilledBySignal(SIGABRT), ""); in TEST()
47 size_t GetBlockNumber(size_t idx) const;
364 size_t block_num = ranges_.GetBlockNumber(i); in DumpBuffer()365 size_t buffer_index = location.GetBlockNumber(i); in DumpBuffer()
606 size_t block_num = src.GetBlockNumber(i); in PrintHashForCorruptedSourceBlocks()607 size_t buffer_index = locs.GetBlockNumber(i); in PrintHashForCorruptedSourceBlocks()626 size_t block_num = src.GetBlockNumber(i); in PrintHashForCorruptedStashedBlocks()1574 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