using SabreTools.Library.Data;
namespace SabreTools.Library.Skippers
{
///
/// Intermediate class for storing Skipper Test information
///
public struct SkipperTest
{
///
/// Type of test to be run
///
public HeaderSkipTest Type { get; set; }
///
/// File offset to run the test
///
public long? Offset { get; set; } // null is EOF
///
/// Static value to be checked at the offset
///
public byte[] Value { get; set; }
///
/// Determines whether a pass or failure is expected
///
public bool Result { get; set; }
///
/// Byte mask to be applied to the tested bytes
///
public byte[] Mask { get; set; }
///
/// Expected size of the input byte array, used with the Operator
///
public long? Size { get; set; } // null is PO2, "power of 2" filesize
///
/// Expected range value for the input byte array size, used with Size
///
public HeaderSkipTestFileOperator Operator { get; set; }
}
}