namespace SabreTools.Serialization
{
///
/// Defines how to serialize to and from byte arrays
///
public interface IByteSerializer
{
///
/// Deserialize a byte array into
///
/// Type of object to deserialize to
/// Byte array to parse
/// Offset into the byte array
/// Filled object on success, null on error
#if NET48
T Deserialize(byte[] data, int offset);
#else
T? Deserialize(byte[]? data, int offset);
#endif
// TODO: Add serialization method
}
}