public B2MMaintenance(byte[] inbuf, int index) { int pos = index + 1; this.idCnt = inbuf[pos++]; _table = new List <MaintenanceStruct>(this.idCnt); for (int i = 0; i < this.idCnt; i++) { MaintenanceStruct tmp = new MaintenanceStruct(inbuf, pos); pos += 5; _table.Add(tmp); } this.Result = inbuf[pos++]; }
public B2MMaintenance(byte[] inbuf, int index) { int pos = index + 1; this.idCnt = inbuf[pos++]; _table = new List<MaintenanceStruct>(this.idCnt); for (int i = 0; i < this.idCnt; i++) { MaintenanceStruct tmp = new MaintenanceStruct(inbuf, pos); pos += 5; _table.Add(tmp); } this.Result = inbuf[pos++]; }