MCPcopy Create free account
hub / github.com/argumentcomputer/ix / get_index

Method get_index

crates/aiur/src/querymap.rs:145–153  ·  view source on GitHub ↗
(&self, i: usize)

Source from the content-addressed store, hash-verified

143 unsafe {
144 libc::munmap(self.ptr.cast(), self.cap * size_of::<T>());
145 }
146 }
147}
148
149/// Append-only segmented arena of fixed-stride `G` entries. Entry `i` lives
150/// at segment `i >> SEG_BITS`, offset `(i & SEG_MASK) * stride` — no entry
151/// ever straddles a segment.
152struct SegStore {
153 stride: usize,
154 segs: Vec<HugeVec<G>>,
155 entries: usize,
156}

Callers 5

read_klimbs_u64Function · 0.80
populate_rowMethod · 0.80
witness_dataMethod · 0.80

Calls 3

key_atMethod · 0.80
out_atMethod · 0.80
lenMethod · 0.45

Tested by 2