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

Method idx

src/models/lru_cache.rs:40–42  ·  view source on GitHub ↗
(counter: u32)

Source from the content-addressed store, hash-verified

38 }
39
40 fn idx(counter: u32) -> usize {
41 counter as usize % 256
42 }
43
44 fn is_empty(&self, idx: usize) -> bool {
45 self.inner[idx].load(Ordering::SeqCst) == u64::MAX

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected