コード例 #1
0
        public static AESMessage Desserialize(byte[] data, int len)
        {
            AESMessage t = new AESMessage();

            t.Deserialize(data, len);
            return(t);
        }
コード例 #2
0
        public T Deserialize <T>(ReusableStream reader) where T : IMessage
        {
            AESMessage t = new AESMessage();

            t.Deserialize(reader.Data, (int)reader.Length);
            return((T)(t as IMessage));
        }