Beispiel #1
0
 public override void Encode()
 {
     encodeBuf.Clear();
     encodeBuf.AddRange(AddString(CollectTime, 14));
     encodeBuf.AddRange(AddString(StationId, 4));
     encodeBuf.AddRange(AddString(DeviceId, 8));
     encodeBuf.AddRange(AddString(StatusDescription, 4));
     encodeBuf.AddRange(AddString(SoftType, 2));
     encodeBuf.AddRange(AddString(CurrentVersion.PadLeft(12, '0'), 12));
     encodeBuf.AddRange(AddString(FutureVersion.PadLeft(12, '0'), 12));
     encodeBuf.AddRange(AddString(Spare, 8));
 }