namespace SabreTools.Serialization.Readers
{
///
/// Defines how to read from byte arrays
///
public interface IByteReader
{
///
/// Enable outputting debug information
///
public bool Debug { get; set; }
///
/// 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
public TModel? Deserialize(byte[]? data, int offset);
}
}