mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-07-09 10:26:46 +00:00
Fix all broken tests from previous update
This commit is contained in:
@@ -21,6 +21,10 @@ namespace BinaryObjectScanner.FileType
|
||||
/// <inheritdoc/>
|
||||
public bool Extract(Stream? stream, string file, string outDir, bool includeDebug)
|
||||
{
|
||||
// Handle invalid inputs
|
||||
if (stream == null || stream.Length == 0)
|
||||
return false;
|
||||
|
||||
// Create the wrapper
|
||||
var bzip = SabreTools.Serialization.Wrappers.BZip2.Create(stream);
|
||||
if (bzip == null)
|
||||
|
||||
@@ -21,6 +21,10 @@ namespace BinaryObjectScanner.FileType
|
||||
/// <inheritdoc/>
|
||||
public bool Extract(Stream? stream, string file, string outDir, bool includeDebug)
|
||||
{
|
||||
// Handle invalid inputs
|
||||
if (stream == null || stream.Length == 0)
|
||||
return false;
|
||||
|
||||
// Create the wrapper
|
||||
var rar = SabreTools.Serialization.Wrappers.RAR.Create(stream);
|
||||
if (rar == null)
|
||||
|
||||
@@ -21,6 +21,10 @@ namespace BinaryObjectScanner.FileType
|
||||
/// <inheritdoc/>
|
||||
public bool Extract(Stream? stream, string file, string outDir, bool includeDebug)
|
||||
{
|
||||
// Handle invalid inputs
|
||||
if (stream == null || stream.Length == 0)
|
||||
return false;
|
||||
|
||||
// Create the wrapper
|
||||
var sevenZip = SabreTools.Serialization.Wrappers.SevenZip.Create(stream);
|
||||
if (sevenZip == null)
|
||||
|
||||
@@ -21,6 +21,10 @@ namespace BinaryObjectScanner.FileType
|
||||
/// <inheritdoc/>
|
||||
public bool Extract(Stream? stream, string file, string outDir, bool includeDebug)
|
||||
{
|
||||
// Handle invalid inputs
|
||||
if (stream == null || stream.Length == 0)
|
||||
return false;
|
||||
|
||||
// Create the wrapper
|
||||
var xz = SabreTools.Serialization.Wrappers.XZ.Create(stream);
|
||||
if (xz == null)
|
||||
|
||||
Reference in New Issue
Block a user