pub fn parse_bootstrap_methods(decoder: &mut Decoder) -> Result<Attribute> {
    let count = decoder.read_u16()?;
    let mut bootstrap_methods = Vec::with_capacity(count as usize);
    for _ in 0..count {
        let method_ref = decoder.read_u16()?;
        let mut arguments = Vec::with_capacity(count as usize);
        let count = decoder.read_u16()?;
        for _ in 0..count {
            arguments.push(decoder.read_u16()?);
        }
        bootstrap_methods.push(BootstrapMethod {
            method_ref,
            arguments,
        })
    }
    Ok(Attribute::BootstrapMethods(bootstrap_methods))
}
/// Parses the `BootstrapMethods` attribute
Parses the `BootstrapMethods` attribute
Parses the ` BootstrapMethods ` attribute
pub fn parse_bootstrap_methods(decoder: &mut Decoder) -> Result<Attribute> {
    let count = decoder.read_u16()?;
    let mut bootstrap_methods = Vec::with_capacity(count as usize);
    for _ in 0..count {
        let method_ref = decoder.read_u16()?;
        let mut arguments = Vec::with_capacity(count as usize);
        let count = decoder.read_u16()?;
        for _ in 0..count {
            arguments.push(decoder.read_u16()?);
        }
        bootstrap_methods.push(BootstrapMethod {
            method_ref,
            arguments,
        })
    }
    Ok(Attribute::BootstrapMethods(bootstrap_methods))
}
pub fn parse_bootstrap_methods ( decoder : & mut Decoder ) -> Result < Attribute > { let count = decoder . read_u16 ( ) ? ; let mut bootstrap_methods = Vec :: with_capacity ( count as usize ) ; for _ in 0 .. count { let method_ref = decoder . read_u16 ( ) ? ; let mut arguments = Vec :: with_capacity ( count as usize ) ; let count = decoder . read_u16 ( ) ? ; for _ in 0 .. count { arguments . push ( decoder . read_u16 ( ) ? ) ; } bootstrap_methods . push ( BootstrapMethod { method_ref , arguments , } ) } Ok ( Attribute :: BootstrapMethods ( bootstrap_methods ) ) }
Parses the `BootstrapMethods` attribute
Parses the ` BootstrapMethods ` attribute
decoder
&mut Decoder