/// Parses the `ModulePackages` attribute.
Parses the `ModulePackages` attribute.
Parses the ` ModulePackages ` attribute .
pub fn parse_module_packages(decoder: &mut Decoder) -> Result<Attribute> {
    let count = decoder.read_u16()?;
    let mut packages = Vec::with_capacity(count as usize);
    for _ in 0..count {
        packages.push(decoder.read_u16()?);
    }
    Ok(Attribute::ModulePackages(packages))
}
pub fn parse_module_packages ( decoder : & mut Decoder ) -> Result < Attribute > { let count = decoder . read_u16 ( ) ? ; let mut packages = Vec :: with_capacity ( count as usize ) ; for _ in 0 .. count { packages . push ( decoder . read_u16 ( ) ? ) ; } Ok ( Attribute :: ModulePackages ( packages ) ) }
Parses the `ModulePackages` attribute.
Parses the ` ModulePackages ` attribute .
decoder
&mut Decoder
<not_specific>