public static T Decode <T>(BinaryInput input) where T : IEncodable, new() { IEncodable result = new T(); result.Decode(input); return((T)result); }
public static T Decode <T>(Stream stream, GraphicsDevice graphicsDevice) where T : IEncodable, new() { BinaryInput input = new BinaryInput(stream, graphicsDevice); IEncodable result = new T(); result.Decode(input); return((T)result); }
public IEncodable Decode(General.Encoding.BinaryInput stream) { return(this); }