JavaDecompiler/JavaAttributeInfo.cs
/// <summary>
/// Creates and read the attribute info
/// </summary>
/// <param name="reader"></param>
/// <param name="javaClass"></param>
/// <returns></returns>
Creates and read the attribute info
Creates and read the attribute info
public static JavaAttributeInfo CreateAndRead(BinaryReader reader, JavaClass javaClass)
        {
            var nameIndex = reader.ReadUInt16();
            var length = reader.ReadUInt32();
            var type = javaClass.GetConstantUtf8(nameIndex);
            var attribute = Create(type);
            attribute.NameIndex = nameIndex;
            attribute.Length = length;
            attribute.Read(reader, javaClass);
            return attribute;
        }
public static JavaAttributeInfo CreateAndRead ( BinaryReader reader , JavaClass javaClass ) { var nameIndex = reader . ReadUInt16 ( ) ; var length = reader . ReadUInt32 ( ) ; var type = javaClass . GetConstantUtf8 ( nameIndex ) ; var attribute = Create ( type ) ; attribute . NameIndex = nameIndex ; attribute . Length = length ; attribute . Read ( reader , javaClass ) ; return attribute ; }
Creates and read the attribute info
Creates and read the attribute info
// Gets the type
None
reader
BinaryReader
None
javaClass
JavaClass
None