mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Skipper] Rearrange Skipper methods without changing logic
This commit is contained in:
@@ -1,46 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SabreTools.Helper
|
||||
{
|
||||
#region Skipper structs
|
||||
|
||||
/// <summary>
|
||||
/// Intermediate struct for holding header skipper information
|
||||
/// </summary>
|
||||
public struct Skipper
|
||||
{
|
||||
public string Name;
|
||||
public string Author;
|
||||
public string Version;
|
||||
public List<SkipperRule> Rules;
|
||||
public string SourceFile;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Intermediate struct for holding header skipper rule information
|
||||
/// </summary>
|
||||
public struct SkipperRule
|
||||
{
|
||||
public long? StartOffset; // null is EOF
|
||||
public long? EndOffset; // null if EOF
|
||||
public HeaderSkipOperation Operation;
|
||||
public List<SkipperTest> Tests;
|
||||
public string SourceFile;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Intermediate struct for holding header test information
|
||||
/// </summary>
|
||||
public struct SkipperTest
|
||||
{
|
||||
public HeaderSkipTest Type;
|
||||
public long? Offset; // null is EOF
|
||||
public byte[] Value;
|
||||
public bool Result;
|
||||
public byte[] Mask;
|
||||
public long? Size; // null is PO2, "power of 2" filesize
|
||||
public HeaderSkipTestFileOperator Operator;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user