Beispiel #1
0
 protected override void ReadData(MsgDataStream stream)
 {
     base.ReadData(stream);
     ProductNum = stream.ReadInt32();
     DeviceID   = stream.ReadByteArray(16);
     DeviceType = stream.ReadInt16();
 }
Beispiel #2
0
 protected virtual void ReadData(MsgDataStream stream)
 {
     stream.ReadByteArray(2);
     ADR = stream.ReadInt16();
     stream.ReadInt16(); //PID
     stream.ReadInt16(); //len
 }
Beispiel #3
0
        protected override void ReadData(MsgDataStream stream)
        {
            base.ReadData(stream);
            ErrCode  = stream.ReadInt16();
            ItemID   = stream.ReadInt16();
            Value    = stream.ReadInt32();
            MaxValue = stream.ReadInt32();
            MinValue = stream.ReadInt32();
            byte[] bts = stream.ReadByteArray(32);
            ItemName = System.Text.Encoding.Unicode.GetString(bts).Replace("\0", "");
            int discribelen = stream.ReadByte();

            if (discribelen > 0)
            {
                byte[] bts2 = stream.ReadByteArray(discribelen);
                ItemDiscribe = System.Text.Encoding.Unicode.GetString(bts2).Replace("\0", "");
            }
        }
        protected override void ReadData(MsgDataStream stream)
        {
            base.ReadData(stream);
            TransID = stream.ReadInt16();
            int winlistlen = stream.ReadByte();

            byte[] list = stream.ReadByteArray(winlistlen);
            WinList = new List <int>();
            for (int i = 0; i < winlistlen; i++)
            {
                WinList.Add(list[i]);
            }
        }
Beispiel #5
0
 protected override void ReadData(MsgDataStream stream)
 {
     base.ReadData(stream);
     GPIVersion        = stream.ReadInt32();
     ProductNum        = stream.ReadInt32();
     DeviceID          = stream.ReadByteArray(16);
     GamePortCount     = stream.ReadByte();
     CurrGamePortIndex = stream.ReadByte();
     DeviceType        = stream.ReadInt16();
     if (GPIVersion > 116)
     {
         SoftVer = stream.ReadInt16();
     }
 }