Recurity.Swf.AVM1.ActionGotoFrame.Parse C# (CSharp) Method

Parse() protected method

Parses frame number to go to from a source stream
protected Parse ( System sourceStream, byte sourceVersion ) : void
sourceStream System The source stream
sourceVersion byte The version
return void
        protected override void Parse( System.IO.BinaryReader sourceStream, byte sourceVersion )
        {
            if ( 2 != _length )
            {
                throw new AVM1ExceptionByteCodeFormat( "length invalid" );
            }

            _frameIndex = sourceStream.ReadUInt16();
        }