예제 #1
0
        public virtual bool UnSerialize(ILPMessageSerializer messageSerializer)
        {
            bool result = false;

            if (LOG_ERROR(messageSerializer != null))
            {
                goto Exit0;
            }

            // # begin unserialize field #

            result = messageSerializer.ReadUInt16(out MsgId);
            if (LOG_ERROR(result))
            {
                goto Exit0;
            }

            result = messageSerializer.ReadUInt16(out MsgSize);
            if (LOG_ERROR(result))
            {
                goto Exit0;
            }

            // # end #

            return(true);

Exit0:
            return(false);
        }
예제 #2
0
        public override bool UnSerialize(ILPMessageSerializer messageSerializer)
        {
            bool result = false;

            if (LOG_ERROR(messageSerializer != null))
            {
                goto Exit0;
            }

            // # begin unserialize field #

            result = base.UnSerialize(messageSerializer);
            if (LOG_ERROR(result))
            {
                goto Exit0;
            }

            result = messageSerializer.ReadUInt8(out byValue);
            if (LOG_ERROR(result))
            {
                goto Exit0;
            }

            result = messageSerializer.ReadUInt16(out wValue);
            if (LOG_ERROR(result))
            {
                goto Exit0;
            }

            result = messageSerializer.ReadUInt32(out dwValue);
            if (LOG_ERROR(result))
            {
                goto Exit0;
            }

            result = messageSerializer.ReadUInt64(out qwValue);
            if (LOG_ERROR(result))
            {
                goto Exit0;
            }

            result = messageSerializer.ReadString(out sValue);
            if (LOG_ERROR(result))
            {
                goto Exit0;
            }

            // # end #

            return(true);

Exit0:
            return(false);
        }