File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change 1
- local zlib = require " zlib"
1
+ local ZlibStream = {} do
2
+ local zlib = require " zlib"
2
3
3
- local function zlib_name (lib )
4
- if lib ._VERSION and string.find (lib ._VERSION , ' lua-zlib' , nil , true ) then
5
- return ' lua-zlib'
6
- end
4
+ local function zlib_name (lib )
5
+ if lib ._VERSION and string.find (lib ._VERSION , ' lua-zlib' , nil , true ) then
6
+ return ' lua-zlib'
7
+ end
7
8
8
- if lib ._VERSION and string.find (lib ._VERSION , ' lzlib' , nil , true ) then
9
- return ' lzlib'
9
+ if lib ._VERSION and string.find (lib ._VERSION , ' lzlib' , nil , true ) then
10
+ return ' lzlib'
11
+ end
10
12
end
11
- end
12
13
13
- local z_lib_name = assert (zlib_name (zlib ), ' Unsupported zlib Lua binding' )
14
+ local z_lib_name = assert (zlib_name (zlib ), ' Unsupported zlib Lua binding' )
15
+
14
16
15
- local ZlibStream = {} do
16
17
ZlibStream .__index = ZlibStream
17
18
18
19
ZlibStream .NO_COMPRESSION = zlib .NO_COMPRESSION or 0
@@ -69,6 +70,8 @@ local ZlibStream = {} do
69
70
end
70
71
end
71
72
73
+
74
+
72
75
local Compress = {} do
73
76
Compress .__index = Compress
74
77
You can’t perform that action at this time.
0 commit comments