MCPcopy Create free account
hub / github.com/cosdata/cosdata / new

Method new

org/src/performant_fixed_set.rs:10–15  ·  view source on GitHub ↗
(static_random: u32)

Source from the content-addressed store, hash-verified

8
9impl PerformantFixedSet {
10 fn new(static_random: u32) -> Self {
11 PerformantFixedSet {
12 static_random,
13 buckets: [0; 64]
14 }
15 }
16
17 fn get_bucket_index(&self, value: u32) -> usize {
18 ((value ^ self.static_random) % 64) as usize

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected