Example #1
0
        public void sampleFuncAck(StructA sa)
        {
            AutoGenStructFor_sampleFuncAck msgData = new AutoGenStructFor_sampleFuncAck();

            msgData.sa = sa;
            PushSendData((ushort)EMsgType.sampleFuncAck, msgData);
            SendBytes();
        }
Example #2
0
        protected bool sampleFuncAckStub(byte[] buff, uint offset, uint buffLen)
        {
            AutoGenStructFor_sampleFuncAck msgData = new AutoGenStructFor_sampleFuncAck();
            uint readLen = msgData.Unserialize(buff, offset, buffLen);

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