Exemple #1
0
 public ExtendedSerialNumber(byte[] value)
 {
     serialNumber     = ConvertionClass.convertIntoUnsigned4ByteInt(ConvertionClass.arrayCopy(value, 0, 4));
     monthYear        = ConvertionClass.convertBCDStringIntoString(ConvertionClass.arrayCopy(value, 4, 2));
     type             = value[6];
     manufacturerCode = new ManufacturerCode(value[7]);
 }
        public void Set_icManufacturingReferences(string value)
        {
            System.Text.UTF8Encoding enc = new System.Text.UTF8Encoding();
            byte[] _bytes;

            _bytes = enc.GetBytes(value);
            icManufacturingReferences = ConvertionClass.convertBCDStringIntoString(_bytes);
        }
        public void Set_icSerialNumber(string value)
        {
            System.Text.UTF8Encoding enc = new System.Text.UTF8Encoding();
            byte[] _bytes;

            _bytes         = enc.GetBytes(value);
            icSerialNumber = ConvertionClass.convertBCDStringIntoString(_bytes);
        }
Exemple #4
0
        public ExtendedSerialNumber(string value)
        {
            System.Text.UTF8Encoding enc = new System.Text.UTF8Encoding();
            byte[] _bytes;

            _bytes = enc.GetBytes(value);

            serialNumber     = ConvertionClass.convertIntoUnsigned4ByteInt(ConvertionClass.arrayCopy(_bytes, 0, 4));
            monthYear        = ConvertionClass.convertBCDStringIntoString(ConvertionClass.arrayCopy(_bytes, 4, 2));
            type             = _bytes[6];
            manufacturerCode = new ManufacturerCode(_bytes[7]);
        }
Exemple #5
0
 public void setMonthYear(byte[] temp)
 {
     monthYear = ConvertionClass.convertBCDStringIntoString(temp);
 }