File tree Expand file tree Collapse file tree 3 files changed +2
-253
lines changed Expand file tree Collapse file tree 3 files changed +2
-253
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ tgzipinfo = record
79
79
80
80
var
81
81
zchunkmaxsize: dword = 1024 *128 ; // 128 KB default max chunk size
82
- zbuffersize: dword = 1024 *1024 *4 ; // 4 MB default buffer size
82
+ zbuffersize: dword = 1024 *1024 *16 ; // 16 MB default buffer size
83
83
84
84
threadvar
85
85
zlasterror: integer;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ function gzip(bytes : TBytes; header : boolean; level: dword=9) : TBytes;
56
56
function ungzip (bytes : TBytes) : TBytes;
57
57
begin
58
58
result := zflate.zdecompress(bytes);
59
- if length(result) = 0 then
59
+ if zlastError <> 0 then
60
60
raise EFslException.create(' Failed to read compressed content: ' +zflatetranslatecode(zlasterror));
61
61
end ;
62
62
You can’t perform that action at this time.
0 commit comments