This commit is contained in:
Adam Hathcock
2026-02-13 15:39:11 +00:00
parent 0db412d710
commit 7e0091cba5
2 changed files with 14 additions and 2 deletions

View File

@@ -37,7 +37,15 @@ internal static partial class DecoderRegistry
case K_LZMA:
case K_LZMA2:
return await LzmaStream
.CreateAsync(info.NotNull(), inStreams.Single(), -1, limit, null, info.NotNull().Length < 5, false)
.CreateAsync(
info.NotNull(),
inStreams.Single(),
-1,
limit,
null,
info.NotNull().Length < 5,
false
)
.ConfigureAwait(false);
case CMethodId.K_AES_ID:
return new AesDecoderStream(inStreams.Single(), info.NotNull(), pass, limit);

View File

@@ -75,7 +75,11 @@ internal static partial class DecoderRegistry
case K_B_ZIP2:
return BZip2Stream.Create(inStreams.Single(), CompressionMode.Decompress, true);
case K_PPMD:
return PpmdStream.Create(new PpmdProperties(info.NotNull()), inStreams.Single(), false);
return PpmdStream.Create(
new PpmdProperties(info.NotNull()),
inStreams.Single(),
false
);
case K_DEFLATE:
return new DeflateStream(inStreams.Single(), CompressionMode.Decompress);
case K_ZSTD: