public VuOverSpeedingEventData(byte[] value) { vuOverSpeedingEventRecords = new List<VuOverSpeedingEventRecord>(); noOfOverSpeedingEvents = ConvertionClass.convertIntoUnsigned1ByteInt(value[0]); structureSize = 1 + noOfOverSpeedingEvents * VuOverSpeedingEventRecord.structureSize; if (noOfOverSpeedingEvents != 0) { for (int i = 0; i < noOfOverSpeedingEvents; i++) { byte[] record = ConvertionClass.arrayCopy(value, 1 + (i * VuOverSpeedingEventRecord.structureSize), VuOverSpeedingEventRecord.structureSize); VuOverSpeedingEventRecord voser = new VuOverSpeedingEventRecord(record); vuOverSpeedingEventRecords.Add(voser); } } }
public VuOverSpeedingEventData(byte[] value) { vuOverSpeedingEventRecords = new List <VuOverSpeedingEventRecord>(); noOfOverSpeedingEvents = ConvertionClass.convertIntoUnsigned1ByteInt(value[0]); structureSize = 1 + noOfOverSpeedingEvents * VuOverSpeedingEventRecord.structureSize; if (noOfOverSpeedingEvents != 0) { for (int i = 0; i < noOfOverSpeedingEvents; i++) { byte[] record = ConvertionClass.arrayCopy(value, 1 + (i * VuOverSpeedingEventRecord.structureSize), VuOverSpeedingEventRecord.structureSize); VuOverSpeedingEventRecord voser = new VuOverSpeedingEventRecord(record); vuOverSpeedingEventRecords.Add(voser); } } }