示例#1
0
        public VuCardIWData(byte[] value)
        {
            vuCardIWRecords = new List <VuCardIWRecord>();

            noOfIWRecords = ConvertionClass.convertIntoUnsigned2ByteInt(ConvertionClass.arrayCopy(value, 0, 2));
            structureSize = 2 + noOfIWRecords * VuCardIWRecord.structureSize;

            if (noOfIWRecords != 0)
            {
                for (int i = 0; i < noOfIWRecords; i++)
                {
                    byte[]         record = ConvertionClass.arrayCopy(value, 2 + (i * VuCardIWRecord.structureSize), VuCardIWRecord.structureSize);
                    VuCardIWRecord vciwr  = new VuCardIWRecord(record);
                    vuCardIWRecords.Add(vciwr);
                }
            }
        }
示例#2
0
        public VuCardIWData(byte[] value)
        {
            vuCardIWRecords = new List<VuCardIWRecord>();

            noOfIWRecords = ConvertionClass.convertIntoUnsigned2ByteInt(ConvertionClass.arrayCopy(value, 0, 2));
            structureSize = 2 + noOfIWRecords * VuCardIWRecord.structureSize;

            if (noOfIWRecords != 0)
            {
                for (int i = 0; i < noOfIWRecords; i++)
                {
                    byte[] record = ConvertionClass.arrayCopy(value, 2 + (i * VuCardIWRecord.structureSize), VuCardIWRecord.structureSize);
                    VuCardIWRecord vciwr = new VuCardIWRecord(record);
                    vuCardIWRecords.Add(vciwr);
                }
            }
        }