/// <summary>
        /// </summary>
        /// <param name="stream">
        /// </param>
        public void ReadFromStream(Stream stream)
        {
            BinaryReader br = new BinaryReader(stream);

            this.EventType = IPAddress.NetworkToHostOrder(br.ReadInt32());
            var counter = new HLFlat3F1Counter();
            counter.ReadFromStream(stream);
            int count = counter.Counter;
            while (count > 0)
            {
                HLFlatFunction func = new HLFlatFunction();
                func.ReadFromStream(stream);
                this.Functions.Add(func);
                count--;
            }
        }
Exemple #2
0
        /// <summary>
        /// </summary>
        /// <param name="stream">
        /// </param>
        public void ReadFromStream(Stream stream)
        {
            BinaryReader br = new BinaryReader(stream);

            this.EventType = IPAddress.NetworkToHostOrder(br.ReadInt32());
            var counter = new HLFlat3F1Counter();

            counter.ReadFromStream(stream);
            int count = counter.Counter;

            while (count > 0)
            {
                HLFlatFunction func = new HLFlatFunction();
                func.ReadFromStream(stream);
                this.Functions.Add(func);
                count--;
            }
        }