Beispiel #1
0
        public void towParamReq(SampleStruct ss, List <byte> name)
        {
            AutoGenStructFor_towParamReq msgData = new AutoGenStructFor_towParamReq();

            msgData.ss = ss;
            msgData.name.AddRange(name);
            PushSendData((ushort)EMsgType.towParamReq, msgData);
            SendBytes();
        }
Beispiel #2
0
        protected bool towParamReqStub(byte[] buff, uint offset, uint buffLen)
        {
            AutoGenStructFor_towParamReq msgData = new AutoGenStructFor_towParamReq();
            uint readLen = msgData.Unserialize(buff, offset, buffLen);

            if (readLen <= 0)
            {
                msgData.Clear(); return(false);
            }
            towParamReq(this, msgData.ss, msgData.name);
            msgData.Clear();
            return(true);
        }