(&self)
| 2230 | /// Serialized byte length of a block constant (the ingress-cost / net weight). |
| 2231 | #[allow(clippy::cast_possible_truncation)] // clamped to u32::MAX above |
| 2232 | fn 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), |
no outgoing calls
no test coverage detected