using System.IO; namespace SabreTools.Serialization.Interfaces { /// /// Defines how to serialize to and from Streams /// public interface IStreamSerializer { /// /// Deserialize a Stream into /// /// Type of object to deserialize to /// Stream to parse /// Filled object on success, null on error T? Deserialize(Stream? data); /// /// Serialize a into a Stream /// /// Type of object to serialize from /// Data to serialize /// Filled object on success, null on error Stream? Serialize(T? obj); } }