GetNodes() public static method

public static GetNodes ( Stream stream, int index ) : ReadOnlyCollection
stream Stream
index int
return ReadOnlyCollection
示例#1
0
        public EngGridUpdatePacket(byte[] byteArray)
        {
            if (_log.IsInfoEnabled)
            {
                _log.InfoFormat("{0}--bytes in: {1}", MethodBase.GetCurrentMethod().ToString(), Utility.BytesToDebugString(byteArray));
            }
            Systems = SystemNode.GetNodes(byteArray);
            int index = 0;

            foreach (SystemNode node in Systems)
            {
                index += node.DataLength;
            }

            DamageControlTeams = DamComStatus.GetDamComTeams(byteArray, ++index);

            if (_log.IsInfoEnabled)
            {
                _log.InfoFormat("{0}--Result bytes: {1}", MethodBase.GetCurrentMethod().ToString(), Utility.BytesToDebugString(this.GetBytes()));
            }
        }