Example #1
0
        public VuEventData(byte[] value)
        {
            vuEventRecords = new List <VuEventRecord>();

            noOfVuEvents  = ConvertionClass.convertIntoUnsigned1ByteInt(value[0]);
            structureSize = 1 + noOfVuEvents * VuEventRecord.structureSize;

            if (noOfVuEvents != 0)
            {
                for (int i = 0; i < noOfVuEvents; i++)
                {
                    byte[]        record = ConvertionClass.arrayCopy(value, 1 + (i * VuEventRecord.structureSize), VuEventRecord.structureSize);
                    VuEventRecord ver    = new VuEventRecord(record);
                    vuEventRecords.Add(ver);
                }
            }
        }
Example #2
0
        public VuEventData(byte[] value)
        {
            vuEventRecords = new List<VuEventRecord>();

            noOfVuEvents = ConvertionClass.convertIntoUnsigned1ByteInt(value[0]);
            structureSize = 1 + noOfVuEvents * VuEventRecord.structureSize;

            if (noOfVuEvents != 0)
            {
                for (int i = 0; i < noOfVuEvents; i++)
                {
                    byte[] record =ConvertionClass.arrayCopy(value, 1 + (i * VuEventRecord.structureSize), VuEventRecord.structureSize);
                    VuEventRecord ver = new VuEventRecord(record);
                    vuEventRecords.Add(ver);
                }
            }
        }