JavaDecompiler/JavaAttributeInfo.cs
/// <summary>
/// Recalculates the length of the data
/// </summary>
/// <returns></returns>
Recalculates the length of the data
Recalculates the length of the data
public override uint CalculateLength()
        {
            uint size = sizeof(ushort) * 2; 
            size += sizeof(uint) + (uint)Code.Length; 
            size += sizeof(ushort) + sizeof(ushort) * 4 * (uint)Exceptions.Length; 
            size += sizeof(ushort);
            var attributes = Attributes.Length;
            for (int i = 0; i < attributes; i++)
            {
                size += sizeof(ushort) + sizeof(uint) + Attributes[i].CalculateLength();
            }
            return size;
        }
public override uint CalculateLength ( ) { uint size = sizeof ( ushort ) * 2 ; size += sizeof ( uint ) + ( uint ) Code . Length ; size += sizeof ( ushort ) + sizeof ( ushort ) * 4 * ( uint ) Exceptions . Length ; size += sizeof ( ushort ) ; var attributes = Attributes . Length ; for ( int i = 0 ; i < attributes ; i ++ ) { size += sizeof ( ushort ) + sizeof ( uint ) + Attributes [ i ] . CalculateLength ( ) ; } return size ; }
Recalculates the length of the data
Recalculates the length of the data
// MaxStack and MaxLocals // Code // Exception table // Attributes
None