/// Emits the memory section to the output.
///
/// See https://webassembly.github.io/spec/core/binary/modules.html#memory-section
Emits the memory section to the output.
Emits the memory section to the output .
pub fn emit_memory_section<O: Write>(module: &Module, output: &mut O) -> Result<usize, EmitError> {
    match module.memories() {
        Some(memories) => emit_section(ModuleSection::Memory, output, |o| {
            emit_vector(memories, o, emit_memory)
        }),
        None => Ok(0),
    }
}
pub fn emit_memory_section < O : Write > ( module : & Module , output : & mut O ) -> Result < usize , EmitError > { match module . memories ( ) { Some ( memories ) => emit_section ( ModuleSection :: Memory , output , | o | { emit_vector ( memories , o , emit_memory ) } ) , None => Ok ( 0 ) , } }
Emits the memory section to the output.
Emits the memory section to the output .
module
&Module
output
&mut O