Skip to content

Commit

Permalink
Fixed Moduled Kosinski+ decompression
Browse files Browse the repository at this point in the history
  • Loading branch information
Clownacy committed Mar 19, 2018
1 parent be20990 commit 8183935
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 2 additions & 10 deletions Kosinski+/Kosinski+.impl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,18 +165,10 @@ internal static void Decode(Stream source, Stream destination)
DecodeInternal(source, destination, ref decompressedBytes);
}

internal static void Decode(Stream source, Stream destination, Endianness headerEndianness)
internal static void DecodeModuled(Stream source, Stream destination)
{
long decompressedBytes = 0;
long fullSize;
if (headerEndianness == Endianness.BigEndian)
{
fullSize = BigEndian.Read2(source);
}
else
{
fullSize = LittleEndian.Read2(source);
}
long fullSize = BigEndian.Read2(source);

for (; ; )
{
Expand Down
2 changes: 1 addition & 1 deletion Kosinski+/ModuledKosinski+.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static void Decompress(Stream input, Stream output)
throw new ArgumentNullException("output");
}

KosinskiPlus.Decode(input, output);
KosinskiPlus.DecodeModuled(input, output);
}

public static byte[] Compress(string sourceFilePath)
Expand Down

0 comments on commit 8183935

Please sign in to comment.