Exemple #1
0
        public bool Deserialize(byte[] bytes, ref int position)
        {
            if (!userID.Deserialize(bytes, ref position))
            {
                return(false);
            }
            if (!name.Deserialize(bytes, ref position))
            {
                return(false);
            }

            return(true);
        }
Exemple #2
0
        public bool Deserialize(byte[] bytes, ref int position)
        {
            if (!MessageID.Deserialize(bytes, ref position))
            {
                return(false);
            }
            if (!SenderID.Deserialize(bytes, ref position))
            {
                return(false);
            }
            if (!SenderName.Deserialize(bytes, ref position))
            {
                return(false);
            }
            if (!Content.Deserialize(bytes, ref position))
            {
                return(false);
            }

            return(true);
        }
Exemple #3
0
        public bool Deserialize(byte[] bytes, ref int position)
        {
            if (!ChannelID.Deserialize(bytes, ref position))
            {
                return(false);
            }
            if (!ParentID.Deserialize(bytes, ref position))
            {
                return(false);
            }
            if (!Name.Deserialize(bytes, ref position))
            {
                return(false);
            }
            if (!PacketSerializer.Deserialize(bytes, ref position, out type))
            {
                return(false);
            }

            return(true);
        }