Beispiel #1
0
        public VuCompanyLocksData(byte[] value)
        {
            vuCompanyLocksRecords = new List<VuCompanyLocksRecord>();

            noOfLocks = ConvertionClass.convertIntoUnsigned1ByteInt(value[0]);
            structureSize = 1 + noOfLocks * VuCompanyLocksRecord.structureSize;

            if (noOfLocks != 0)
            {
                for (int i = 0; i < noOfLocks; i++)
                {
                    byte[] record = ConvertionClass.arrayCopy(value, 1 + (i * VuCompanyLocksRecord.structureSize), VuCompanyLocksRecord.structureSize);
                    VuCompanyLocksRecord vclr = new VuCompanyLocksRecord(record);
                    vuCompanyLocksRecords.Add(vclr);
                }
            }
        }
Beispiel #2
0
        public VuCompanyLocksData(byte[] value)
        {
            vuCompanyLocksRecords = new List <VuCompanyLocksRecord>();

            noOfLocks     = ConvertionClass.convertIntoUnsigned1ByteInt(value[0]);
            structureSize = 1 + noOfLocks * VuCompanyLocksRecord.structureSize;

            if (noOfLocks != 0)
            {
                for (int i = 0; i < noOfLocks; i++)
                {
                    byte[] record             = ConvertionClass.arrayCopy(value, 1 + (i * VuCompanyLocksRecord.structureSize), VuCompanyLocksRecord.structureSize);
                    VuCompanyLocksRecord vclr = new VuCompanyLocksRecord(record);
                    vuCompanyLocksRecords.Add(vclr);
                }
            }
        }