Пример #1
0
        /// <summary>
        /// 3006,CAN数据多个ID混合组帧转发
        /// </summary>
        /// <param name="parse"></param>
        /// <param name="caches"></param>
        /// <returns></returns>
        private FromInComEntity DataMonitor(IFixBufferEntity caches)
        {
            var buffer = new byte[caches.Length];

            Array.Copy(caches.Buffer, caches.Offset, buffer, 0, buffer.Length);
            int offset = 2;
            var real   = (DataMonitor)_parserManger.Decompose(buffer, ref offset);

            if (real == null)
            {
                return(null);
            }

            return(new FromInComEntity
            {
                FindKey = FindKey,
                RealEntity = real
            });
        }