Add non-model constructors for PKZIP

This commit is contained in:
Matt Nadareski
2025-08-28 19:59:24 -04:00
parent fdf2ea84ec
commit 5ff947b279

View File

@@ -43,6 +43,22 @@ namespace SabreTools.Serialization.Wrappers
#region Constructors
/// <inheritdoc/>
/// <remarks>This should only be used for WinZipSFX</remarks>
public PKZIP(byte[]? data, int offset)
: base(new Archive(), data, offset)
{
// All logic is handled by the base class
}
/// <inheritdoc/>
/// <remarks>This should only be used for WinZipSFX</remarks>
public PKZIP(Stream? data)
: base(new Archive(), data)
{
// All logic is handled by the base class
}
/// <inheritdoc/>
public PKZIP(Archive? model, byte[]? data, int offset)
: base(model, data, offset)