Recurity.Swf.TagHandler.DefineButton.Write C# (CSharp) Method

Write() public method

Writes this object back to a stream
public Write ( Stream output ) : void
output Stream The output file.
return void
        public override void Write( Stream output )
        {
            this.WriteTagHeader(output);

            byte[] id = BitConverter.GetBytes( this._buttonID );
            output.Write( id, 0, 2 );

            for ( int i = 0; i < this._characters.Count; i++ )
            {
                this._characters[ i ].Write( output, this.Version );
            }

            output.WriteByte( 0 ); // character end flag

            for ( int i = 0; i < this._code.Count; i++ )
            {
                this._code[ i ].Write( output );
            }

            output.WriteByte( 0 ); // action end flag
        }