Skip to main content

carve

Function carve 

Source
pub fn carve(
    backing: &mut [MaybeUninit<u64>],
    sizing: RuntimeSizing,
) -> impl Iterator<Item = Slot<'_>>
Expand description

Carve backing into sizing.components slots of sizing.slot_bytes.

§Panics

If backing is too small, naming both sizes. Fail-loud on EVERY profile, not debug_assert! — embedded release builds strip debug assertions, and a short backing is silent memory corruption rather than a wrong answer. Same reasoning as executor::storage::carve (issue #131, where a stale config mirror surfaced as a jalr -> 0).