Esempio n. 1
0
        /// <summary>
        /// Deserialization the specified val and offset.
        /// </summary>
        /// <param name="val">Value.</param>
        /// <param name="offset">Offset.</param>
        public override int Deserialization(byte[] val, int offset)
        {
            int index = base.Deserialization(val, offset);

            Session.Uid = BitConvert.GetUInt64(val, ref index);
            return(index);
        }
Esempio n. 2
0
        /// <summary>
        /// Deserialization the specified val and offset.
        /// </summary>
        /// <param name="val">Value.</param>
        /// <param name="offset">Offset.</param>
        public override int Deserialization(byte[] val, int offset)
        {
            int index = base.Deserialization(val, offset);

            Session.Uid = BitConvert.GetUInt64(val, ref index);
//            PlayerID = BitConvert.GetInt32(val, ref index);
//            TCPWraper.DialogId = PlayerID;
            return(index);
        }