Recurity.Swf.ShapeWithStyle.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)
        {
            this._fillStyles.Write(output);
            this._lineStyles.Write(output);

            BitStream bits = new BitStream(output);

            bits.WriteBits(4, (Int32)this._numFillBits);
            bits.WriteBits(4, (Int32)this._numLineBits);

            long startPosition = output.Position;

            output.Write(this._shapeRecordBuffer, 0, this._shapeRecordBuffer.Length);
        }