pub fn parse_inner_classes(decoder: &mut Decoder) -> Result<Attribute> {
    let count = decoder.read_u16()?;
    let mut inner_classes = Vec::with_capacity(count as usize);
    for _ in 0..count {
        let inner_class_info = decoder.read_u16()?;
        let outer_class_info = decoder.read_u16()?;
        let inner_name = decoder.read_u16()?;
        let inner_class_access_flags = AccessFlags::from_bits_truncate(decoder.read_u16()?);
        inner_classes.push(InnerClass {
            inner_class_info,
            outer_class_info,
            inner_name,
            inner_class_access_flags,
        })
    }
    Ok(Attribute::InnerClasses(inner_classes))
}
/// Parses the `InnerClasses` attribute
Parses the `InnerClasses` attribute
Parses the ` InnerClasses ` attribute
pub fn parse_inner_classes(decoder: &mut Decoder) -> Result<Attribute> {
    let count = decoder.read_u16()?;
    let mut inner_classes = Vec::with_capacity(count as usize);
    for _ in 0..count {
        let inner_class_info = decoder.read_u16()?;
        let outer_class_info = decoder.read_u16()?;
        let inner_name = decoder.read_u16()?;
        let inner_class_access_flags = AccessFlags::from_bits_truncate(decoder.read_u16()?);
        inner_classes.push(InnerClass {
            inner_class_info,
            outer_class_info,
            inner_name,
            inner_class_access_flags,
        })
    }
    Ok(Attribute::InnerClasses(inner_classes))
}
pub fn parse_inner_classes ( decoder : & mut Decoder ) -> Result < Attribute > { let count = decoder . read_u16 ( ) ? ; let mut inner_classes = Vec :: with_capacity ( count as usize ) ; for _ in 0 .. count { let inner_class_info = decoder . read_u16 ( ) ? ; let outer_class_info = decoder . read_u16 ( ) ? ; let inner_name = decoder . read_u16 ( ) ? ; let inner_class_access_flags = AccessFlags :: from_bits_truncate ( decoder . read_u16 ( ) ? ) ; inner_classes . push ( InnerClass { inner_class_info , outer_class_info , inner_name , inner_class_access_flags , } ) } Ok ( Attribute :: InnerClasses ( inner_classes ) ) }
Parses the `InnerClasses` attribute
Parses the ` InnerClasses ` attribute
decoder
&mut Decoder