示例#1
0
        public void sampleFuncReq(SampleStruct ss)
        {
            AutoGenStructFor_sampleFuncReq msgData = new AutoGenStructFor_sampleFuncReq();

            msgData.ss = ss;
            PushSendData((ushort)EMsgType.sampleFuncReq, msgData);
            SendBytes();
        }
示例#2
0
        protected bool sampleFuncReqStub(byte[] buff, uint offset, uint buffLen)
        {
            AutoGenStructFor_sampleFuncReq msgData = new AutoGenStructFor_sampleFuncReq();
            uint readLen = msgData.Unserialize(buff, offset, buffLen);

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