Recurity.Swf.AVM1.ActionDefineFunction.ParseFrom C# (CSharp) Method

ParseFrom() protected method

Parses the action from a string array
protected ParseFrom ( ) : bool
return bool
        protected override bool ParseFrom( params string[] token )
        {
            if ( token.Length < 2 )
                return false;

            _functionName = token[ 0 ];
            _codeSize = UInt16.Parse( token[ 1 ] );
            _parameterName = new List<string>();
            for ( int i = 2; i < token.Length; i++ )
            {
                _parameterName.Add( token[ i ] );
            }
            return true;
        }