mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Enums, Structs] Add proper header skip parts
This commit is contained in:
@@ -149,4 +149,29 @@ namespace SabreTools.Helper
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Intermediate struct for holding header skipper rule information
|
||||
/// </summary>
|
||||
public struct SkipperRule
|
||||
{
|
||||
long? StartOffset; // null is EOF
|
||||
long? EndOffset; // null if EOF
|
||||
HeaderSkipOperation Operation;
|
||||
List<SkipperTest> Tests;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Intermediate struct for holding header test information
|
||||
/// </summary>
|
||||
public struct SkipperTest
|
||||
{
|
||||
HeaderSkipTest Type;
|
||||
long? Offset; // null is EOF
|
||||
byte[] Value;
|
||||
bool Result;
|
||||
byte[] Mask;
|
||||
long? Size; // null is PO2, "power of 2" filesize
|
||||
HeaderSkipTestFileOperator Operator;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user