pub fn parse_method_parameters(decoder: &mut Decoder) -> Result<Attribute> {
    let count = decoder.read_u16()?;
    let mut params = Vec::with_capacity(count as usize);
    for _ in 0..count {
        let name = decoder.read_u16()?;
        let access_flags = AccessFlags::from_bits_truncate(decoder.read_u16()?);
        params.push(MethodParameter { name, access_flags });
    }
    Ok(Attribute::MethodParameters(params))
}
/// Parses the `MethodParameters` attribute.
Parses the `MethodParameters` attribute.
Parses the ` MethodParameters ` attribute .
pub fn parse_method_parameters(decoder: &mut Decoder) -> Result<Attribute> {
    let count = decoder.read_u16()?;
    let mut params = Vec::with_capacity(count as usize);
    for _ in 0..count {
        let name = decoder.read_u16()?;
        let access_flags = AccessFlags::from_bits_truncate(decoder.read_u16()?);
        params.push(MethodParameter { name, access_flags });
    }
    Ok(Attribute::MethodParameters(params))
}
pub fn parse_method_parameters ( decoder : & mut Decoder ) -> Result < Attribute > { let count = decoder . read_u16 ( ) ? ; let mut params = Vec :: with_capacity ( count as usize ) ; for _ in 0 .. count { let name = decoder . read_u16 ( ) ? ; let access_flags = AccessFlags :: from_bits_truncate ( decoder . read_u16 ( ) ? ) ; params . push ( MethodParameter { name , access_flags } ) ; } Ok ( Attribute :: MethodParameters ( params ) ) }
Parses the `MethodParameters` attribute.
Parses the ` MethodParameters ` attribute .
decoder
&mut Decoder