MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / get

Method get

cranelift/codegen/src/ranges.rs:52–57  ·  view source on GitHub ↗

Get the range at the specified index.

(&self, index: usize)

Source from the content-addressed store, hash-verified

50
51 /// Get the range at the specified index.
52 pub fn get(&self, index: usize) -> Range<usize> {
53 let len = self.len();
54 assert!(index < len, "index {index} is too big for length {len}");
55 let index = self.map_index(index);
56 self.ranges[index] as usize..self.ranges[index + 1] as usize
57 }
58
59 /// Visit ranges in unspecified order, paired with the index each
60 /// range occurs at.

Callers 14

descriptionMethod · 0.45
monotonic_instantFunction · 0.45
harvest_candidate_lhsFunction · 0.45
inline_oneFunction · 0.45
map_constantMethod · 0.45
write_operandsFunction · 0.45
write_debug_tagsFunction · 0.45
compile_with_cacheMethod · 0.45
block_starting_stateMethod · 0.45
process_instMethod · 0.45
addMethod · 0.45

Calls 2

lenMethod · 0.45
map_indexMethod · 0.45

Tested by

no test coverage detected