Skip to main content

data_address

Function data_address 

Source
pub const fn data_address(slot: Slot, block: u8, offset_words: u8) -> u16
Expand description

Build the param2 address for a data zone access.

slot is the target slot. block is the 32-byte block within that slot (slots have variable sizes, slot 8 alone has 11 blocks). offset_words indexes a 4-byte word inside the block. For 32-byte transfers offset_words must be 0.