Recurity.Swf.MorphGradient.Write C# (CSharp) Method

Write() public method

Writes this object back to a stream
public Write ( Stream output ) : void
output Stream The stream to write to
return void
        public void Write(Stream output)
        {
            if (0 == this._numGradients)
            {
                Exception e = new Exception("There must be a least one MorphGradient!");
                Log.Warn(this, e.Message);
            }

            output.WriteByte(this._numGradients);

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