public static AESMessage Desserialize(byte[] data, int len) { AESMessage t = new AESMessage(); t.Deserialize(data, len); return(t); }
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)); }