Skip to main content

hash_map_order

Function hash_map_order 

Source
pub fn hash_map_order(hashes: &[u32]) -> Vec<usize>
Expand description

Returns the order the games list a hash map in (string tables, AI object maps): the map keeps entries at the end of their bucket and grows to 2n + 1 buckets (moving entries bucket by bucket) when it holds more entries than buckets.

§Arguments

  • hashes - Hash of each entry, in the order they were added.

§Returns

The indexes of the entries, in map order.