mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-09-22 14:54:56 +00:00
Set zlib totals (nw)
This commit is contained in:
@@ -239,8 +239,10 @@ namespace BinaryObjectScanner.FileType
|
||||
{
|
||||
zstream.next_in = payloadPtr;
|
||||
zstream.avail_in = (uint)compressedData.Length;
|
||||
zstream.total_in = (uint)compressedData.Length;
|
||||
zstream.next_out = dataPtr;
|
||||
zstream.avail_out = (uint)data.Length;
|
||||
zstream.total_out = 0;
|
||||
|
||||
state.strm = zstream;
|
||||
state.mode = ZLib.inflate_mode.HEAD;
|
||||
|
||||
@@ -97,8 +97,10 @@ namespace BinaryObjectScanner.Packer
|
||||
{
|
||||
zstream.next_in = payloadPtr;
|
||||
zstream.avail_in = (uint)payload.Length;
|
||||
zstream.total_in = (uint)payload.Length;
|
||||
zstream.next_out = dataPtr;
|
||||
zstream.avail_out = (uint)data.Length;
|
||||
zstream.total_out = 0;
|
||||
|
||||
state.strm = zstream;
|
||||
state.mode = ZLib.inflate_mode.HEAD;
|
||||
|
||||
Reference in New Issue
Block a user