コード例 #1
0
ファイル: VuCalibrationData.cs プロジェクト: ruslan81/FIS
        public VuCalibrationData(byte[] value)
        {
            vuCalibrationRecords = new List <VuCalibrationRecord>();

            noOfVuCalibrationRecords = ConvertionClass.convertIntoUnsigned1ByteInt(value[0]);
            structureSize            = 1 + noOfVuCalibrationRecords * VuCalibrationRecord.structureSize;

            if (noOfVuCalibrationRecords != 0)
            {
                for (int i = 0; i < noOfVuCalibrationRecords; i++)
                {
                    byte[] record           = ConvertionClass.arrayCopy(value, 1 + (i * VuCalibrationRecord.structureSize), VuCalibrationRecord.structureSize);
                    VuCalibrationRecord vcr = new VuCalibrationRecord(record);
                    vuCalibrationRecords.Add(vcr);
                }
            }
        }
コード例 #2
0
ファイル: VuCalibrationData.cs プロジェクト: ShunkevichDV/FIS
        public VuCalibrationData(byte[] value)
        {
            vuCalibrationRecords = new List<VuCalibrationRecord>();

            noOfVuCalibrationRecords =ConvertionClass.convertIntoUnsigned1ByteInt(value[0]);
            structureSize = 1 + noOfVuCalibrationRecords * VuCalibrationRecord.structureSize;

            if (noOfVuCalibrationRecords != 0)
            {
                for (int i = 0; i < noOfVuCalibrationRecords; i++)
                {
                    byte[] record = ConvertionClass.arrayCopy(value, 1 + (i * VuCalibrationRecord.structureSize), VuCalibrationRecord.structureSize);
                    VuCalibrationRecord vcr = new VuCalibrationRecord(record);
                    vuCalibrationRecords.Add(vcr);
                }
            }
        }