fn load_function_defs(
    binary: &[u8],
    table: &Table,
    func_defs: &mut Vec<FunctionDefinition>,
) -> BinaryLoaderResult<()> {
    let start = table.offset as usize;
    let end = start + table.count as usize;
    let mut cursor = Cursor::new(&binary[start..end]);
    while cursor.position() < u64::from(table.count) {
        let func_def = load_function_def(&mut cursor)?;
        func_defs.push(func_def);
    }
    Ok(())
}
/// Builds the `FunctionDefinition` table.
Builds the `FunctionDefinition` table.
Builds the ` FunctionDefinition ` table .
fn load_function_defs(
    binary: &[u8],
    table: &Table,
    func_defs: &mut Vec<FunctionDefinition>,
) -> BinaryLoaderResult<()> {
    let start = table.offset as usize;
    let end = start + table.count as usize;
    let mut cursor = Cursor::new(&binary[start..end]);
    while cursor.position() < u64::from(table.count) {
        let func_def = load_function_def(&mut cursor)?;
        func_defs.push(func_def);
    }
    Ok(())
}
fn load_function_defs ( binary : & [ u8 ] , table : & Table , func_defs : & mut Vec < FunctionDefinition > , ) -> BinaryLoaderResult < ( ) > { let start = table . offset as usize ; let end = start + table . count as usize ; let mut cursor = Cursor :: new ( & binary [ start .. end ] ) ; while cursor . position ( ) < u64 :: from ( table . count ) { let func_def = load_function_def ( & mut cursor ) ? ; func_defs . push ( func_def ) ; } Ok ( ( ) ) }
Builds the `FunctionDefinition` table.
Builds the ` FunctionDefinition ` table .
binary
&[u8]
table
&Table
func_defs
&mut Vec<FunctionDefinition>
binary
&[u8]
table
&Table
func_defs
&mut Vec<FunctionDefinition>