| 12345678910111213141516171819202122232425262728 | using Core.Communication.Transport;using PLC.Siemens.Protocol.Common;namespace PLC.Siemens.Protocol.ListBlocks{    public class BlockItemListAll    {        public ResultCode Ret { get; set; }        public byte Size { get; set; }        public ushort Length { get; set; }        public BlockItem[] Items;//ÿ¸öBlockItemÕ¼ÓÃ4¸ö×Ö½Ú        public void Build(ByteBuffer buffer)        {            Ret = (ResultCode) buffer.PopByte();            Size = buffer.PopByte();            Length = buffer.PopUshort();            Items = new BlockItem[Length / 4];            for (int i = 0; i < Length / 4; i++)            {                var tmp = new BlockItem();                tmp.Build(buffer);                Items[i] = tmp;            }        }    }}
 |