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

Method key_at

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

Source from the content-addressed store, hash-verified

80 assert!(p != libc::MAP_FAILED, "HugeVec mmap failed");
81 // Advisory only: failure (old kernel, THP disabled) is harmless.
82 libc::madvise(p, bytes, libc::MADV_HUGEPAGE);
83 p.cast::<T>()
84 };
85 Self { ptr, cap, len: 0 }
86 }
87

Callers 3

get_index_ofMethod · 0.80
get_indexMethod · 0.80
iterMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected