Recurity.Swf.ZoneData.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)
        {
            BitStream bits = new BitStream(input);

            bits.GetBitsFB(16, out this._alignmentCoordinate);
            bits.GetBitsFB(16, out this._range);
        }

Usage Example

コード例 #1
0
ファイル: ZoneRecord.cs プロジェクト: rtezli/Blitzableiter
        /// <summary>
        /// Parses this object out of a stream
        /// </summary>
        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);
        }