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

Method take

crates/aiur/src/vk_codec.rs:226–234  ·  view source on GitHub ↗
(&mut self, n: usize)

Source from the content-addressed store, hash-verified

224 },
225 }
226 for idx in &system.preprocessed_indices {
227 match idx {
228 None => buf.extend_from_slice(&NO_PREP_INDEX.to_le_bytes()),
229 Some(i) => {
230 let v = u16::try_from(*i).expect("preprocessed index exceeds u16");
231 assert!(
232 v != NO_PREP_INDEX,
233 "preprocessed index collides with sentinel"
234 );
235 buf.extend_from_slice(&v.to_le_bytes());
236 },
237 }

Callers 4

dump_query_statsFunction · 0.45
u8Method · 0.45
u32Method · 0.45
u64Method · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected