fn load_function_instantiations(
    binary: &[u8],
    table: &Table,
    func_insts: &mut Vec<FunctionInstantiation>,
) -> BinaryLoaderResult<()> {
    let start = table.offset as usize;
    let end = start + table.count as usize;
    let mut cursor = Cursor::new(&binary[start..end]);
    loop {
        if cursor.position() == u64::from(table.count) {
            break;
        }
        let handle = read_uleb_u16_internal(&mut cursor)?;
        let type_parameters = read_uleb_u16_internal(&mut cursor)?;
        func_insts.push(FunctionInstantiation {
            handle: FunctionHandleIndex(handle),
            type_parameters: SignatureIndex(type_parameters),
        });
    }
    Ok(())
}
/// Builds the `FunctionInstantiation` table.
Builds the `FunctionInstantiation` table.
Builds the ` FunctionInstantiation ` table .
fn load_function_instantiations(
    binary: &[u8],
    table: &Table,
    func_insts: &mut Vec<FunctionInstantiation>,
) -> BinaryLoaderResult<()> {
    let start = table.offset as usize;
    let end = start + table.count as usize;
    let mut cursor = Cursor::new(&binary[start..end]);
    loop {
        if cursor.position() == u64::from(table.count) {
            break;
        }
        let handle = read_uleb_u16_internal(&mut cursor)?;
        let type_parameters = read_uleb_u16_internal(&mut cursor)?;
        func_insts.push(FunctionInstantiation {
            handle: FunctionHandleIndex(handle),
            type_parameters: SignatureIndex(type_parameters),
        });
    }
    Ok(())
}
fn load_function_instantiations ( binary : & [ u8 ] , table : & Table , func_insts : & mut Vec < FunctionInstantiation > , ) -> BinaryLoaderResult < ( ) > { let start = table . offset as usize ; let end = start + table . count as usize ; let mut cursor = Cursor :: new ( & binary [ start .. end ] ) ; loop { if cursor . position ( ) == u64 :: from ( table . count ) { break ; } let handle = read_uleb_u16_internal ( & mut cursor ) ? ; let type_parameters = read_uleb_u16_internal ( & mut cursor ) ? ; func_insts . push ( FunctionInstantiation { handle : FunctionHandleIndex ( handle ) , type_parameters : SignatureIndex ( type_parameters ) , } ) ; } Ok ( ( ) ) }
Builds the `FunctionInstantiation` table.
Builds the ` FunctionInstantiation ` table .
binary
&[u8]
table
&Table
func_insts
&mut Vec<FunctionInstantiation>
binary
&[u8]
table
&Table
func_insts
&mut Vec<FunctionInstantiation>