Skip to main content

element_place

Function element_place 

Source
pub fn element_place(
    first: &Word,
    index: u64,
    element_bytes: u64,
) -> (Word, u64)
Expand description

Where element index of an array whose elements take element_bytes sits, counting from first: small elements pack several to a slot, never straddling one; larger elements take whole slots.