Recurity.Swf.ZoneRecord.Parse C# (CSharp) Method

Parse() public method

Parses this object out of a stream
public Parse ( Stream input ) : void
input Stream
return void
        public void Parse(Stream input)
        {
            BinaryReader br = new BinaryReader(input);

            this._numZoneData = br.ReadByte();

            ZoneData temp = null;

            for (int i = 0; i < this._numZoneData; i++)
            {
                temp = new ZoneData(this._SwfVersion);
                temp.Parse(input);
                this._zoneData.Add(temp);
            }

            BitStream bits = new BitStream(input);
            bits.GetBits(6); //reserved
            this._zoneMaskY = ((0 != bits.GetBits(1)) ? true : false);
            this._zoneMaskX = ((0 != bits.GetBits(1)) ? true : false);
        }