fn initialize_memories(
    module: &Module,
    contents: &mut InstanceContents,
    data_initializers: &[DataInitializer<'_>],
) -> Result<(), InstantiationError> {
    for init in data_initializers {
        let start = get_memory_init_start(init, module, contents);
        let mem_slice = get_memory_slice(init, module, contents);

        let to_init = &mut mem_slice[start..start + init.data.len()];
        to_init.copy_from_slice(init.data);
    }

    Ok(())
}
/// Initialize the table memory from the provided initializers.
Initialize the table memory from the provided initializers.
Initialize the table memory from the provided initializers .
fn initialize_memories(
    module: &Module,
    contents: &mut InstanceContents,
    data_initializers: &[DataInitializer<'_>],
) -> Result<(), InstantiationError> {
    for init in data_initializers {
        let start = get_memory_init_start(init, module, contents);
        let mem_slice = get_memory_slice(init, module, contents);
        let to_init = &mut mem_slice[start..start + init.data.len()];
        to_init.copy_from_slice(init.data);
    }
    Ok(())
}
fn initialize_memories ( module : & Module , contents : & mut InstanceContents , data_initializers : & [ DataInitializer < ' _ > ] , ) -> Result < ( ) , InstantiationError > { for init in data_initializers { let start = get_memory_init_start ( init , module , contents ) ; let mem_slice = get_memory_slice ( init , module , contents ) ; let to_init = & mut mem_slice [ start .. start + init . data . len ( ) ] ; to_init . copy_from_slice ( init . data ) ; } Ok ( ( ) ) }
Initialize the table memory from the provided initializers.
Initialize the table memory from the provided initializers .
module
&Module
contents
&mut InstanceContents
data_initializers
&[DataInitializer<'_>]