UploadDataResponse.cs 543 B

1234567891011121314151617181920
  1. using PlcSiemens.O;
  2. namespace PlcSiemens.Protocol.Upload
  3. {
  4. public class UploadDataResponse
  5. {
  6. public ushort Length;// Payload length - 4
  7. public byte Uk00; // Unknown 0x00
  8. public byte UkFb; // Unknown 0xFB
  9. public byte[] Datas { get; set; }
  10. public void Build(ByteBuffer buffer)
  11. {
  12. Length = buffer.PopUshort();
  13. Uk00 = buffer.PopByte();
  14. UkFb = buffer.PopByte();
  15. Datas = buffer.PopBytes(buffer.WriteIndex - buffer.ReadIndex);
  16. }
  17. }
  18. }