Recurity.Swf.TagHandler.DefineEditText.Parse C# (CSharp) Method

Parse() protected method

Parses this object out of a stream
protected Parse ( ) : void
return void
        protected override void Parse()
        {
            //Log.Debug(this, "Offset : " + _dataStream.Position);
            BinaryReader br = new BinaryReader(this._dataStream);

            this._characterID = br.ReadUInt16();

            this._bounds.Parse(this._dataStream);

            BitStream bits = new BitStream(this._dataStream);

            this._hasText = ((0 != bits.GetBits(1)) ? true : false);
            this.Wordrap = ((0 != bits.GetBits(1)) ? true : false);
            this.MultiLine = ((0 != bits.GetBits(1)) ? true : false);
            this._password = ((0 != bits.GetBits(1)) ? true : false);
            this.ReadOnly = ((0 != bits.GetBits(1)) ? true : false);
            this._hasTextColor = ((0 != bits.GetBits(1)) ? true : false);
            this._hasMaxLength = ((0 != bits.GetBits(1)) ? true : false);
            this._hasFont = ((0 != bits.GetBits(1)) ? true : false);

            this._hasFontClass = ((0 != bits.GetBits(1)) ? true : false);
            this._autoSize = ((0 != bits.GetBits(1)) ? true : false);
            this._hasLayout = ((0 != bits.GetBits(1)) ? true : false);
            this.NoSelect = ((0 != bits.GetBits(1)) ? true : false);
            this._border = ((0 != bits.GetBits(1)) ? true : false);
            this._wasStatic = ((0 != bits.GetBits(1)) ? true : false);
            this.Html = ((0 != bits.GetBits(1)) ? true : false);
            this._hasOutlines = ((0 != bits.GetBits(1)) ? true : false);

            if (this._hasFont)
            {
                this._fontID = br.ReadUInt16();
            }
            if (this._hasFontClass)
            {
                this._fontClass = SwfStrings.SwfString(this._SwfVersion, br);
            }

            if (this._hasFont)
            {
                this._fontHeight = br.ReadUInt16();
            }
            if (this._hasTextColor)
            {
                this.TextColor.Parse(this._dataStream);
            }
            if (this._hasMaxLength)
            {
                this._maxLength = br.ReadUInt16();
            }
            if (this._hasLayout)
            {
                this._align = (Align)br.ReadByte();
                this._leftMargin = br.ReadUInt16();
                this._rightMargin = br.ReadUInt16();
                this._indent = br.ReadUInt16();
                this._leading = br.ReadInt16();
            }

            this.VariableName = SwfStrings.SwfString(this._SwfVersion, br);

            if (this._hasText)
            {
                this.InitialText = SwfStrings.SwfString(this._SwfVersion, br);
            }
        }