|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using Joveler.Compression.ZLib;
|
|
|
|
|
|
|
|
|
|
namespace DotNetCTFDumper.Utils
|
|
|
|
@ -31,13 +32,13 @@ namespace DotNetCTFDumper.Utils
|
|
|
|
|
using (ZLibStream zs = new ZLibStream(compressedStream, decompOpts))
|
|
|
|
|
{
|
|
|
|
|
zs.CopyTo(decompressedStream);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return decompressedStream.GetBuffer();
|
|
|
|
|
|
|
|
|
|
byte[] decompressedData = decompressedStream.GetBuffer();
|
|
|
|
|
// Trimming array to decompSize,
|
|
|
|
|
// because ZlibStream always pads to 0x100
|
|
|
|
|
Array.Resize<byte>(ref decompressedData, decompSize);
|
|
|
|
|
return decompressedData;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|