mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-07-09 02:16:46 +00:00
None of this needs to account for nulls
This commit is contained in:
@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.FileType
|
||||
public class AACSMediaKeyBlock : DetectableBase<SabreTools.Serialization.Wrappers.AACSMediaKeyBlock>
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public AACSMediaKeyBlock(SabreTools.Serialization.Wrappers.AACSMediaKeyBlock? wrapper) : base(wrapper) { }
|
||||
public AACSMediaKeyBlock(SabreTools.Serialization.Wrappers.AACSMediaKeyBlock wrapper) : base(wrapper) { }
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override string? Detect(Stream stream, string file, bool includeDebug)
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace BinaryObjectScanner.FileType
|
||||
public class BDPlusSVM : DetectableBase<SabreTools.Serialization.Wrappers.BDPlusSVM>
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public BDPlusSVM(SabreTools.Serialization.Wrappers.BDPlusSVM? wrapper) : base(wrapper) { }
|
||||
public BDPlusSVM(SabreTools.Serialization.Wrappers.BDPlusSVM wrapper) : base(wrapper) { }
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override string? Detect(Stream stream, string file, bool includeDebug)
|
||||
|
||||
@@ -20,11 +20,8 @@ namespace BinaryObjectScanner.FileType
|
||||
|
||||
#region Constructors
|
||||
|
||||
public DetectableBase(T? wrapper)
|
||||
public DetectableBase(T wrapper)
|
||||
{
|
||||
if (wrapper == null)
|
||||
throw new ArgumentNullException(nameof(wrapper));
|
||||
|
||||
_wrapper = wrapper;
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace BinaryObjectScanner.FileType
|
||||
where T : WrapperBase
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Executable(T? wrapper) : base(wrapper) { }
|
||||
public Executable(T wrapper) : base(wrapper) { }
|
||||
|
||||
#region Check Runners
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.FileType
|
||||
public class LinearExecutable : Executable<SabreTools.Serialization.Wrappers.LinearExecutable>
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public LinearExecutable(SabreTools.Serialization.Wrappers.LinearExecutable? wrapper) : base(wrapper) { }
|
||||
public LinearExecutable(SabreTools.Serialization.Wrappers.LinearExecutable wrapper) : base(wrapper) { }
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override string? Detect(Stream stream, string file, bool includeDebug)
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.FileType
|
||||
public class MSDOS : Executable<SabreTools.Serialization.Wrappers.MSDOS>
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public MSDOS(SabreTools.Serialization.Wrappers.MSDOS? wrapper) : base(wrapper) { }
|
||||
public MSDOS(SabreTools.Serialization.Wrappers.MSDOS wrapper) : base(wrapper) { }
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override string? Detect(Stream stream, string file, bool includeDebug)
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.FileType
|
||||
public class NewExecutable : Executable<SabreTools.Serialization.Wrappers.NewExecutable>
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public NewExecutable(SabreTools.Serialization.Wrappers.NewExecutable? wrapper) : base(wrapper) { }
|
||||
public NewExecutable(SabreTools.Serialization.Wrappers.NewExecutable wrapper) : base(wrapper) { }
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override string? Detect(Stream stream, string file, bool includeDebug)
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace BinaryObjectScanner.FileType
|
||||
public class PLJ : DetectableBase<PlayJAudioFile>
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public PLJ(PlayJAudioFile? wrapper) : base(wrapper) { }
|
||||
public PLJ(PlayJAudioFile wrapper) : base(wrapper) { }
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override string? Detect(Stream stream, string file, bool includeDebug)
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace BinaryObjectScanner.FileType
|
||||
public class PortableExecutable : Executable<SabreTools.Serialization.Wrappers.PortableExecutable>
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public PortableExecutable(SabreTools.Serialization.Wrappers.PortableExecutable? wrapper) : base(wrapper) { }
|
||||
public PortableExecutable(SabreTools.Serialization.Wrappers.PortableExecutable wrapper) : base(wrapper) { }
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override string? Detect(Stream stream, string file, bool includeDebug)
|
||||
|
||||
Reference in New Issue
Block a user