Skip to main content

data_segment_length_offset

Function data_segment_length_offset 

Source
pub fn data_segment_length_offset(num_globals: usize, ordinal: usize) -> i32
Expand description

Offset within GLOBAL_MEMORY_BASE for a passive data segment’s effective length. Stored after the memory size global: memory_size_offset + 4 + ordinal * 4. Used for bounds checking in memory.init and zeroed by data.drop.