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

Method take

crates/kernel/src/profile.rs:333–341  ·  view source on GitHub ↗
(&mut self, n: usize)

Source from the content-addressed store, hash-verified

331 return Err(ProfileError::Corrupt);
332 }
333 }
334 for &p in &delta_col {
335 if p as usize >= n {
336 return Err(ProfileError::Corrupt);
337 }
338 }
339 Ok(BlockProfile { blocks, delta_row, delta_col })
340 }
341}
342
343/// Errors from decoding a `.ixprof` file.
344#[derive(Debug, Clone, PartialEq, Eq)]

Callers 3

from_bytesMethod · 0.45
u32Method · 0.45
u64Method · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected