public VuDetailedSpeedData(byte[] value)
        {
            vuDetailedSpeedBlocks = new List<VuDetailedSpeedBlock>();

            noOfSpeedBlocks = ConvertionClass.convertIntoUnsigned2ByteInt(ConvertionClass.arrayCopy(value, 0, 2));
            size = 2 + noOfSpeedBlocks * VuDetailedSpeedBlock.structureSize;

            if (noOfSpeedBlocks != 0)
            {
                for (int i = 0; i < noOfSpeedBlocks; i++)
                {
                    byte[] record = ConvertionClass.arrayCopy(value, 2 + (i * VuDetailedSpeedBlock.structureSize), VuDetailedSpeedBlock.structureSize);
                    VuDetailedSpeedBlock vdsb = new VuDetailedSpeedBlock(record);
                    vuDetailedSpeedBlocks.Add(vdsb);
                }
            }
        }
Exemple #2
0
        public VuDetailedSpeedData(byte[] value)
        {
            vuDetailedSpeedBlocks = new List <VuDetailedSpeedBlock>();

            noOfSpeedBlocks = ConvertionClass.convertIntoUnsigned2ByteInt(ConvertionClass.arrayCopy(value, 0, 2));
            size            = 2 + noOfSpeedBlocks * VuDetailedSpeedBlock.structureSize;

            if (noOfSpeedBlocks != 0)
            {
                for (int i = 0; i < noOfSpeedBlocks; i++)
                {
                    byte[] record             = ConvertionClass.arrayCopy(value, 2 + (i * VuDetailedSpeedBlock.structureSize), VuDetailedSpeedBlock.structureSize);
                    VuDetailedSpeedBlock vdsb = new VuDetailedSpeedBlock(record);
                    vuDetailedSpeedBlocks.Add(vdsb);
                }
            }
        }