MCPcopy Create free account
hub / github.com/NationalSecurityAgency/TraceAnalysis / resolve

Method resolve

dynamic-dataflow/core/src/seqcache.rs:164–171  ·  view source on GitHub ↗
(&self, index: Index)

Source from the content-addressed store, hash-verified

162
163 #[inline]
164 pub fn resolve(&self, index: Index) -> Option<&[T]> {
165 let index = index.to_usize();
166 let (from, to) = self.ends.get(index).copied().map(|to| {
167 let from = self.ends.get(index.wrapping_sub(1)).copied().unwrap_or(0);
168 (from, to)
169 })?;
170 Some(&self.buffer[from..to])
171 }
172}
173
174#[inline]

Callers 1

conf.pyFile · 0.45

Calls 3

to_usizeMethod · 0.80
mapMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected