JavaDecompiler/JavaClass.cs
/// <summary>
/// Returns the index from the constant pool of the given utf8
/// </summary>
/// <param name="value"></param>
/// <returns></returns>
Returns the index from the constant pool of the given utf8
Returns the index from the constant pool of the given utf8
public ushort GetConstantUtf8Index(string value)
        {
            var len = ConstantPool.Length;
            for (ushort i = 0; i < len; i++)
            {
                var constant = ConstantPool[i];
                if (constant is JavaConstantUtf8Info utf8)
                {
                    if (utf8.Value == value)
                    {
                        return i;
                    }
                }
            }
            return 0;
        }
public ushort GetConstantUtf8Index ( string value ) { var len = ConstantPool . Length ; for ( ushort i = 0 ; i < len ; i ++ ) { var constant = ConstantPool [ i ] ; if ( constant is JavaConstantUtf8Info utf8 ) { if ( utf8 . Value == value ) { return i ; } } } return 0 ; }
Returns the index from the constant pool of the given utf8
Returns the index from the constant pool of the given utf8
None
value
string
None