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

Method prefix

crates/ffi/src/kernel.rs:2232–2239  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

2230/// Serialized byte length of a block constant (the ingress-cost / net weight).
2231#[allow(clippy::cast_possible_truncation)] // clamped to u32::MAX above
2232fn profile_block_size(env: &IxonEnv, block: &Address) -> u32 {
2233 env
2234 .get_const_bytes(block)
2235 .map_or(0, |b| b.len().min(u32::MAX as usize) as u32)
2236}
2237
2238/// Build the STATIC block profile of an env — the profile-free analog of
2239/// [`build_block_profile`]: same [`BlockProfile`] shape, but derived from
2240/// the serialized constants alone, no kernel run.
2241///
2242/// - Vertices: ingress units (a Muts block or a standalone constant),

Callers 2

check_consts_loopFunction · 0.80
persistent_lineMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected