BotItem.cs 483 B

12345678910111213141516171819
  1. using PlcSiemens.O;
  2. using PlcSiemens.Protocol.Common;
  3. namespace PlcSiemens.Protocol.ListBlocks
  4. {
  5. public class BotItem
  6. {
  7. public ushort BlockNum { get; set; }
  8. public byte Unknown { get; set; }
  9. public BlockLangType BlockLang { get; set; }
  10. public void Build(ByteBuffer buffer)
  11. {
  12. BlockNum = buffer.PopUshort();
  13. Unknown = buffer.PopByte();
  14. BlockLang = (BlockLangType)buffer.PopByte();
  15. }
  16. }
  17. }