예제 #1
0
        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);
                }
            }
        }
예제 #2
0
        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);
                }
            }
        }