Searched refs:sorted_prefixes (Results 1 – 4 of 4) sorted by relevance
42 PrefixSet::PrefixSet(const std::vector<SBPrefix>& sorted_prefixes) { in PrefixSet() argument43 if (sorted_prefixes.size()) { in PrefixSet()47 const size_t min_runs = sorted_prefixes.size() / kMaxRun; in PrefixSet()49 deltas_.reserve(sorted_prefixes.size() - min_runs); in PrefixSet()52 SBPrefix prev_prefix = sorted_prefixes[0]; in PrefixSet()56 for (size_t i = 1; i < sorted_prefixes.size(); ++i) { in PrefixSet()58 if (sorted_prefixes[i] == prev_prefix) in PrefixSet()63 DCHECK_GT(sorted_prefixes[i], prev_prefix); in PrefixSet()64 const unsigned delta = sorted_prefixes[i] - prev_prefix; in PrefixSet()70 index_.push_back(std::make_pair(sorted_prefixes[i], deltas_.size())); in PrefixSet()[all …]
64 explicit PrefixSet(const std::vector<SBPrefix>& sorted_prefixes);
42 PrefixSet::PrefixSet(const std::vector<SBPrefix>& sorted_prefixes) { in PrefixSet() argument43 if (sorted_prefixes.size()) { in PrefixSet()45 SBPrefix prev_prefix = sorted_prefixes[0]; in PrefixSet()53 uint32 checksum = static_cast<uint32>(sorted_prefixes[0]); in PrefixSet()56 for (size_t i = 1; i < sorted_prefixes.size(); ++i) { in PrefixSet()58 if (sorted_prefixes[i] == prev_prefix) in PrefixSet()63 DCHECK_GT(sorted_prefixes[i], prev_prefix); in PrefixSet()64 const unsigned delta = sorted_prefixes[i] - prev_prefix; in PrefixSet()70 checksum ^= static_cast<uint32>(sorted_prefixes[i]); in PrefixSet()72 index_.push_back(std::make_pair(sorted_prefixes[i], deltas_.size())); in PrefixSet()[all …]
63 explicit PrefixSet(const std::vector<SBPrefix>& sorted_prefixes);