libwz 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (362) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +165 -0
  3. package/binding.gyp +149 -0
  4. package/deps/tiny-aes/.github/workflows/c-cpp.yml +27 -0
  5. package/deps/tiny-aes/CMakeLists.txt +17 -0
  6. package/deps/tiny-aes/Makefile +61 -0
  7. package/deps/tiny-aes/README.md +83 -0
  8. package/deps/tiny-aes/aes.c +572 -0
  9. package/deps/tiny-aes/aes.h +91 -0
  10. package/deps/tiny-aes/aes.hpp +12 -0
  11. package/deps/tiny-aes/conanfile.py +73 -0
  12. package/deps/tiny-aes/library.json +19 -0
  13. package/deps/tiny-aes/library.properties +11 -0
  14. package/deps/tiny-aes/test.c +316 -0
  15. package/deps/tiny-aes/test.cpp +2 -0
  16. package/deps/tiny-aes/test_package/CMakeLists.txt +11 -0
  17. package/deps/tiny-aes/test_package/conanfile.py +17 -0
  18. package/deps/tiny-aes/unlicense.txt +24 -0
  19. package/deps/zlib/.cmake-format.yaml +245 -0
  20. package/deps/zlib/.github/workflows/c-std.yml +268 -0
  21. package/deps/zlib/.github/workflows/cmake.yml +147 -0
  22. package/deps/zlib/.github/workflows/configure.yml +146 -0
  23. package/deps/zlib/.github/workflows/contribs.yml +64 -0
  24. package/deps/zlib/.github/workflows/fuzz.yml +25 -0
  25. package/deps/zlib/.github/workflows/msys-cygwin.yml +92 -0
  26. package/deps/zlib/.github/workflows/others.yml +153 -0
  27. package/deps/zlib/BUILD.bazel +134 -0
  28. package/deps/zlib/CMakeLists.txt +310 -0
  29. package/deps/zlib/ChangeLog +1669 -0
  30. package/deps/zlib/FAQ +371 -0
  31. package/deps/zlib/INDEX +67 -0
  32. package/deps/zlib/LICENSE +22 -0
  33. package/deps/zlib/MODULE.bazel +9 -0
  34. package/deps/zlib/Makefile.in +426 -0
  35. package/deps/zlib/README +115 -0
  36. package/deps/zlib/README-cmake.md +79 -0
  37. package/deps/zlib/adler32.c +164 -0
  38. package/deps/zlib/amiga/Makefile.pup +69 -0
  39. package/deps/zlib/amiga/Makefile.sas +68 -0
  40. package/deps/zlib/compress.c +99 -0
  41. package/deps/zlib/configure +1078 -0
  42. package/deps/zlib/contrib/CMakeLists.txt +61 -0
  43. package/deps/zlib/contrib/README.contrib +57 -0
  44. package/deps/zlib/contrib/ada/CMakeLists.txt +217 -0
  45. package/deps/zlib/contrib/ada/buffer_demo.adb +106 -0
  46. package/deps/zlib/contrib/ada/cmake/Modules/CMakeADACompiler.cmake.in +23 -0
  47. package/deps/zlib/contrib/ada/cmake/Modules/CMakeADAInformation.cmake +133 -0
  48. package/deps/zlib/contrib/ada/cmake/Modules/CMakeDetermineADACompiler.cmake +33 -0
  49. package/deps/zlib/contrib/ada/cmake/Modules/CMakeTestADACompiler.cmake +46 -0
  50. package/deps/zlib/contrib/ada/cmake/binder_helper.cmake +47 -0
  51. package/deps/zlib/contrib/ada/cmake/compile_helper.cmake +32 -0
  52. package/deps/zlib/contrib/ada/cmake/exe_link_helper.cmake +53 -0
  53. package/deps/zlib/contrib/ada/cmake/shared_link_helper.cmake +52 -0
  54. package/deps/zlib/contrib/ada/cmake/static_link_helper.cmake +25 -0
  55. package/deps/zlib/contrib/ada/mtest.adb +156 -0
  56. package/deps/zlib/contrib/ada/read.adb +156 -0
  57. package/deps/zlib/contrib/ada/readme.txt +65 -0
  58. package/deps/zlib/contrib/ada/test.adb +463 -0
  59. package/deps/zlib/contrib/ada/zlib-streams.adb +225 -0
  60. package/deps/zlib/contrib/ada/zlib-streams.ads +114 -0
  61. package/deps/zlib/contrib/ada/zlib-thin.adb +142 -0
  62. package/deps/zlib/contrib/ada/zlib-thin.ads +450 -0
  63. package/deps/zlib/contrib/ada/zlib.adb +701 -0
  64. package/deps/zlib/contrib/ada/zlib.ads +328 -0
  65. package/deps/zlib/contrib/ada/zlib.gpr +20 -0
  66. package/deps/zlib/contrib/blast/CMakeLists.txt +166 -0
  67. package/deps/zlib/contrib/blast/Makefile +14 -0
  68. package/deps/zlib/contrib/blast/README +4 -0
  69. package/deps/zlib/contrib/blast/blast-test.c +42 -0
  70. package/deps/zlib/contrib/blast/blast.c +422 -0
  71. package/deps/zlib/contrib/blast/blast.h +84 -0
  72. package/deps/zlib/contrib/blast/blastConfig.cmake.in +18 -0
  73. package/deps/zlib/contrib/blast/test/CMakeLists.txt +193 -0
  74. package/deps/zlib/contrib/blast/test/add_subdirectory_exclude_test.cmake.in +27 -0
  75. package/deps/zlib/contrib/blast/test/add_subdirectory_test.cmake.in +25 -0
  76. package/deps/zlib/contrib/blast/test/find_package_no_components_test.cmake.in +24 -0
  77. package/deps/zlib/contrib/blast/test/find_package_test.cmake.in +24 -0
  78. package/deps/zlib/contrib/blast/test/find_package_wrong_components_test.cmake.in +24 -0
  79. package/deps/zlib/contrib/blast/test.pk +0 -0
  80. package/deps/zlib/contrib/blast/test.txt +1 -0
  81. package/deps/zlib/contrib/blast/tester.cmake +28 -0
  82. package/deps/zlib/contrib/crc32vx/CMakeLists.txt +67 -0
  83. package/deps/zlib/contrib/crc32vx/README +9 -0
  84. package/deps/zlib/contrib/crc32vx/crc32_vx.c +254 -0
  85. package/deps/zlib/contrib/crc32vx/crc32_vx_hooks.h +9 -0
  86. package/deps/zlib/contrib/delphi/ZLib.pas +557 -0
  87. package/deps/zlib/contrib/delphi/ZLibConst.pas +11 -0
  88. package/deps/zlib/contrib/delphi/readme.txt +76 -0
  89. package/deps/zlib/contrib/delphi/zlibd32.mak +99 -0
  90. package/deps/zlib/contrib/dotzlib/DotZLib/AssemblyInfo.cs +58 -0
  91. package/deps/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs +202 -0
  92. package/deps/zlib/contrib/dotzlib/DotZLib/CircularBuffer.cs +83 -0
  93. package/deps/zlib/contrib/dotzlib/DotZLib/CodecBase.cs +198 -0
  94. package/deps/zlib/contrib/dotzlib/DotZLib/Deflater.cs +106 -0
  95. package/deps/zlib/contrib/dotzlib/DotZLib/DotZLib.cs +288 -0
  96. package/deps/zlib/contrib/dotzlib/DotZLib/DotZLib.csproj +141 -0
  97. package/deps/zlib/contrib/dotzlib/DotZLib/GZipStream.cs +301 -0
  98. package/deps/zlib/contrib/dotzlib/DotZLib/Inflater.cs +105 -0
  99. package/deps/zlib/contrib/dotzlib/DotZLib/UnitTests.cs +274 -0
  100. package/deps/zlib/contrib/dotzlib/DotZLib.build +33 -0
  101. package/deps/zlib/contrib/dotzlib/DotZLib.chm +0 -0
  102. package/deps/zlib/contrib/dotzlib/DotZLib.sln +21 -0
  103. package/deps/zlib/contrib/dotzlib/LICENSE_1_0.txt +23 -0
  104. package/deps/zlib/contrib/dotzlib/readme.txt +58 -0
  105. package/deps/zlib/contrib/gcc_gvmat64/CMakeLists.txt +19 -0
  106. package/deps/zlib/contrib/gcc_gvmat64/gvmat64.S +570 -0
  107. package/deps/zlib/contrib/infback9/CMakeLists.txt +19 -0
  108. package/deps/zlib/contrib/infback9/README +1 -0
  109. package/deps/zlib/contrib/infback9/infback9.c +603 -0
  110. package/deps/zlib/contrib/infback9/infback9.h +37 -0
  111. package/deps/zlib/contrib/infback9/inffix9.h +107 -0
  112. package/deps/zlib/contrib/infback9/inflate9.h +47 -0
  113. package/deps/zlib/contrib/infback9/inftree9.c +319 -0
  114. package/deps/zlib/contrib/infback9/inftree9.h +61 -0
  115. package/deps/zlib/contrib/iostream/test.cpp +24 -0
  116. package/deps/zlib/contrib/iostream/zfstream.cpp +329 -0
  117. package/deps/zlib/contrib/iostream/zfstream.h +128 -0
  118. package/deps/zlib/contrib/iostream2/zstream.h +306 -0
  119. package/deps/zlib/contrib/iostream2/zstream_test.cpp +25 -0
  120. package/deps/zlib/contrib/iostream3/CMakeLists.txt +200 -0
  121. package/deps/zlib/contrib/iostream3/README +35 -0
  122. package/deps/zlib/contrib/iostream3/TODO +17 -0
  123. package/deps/zlib/contrib/iostream3/iostream3Config.cmake.in +23 -0
  124. package/deps/zlib/contrib/iostream3/test/CMakeLists.txt +191 -0
  125. package/deps/zlib/contrib/iostream3/test/add_subdirectory_exclude_test.cmake.in +27 -0
  126. package/deps/zlib/contrib/iostream3/test/add_subdirectory_test.cmake.in +25 -0
  127. package/deps/zlib/contrib/iostream3/test/find_package_no_components_test.cmake.in +24 -0
  128. package/deps/zlib/contrib/iostream3/test/find_package_test.cmake.in +24 -0
  129. package/deps/zlib/contrib/iostream3/test/find_package_wrong_components_test.cmake.in +24 -0
  130. package/deps/zlib/contrib/iostream3/test.cc +50 -0
  131. package/deps/zlib/contrib/iostream3/zfstream.cc +479 -0
  132. package/deps/zlib/contrib/iostream3/zfstream.h +466 -0
  133. package/deps/zlib/contrib/minizip/CMakeLists.txt +387 -0
  134. package/deps/zlib/contrib/minizip/LICENSE.Info-Zip +58 -0
  135. package/deps/zlib/contrib/minizip/Makefile +33 -0
  136. package/deps/zlib/contrib/minizip/Makefile.am +45 -0
  137. package/deps/zlib/contrib/minizip/MiniZip64_Changes.txt +6 -0
  138. package/deps/zlib/contrib/minizip/MiniZip64_info.txt +69 -0
  139. package/deps/zlib/contrib/minizip/configure.ac +32 -0
  140. package/deps/zlib/contrib/minizip/crypt.h +125 -0
  141. package/deps/zlib/contrib/minizip/ints.h +57 -0
  142. package/deps/zlib/contrib/minizip/ioapi.c +231 -0
  143. package/deps/zlib/contrib/minizip/ioapi.h +183 -0
  144. package/deps/zlib/contrib/minizip/iowin32.c +447 -0
  145. package/deps/zlib/contrib/minizip/iowin32.h +27 -0
  146. package/deps/zlib/contrib/minizip/make_vms.com +25 -0
  147. package/deps/zlib/contrib/minizip/miniunz.c +647 -0
  148. package/deps/zlib/contrib/minizip/miniunzip.1 +63 -0
  149. package/deps/zlib/contrib/minizip/minizip.1 +46 -0
  150. package/deps/zlib/contrib/minizip/minizip.c +511 -0
  151. package/deps/zlib/contrib/minizip/minizip.pc.in +13 -0
  152. package/deps/zlib/contrib/minizip/minizip.pc.txt +13 -0
  153. package/deps/zlib/contrib/minizip/minizipConfig.cmake.in +27 -0
  154. package/deps/zlib/contrib/minizip/mztools.c +294 -0
  155. package/deps/zlib/contrib/minizip/mztools.h +37 -0
  156. package/deps/zlib/contrib/minizip/skipset.h +366 -0
  157. package/deps/zlib/contrib/minizip/test/CMakeLists.txt +176 -0
  158. package/deps/zlib/contrib/minizip/test/add_subdirectory_exclude_test.cmake.in +29 -0
  159. package/deps/zlib/contrib/minizip/test/add_subdirectory_test.cmake.in +28 -0
  160. package/deps/zlib/contrib/minizip/test/find_package_no_components_test.cmake.in +26 -0
  161. package/deps/zlib/contrib/minizip/test/find_package_test.cmake.in +26 -0
  162. package/deps/zlib/contrib/minizip/test/find_package_wrong_components_test.cmake.in +26 -0
  163. package/deps/zlib/contrib/minizip/test/test_helper.cm +32 -0
  164. package/deps/zlib/contrib/minizip/unzip.c +1984 -0
  165. package/deps/zlib/contrib/minizip/unzip.h +442 -0
  166. package/deps/zlib/contrib/minizip/zip.c +2246 -0
  167. package/deps/zlib/contrib/minizip/zip.h +371 -0
  168. package/deps/zlib/contrib/nuget/nuget.csproj +45 -0
  169. package/deps/zlib/contrib/nuget/nuget.sln +22 -0
  170. package/deps/zlib/contrib/pascal/example.pas +599 -0
  171. package/deps/zlib/contrib/pascal/readme.txt +76 -0
  172. package/deps/zlib/contrib/pascal/zlibd32.mak +99 -0
  173. package/deps/zlib/contrib/pascal/zlibpas.pas +276 -0
  174. package/deps/zlib/contrib/puff/CMakeLists.txt +154 -0
  175. package/deps/zlib/contrib/puff/Makefile +42 -0
  176. package/deps/zlib/contrib/puff/README +63 -0
  177. package/deps/zlib/contrib/puff/bin-writer.c +26 -0
  178. package/deps/zlib/contrib/puff/puff.c +840 -0
  179. package/deps/zlib/contrib/puff/puff.h +35 -0
  180. package/deps/zlib/contrib/puff/puffConfig.cmake.in +18 -0
  181. package/deps/zlib/contrib/puff/pufftest.c +168 -0
  182. package/deps/zlib/contrib/puff/test/CMakeLists.txt +262 -0
  183. package/deps/zlib/contrib/puff/test/add_subdirectory_exclude_test.cmake.in +26 -0
  184. package/deps/zlib/contrib/puff/test/add_subdirectory_test.cmake.in +25 -0
  185. package/deps/zlib/contrib/puff/test/find_package_no_components_test.cmake.in +24 -0
  186. package/deps/zlib/contrib/puff/test/find_package_test.cmake.in +24 -0
  187. package/deps/zlib/contrib/puff/test/find_package_wrong_components_test.cmake.in +24 -0
  188. package/deps/zlib/contrib/puff/test/tester-cov.cmake +58 -0
  189. package/deps/zlib/contrib/puff/test/tester.cmake +16 -0
  190. package/deps/zlib/contrib/puff/zeros.raw +0 -0
  191. package/deps/zlib/contrib/testzlib/CMakeLists.txt +44 -0
  192. package/deps/zlib/contrib/testzlib/testzlib.c +275 -0
  193. package/deps/zlib/contrib/testzlib/testzlib.txt +10 -0
  194. package/deps/zlib/contrib/vstudio/readme.txt +22 -0
  195. package/deps/zlib/contrib/zlib1-dll/CMakeLists.txt +196 -0
  196. package/deps/zlib/contrib/zlib1-dll/readme.txt +21 -0
  197. package/deps/zlib/crc32.c +983 -0
  198. package/deps/zlib/crc32.h +9446 -0
  199. package/deps/zlib/deflate.c +2185 -0
  200. package/deps/zlib/deflate.h +383 -0
  201. package/deps/zlib/doc/algorithm.txt +209 -0
  202. package/deps/zlib/doc/crc-doc.1.0.pdf +0 -0
  203. package/deps/zlib/doc/rfc1950.txt +619 -0
  204. package/deps/zlib/doc/rfc1951.txt +955 -0
  205. package/deps/zlib/doc/rfc1952.txt +675 -0
  206. package/deps/zlib/doc/txtvsbin.txt +107 -0
  207. package/deps/zlib/examples/README.examples +54 -0
  208. package/deps/zlib/examples/enough.c +597 -0
  209. package/deps/zlib/examples/fitblk.c +233 -0
  210. package/deps/zlib/examples/gun.c +702 -0
  211. package/deps/zlib/examples/gzappend.c +504 -0
  212. package/deps/zlib/examples/gzjoin.c +449 -0
  213. package/deps/zlib/examples/gzlog.c +1061 -0
  214. package/deps/zlib/examples/gzlog.h +91 -0
  215. package/deps/zlib/examples/gznorm.c +474 -0
  216. package/deps/zlib/examples/zlib_how.html +550 -0
  217. package/deps/zlib/examples/zpipe.c +206 -0
  218. package/deps/zlib/examples/zran.c +546 -0
  219. package/deps/zlib/examples/zran.h +53 -0
  220. package/deps/zlib/gzclose.c +23 -0
  221. package/deps/zlib/gzguts.h +216 -0
  222. package/deps/zlib/gzlib.c +609 -0
  223. package/deps/zlib/gzread.c +668 -0
  224. package/deps/zlib/gzwrite.c +700 -0
  225. package/deps/zlib/infback.c +581 -0
  226. package/deps/zlib/inffast.c +321 -0
  227. package/deps/zlib/inffast.h +11 -0
  228. package/deps/zlib/inffixed.h +94 -0
  229. package/deps/zlib/inflate.c +1413 -0
  230. package/deps/zlib/inflate.h +126 -0
  231. package/deps/zlib/inftrees.c +424 -0
  232. package/deps/zlib/inftrees.h +64 -0
  233. package/deps/zlib/make_vms.com +867 -0
  234. package/deps/zlib/msdos/Makefile.bor +115 -0
  235. package/deps/zlib/msdos/Makefile.dj2 +104 -0
  236. package/deps/zlib/msdos/Makefile.emx +69 -0
  237. package/deps/zlib/msdos/Makefile.msc +112 -0
  238. package/deps/zlib/msdos/Makefile.tc +100 -0
  239. package/deps/zlib/os400/README400 +48 -0
  240. package/deps/zlib/os400/bndsrc +144 -0
  241. package/deps/zlib/os400/make.sh +383 -0
  242. package/deps/zlib/os400/zlibfixed.rpgle +578 -0
  243. package/deps/zlib/os400/zlibfree.rpgle +634 -0
  244. package/deps/zlib/qnx/package.qpg +141 -0
  245. package/deps/zlib/test/CMakeLists.txt +318 -0
  246. package/deps/zlib/test/add_subdirectory_exclude_test.cmake.in +29 -0
  247. package/deps/zlib/test/add_subdirectory_test.cmake.in +28 -0
  248. package/deps/zlib/test/example.c +552 -0
  249. package/deps/zlib/test/find_package_no_components_test.cmake.in +27 -0
  250. package/deps/zlib/test/find_package_test.cmake.in +27 -0
  251. package/deps/zlib/test/find_package_wrong_components_test.cmake.in +27 -0
  252. package/deps/zlib/test/infcover.c +672 -0
  253. package/deps/zlib/test/minigzip.c +592 -0
  254. package/deps/zlib/treebuild.xml +116 -0
  255. package/deps/zlib/trees.c +1119 -0
  256. package/deps/zlib/trees.h +128 -0
  257. package/deps/zlib/uncompr.c +101 -0
  258. package/deps/zlib/watcom/watcom_f.mak +43 -0
  259. package/deps/zlib/watcom/watcom_l.mak +43 -0
  260. package/deps/zlib/win32/DLL_FAQ.txt +381 -0
  261. package/deps/zlib/win32/Makefile.bor +109 -0
  262. package/deps/zlib/win32/Makefile.gcc +177 -0
  263. package/deps/zlib/win32/Makefile.msc +159 -0
  264. package/deps/zlib/win32/README-WIN32.txt +103 -0
  265. package/deps/zlib/win32/VisualC.txt +3 -0
  266. package/deps/zlib/win32/zlib.def +104 -0
  267. package/deps/zlib/win32/zlib1.rc +37 -0
  268. package/deps/zlib/zconf.h.in +551 -0
  269. package/deps/zlib/zlib.3 +149 -0
  270. package/deps/zlib/zlib.3.pdf +0 -0
  271. package/deps/zlib/zlib.h +2057 -0
  272. package/deps/zlib/zlib.map +116 -0
  273. package/deps/zlib/zlib.pc.cmakein +14 -0
  274. package/deps/zlib/zlib.pc.in +14 -0
  275. package/deps/zlib/zlibConfig.cmake.in +18 -0
  276. package/deps/zlib/zutil.c +313 -0
  277. package/deps/zlib/zutil.h +331 -0
  278. package/dist/index.d.ts +266 -0
  279. package/dist/index.js +1146 -0
  280. package/dist/libwz.js +5632 -0
  281. package/dist/libwz.wasm +0 -0
  282. package/include/wz/CRC32.h +182 -0
  283. package/include/wz/PngUtility.h +72 -0
  284. package/include/wz/PortalType.h +124 -0
  285. package/include/wz/Properties/WzBinaryProperty.h +70 -0
  286. package/include/wz/Properties/WzCanvasProperty.h +55 -0
  287. package/include/wz/Properties/WzConvexProperty.h +34 -0
  288. package/include/wz/Properties/WzDoubleProperty.h +32 -0
  289. package/include/wz/Properties/WzFloatProperty.h +30 -0
  290. package/include/wz/Properties/WzIntProperty.h +30 -0
  291. package/include/wz/Properties/WzLongProperty.h +30 -0
  292. package/include/wz/Properties/WzLuaProperty.h +31 -0
  293. package/include/wz/Properties/WzNullProperty.h +15 -0
  294. package/include/wz/Properties/WzPngProperty.h +53 -0
  295. package/include/wz/Properties/WzRawDataProperty.h +46 -0
  296. package/include/wz/Properties/WzShortProperty.h +31 -0
  297. package/include/wz/Properties/WzStringProperty.h +32 -0
  298. package/include/wz/Properties/WzSubProperty.h +35 -0
  299. package/include/wz/Properties/WzUOLProperty.h +44 -0
  300. package/include/wz/Properties/WzVectorProperty.h +40 -0
  301. package/include/wz/Properties/WzVideoProperty.h +43 -0
  302. package/include/wz/Result.h +58 -0
  303. package/include/wz/Util/Defines.h +16 -0
  304. package/include/wz/Util/ListFileParser.h +20 -0
  305. package/include/wz/Util/WzBinaryReader.h +95 -0
  306. package/include/wz/Util/WzBinaryWriter.h +72 -0
  307. package/include/wz/Util/WzBlobDataSource.h +30 -0
  308. package/include/wz/Util/WzDataSource.h +49 -0
  309. package/include/wz/Util/WzKeyGenerator.h +28 -0
  310. package/include/wz/Util/WzMutableKey.h +39 -0
  311. package/include/wz/Util/WzPath.h +37 -0
  312. package/include/wz/Util/WzStream.h +86 -0
  313. package/include/wz/Util/WzTool.h +42 -0
  314. package/include/wz/WzAESConstant.h +17 -0
  315. package/include/wz/WzDirectory.h +97 -0
  316. package/include/wz/WzEnums.h +76 -0
  317. package/include/wz/WzFile.h +99 -0
  318. package/include/wz/WzHeader.h +47 -0
  319. package/include/wz/WzImage.h +97 -0
  320. package/include/wz/WzImageProperty.h +92 -0
  321. package/include/wz/WzObject.h +55 -0
  322. package/include/wz/WzPropertyCollection.h +115 -0
  323. package/include/wz/wz.h +41 -0
  324. package/include/wz/wz_api.h +432 -0
  325. package/package.json +93 -0
  326. package/src/PngUtility.cpp +328 -0
  327. package/src/Properties/WzBinaryProperty.cpp +183 -0
  328. package/src/Properties/WzCanvasProperty.cpp +262 -0
  329. package/src/Properties/WzConvexProperty.cpp +159 -0
  330. package/src/Properties/WzDoubleProperty.cpp +12 -0
  331. package/src/Properties/WzFloatProperty.cpp +17 -0
  332. package/src/Properties/WzIntProperty.cpp +12 -0
  333. package/src/Properties/WzLongProperty.cpp +12 -0
  334. package/src/Properties/WzLuaProperty.cpp +37 -0
  335. package/src/Properties/WzNullProperty.cpp +11 -0
  336. package/src/Properties/WzPngProperty.cpp +637 -0
  337. package/src/Properties/WzRawDataProperty.cpp +116 -0
  338. package/src/Properties/WzShortProperty.cpp +12 -0
  339. package/src/Properties/WzStringProperty.cpp +44 -0
  340. package/src/Properties/WzSubProperty.cpp +129 -0
  341. package/src/Properties/WzUOLProperty.cpp +136 -0
  342. package/src/Properties/WzVectorProperty.cpp +22 -0
  343. package/src/Properties/WzVideoProperty.cpp +115 -0
  344. package/src/Util/ListFileParser.cpp +48 -0
  345. package/src/Util/WzBinaryReader.cpp +368 -0
  346. package/src/Util/WzBinaryWriter.cpp +305 -0
  347. package/src/Util/WzBlobDataSource.cpp +47 -0
  348. package/src/Util/WzDataSource.cpp +61 -0
  349. package/src/Util/WzKeyGenerator.cpp +43 -0
  350. package/src/Util/WzMutableKey.cpp +59 -0
  351. package/src/Util/WzStream.cpp +196 -0
  352. package/src/Util/WzTool.cpp +266 -0
  353. package/src/WzAESConstant.cpp +12 -0
  354. package/src/WzDirectory.cpp +669 -0
  355. package/src/WzEnums.cpp +20 -0
  356. package/src/WzFile.cpp +450 -0
  357. package/src/WzImage.cpp +350 -0
  358. package/src/WzImageProperty.cpp +469 -0
  359. package/src/WzObject.cpp +174 -0
  360. package/src/WzPropertyCollection.cpp +84 -0
  361. package/src/capi/wz_api.cpp +1996 -0
  362. package/src/node/binding.cpp +1776 -0
@@ -0,0 +1,551 @@
1
+ /* zconf.h -- configuration of the zlib compression library
2
+ * Copyright (C) 1995-2026 Jean-loup Gailly, Mark Adler
3
+ * For conditions of distribution and use, see copyright notice in zlib.h
4
+ */
5
+
6
+ /* @(#) $Id$ */
7
+
8
+ #ifndef ZCONF_H
9
+ #define ZCONF_H
10
+
11
+ /*
12
+ * If you *really* need a unique prefix for all types and library functions,
13
+ * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
14
+ * Even better than compiling with -DZ_PREFIX would be to use configure to set
15
+ * this permanently in zconf.h using "./configure --zprefix".
16
+ */
17
+ #ifdef Z_PREFIX /* may be set to #if 1 by ./configure */
18
+ # define Z_PREFIX_SET
19
+
20
+ /* all linked symbols and init macros */
21
+ # define _dist_code z__dist_code
22
+ # define _length_code z__length_code
23
+ # define _tr_align z__tr_align
24
+ # define _tr_flush_bits z__tr_flush_bits
25
+ # define _tr_flush_block z__tr_flush_block
26
+ # define _tr_init z__tr_init
27
+ # define _tr_stored_block z__tr_stored_block
28
+ # define _tr_tally z__tr_tally
29
+ # define adler32 z_adler32
30
+ # define adler32_combine z_adler32_combine
31
+ # define adler32_combine64 z_adler32_combine64
32
+ # define adler32_z z_adler32_z
33
+ # ifndef Z_SOLO
34
+ # define compress z_compress
35
+ # define compress2 z_compress2
36
+ # define compress_z z_compress_z
37
+ # define compress2_z z_compress2_z
38
+ # define compressBound z_compressBound
39
+ # define compressBound_z z_compressBound_z
40
+ # endif
41
+ # define crc32 z_crc32
42
+ # define crc32_combine z_crc32_combine
43
+ # define crc32_combine64 z_crc32_combine64
44
+ # define crc32_combine_gen z_crc32_combine_gen
45
+ # define crc32_combine_gen64 z_crc32_combine_gen64
46
+ # define crc32_combine_op z_crc32_combine_op
47
+ # define crc32_z z_crc32_z
48
+ # define deflate z_deflate
49
+ # define deflateBound z_deflateBound
50
+ # define deflateBound_z z_deflateBound_z
51
+ # define deflateCopy z_deflateCopy
52
+ # define deflateEnd z_deflateEnd
53
+ # define deflateGetDictionary z_deflateGetDictionary
54
+ # define deflateInit z_deflateInit
55
+ # define deflateInit2 z_deflateInit2
56
+ # define deflateInit2_ z_deflateInit2_
57
+ # define deflateInit_ z_deflateInit_
58
+ # define deflateParams z_deflateParams
59
+ # define deflatePending z_deflatePending
60
+ # define deflatePrime z_deflatePrime
61
+ # define deflateReset z_deflateReset
62
+ # define deflateResetKeep z_deflateResetKeep
63
+ # define deflateSetDictionary z_deflateSetDictionary
64
+ # define deflateSetHeader z_deflateSetHeader
65
+ # define deflateTune z_deflateTune
66
+ # define deflateUsed z_deflateUsed
67
+ # define deflate_copyright z_deflate_copyright
68
+ # define get_crc_table z_get_crc_table
69
+ # ifndef Z_SOLO
70
+ # define gz_error z_gz_error
71
+ # define gz_intmax z_gz_intmax
72
+ # define gz_strwinerror z_gz_strwinerror
73
+ # define gzbuffer z_gzbuffer
74
+ # define gzclearerr z_gzclearerr
75
+ # define gzclose z_gzclose
76
+ # define gzclose_r z_gzclose_r
77
+ # define gzclose_w z_gzclose_w
78
+ # define gzdirect z_gzdirect
79
+ # define gzdopen z_gzdopen
80
+ # define gzeof z_gzeof
81
+ # define gzerror z_gzerror
82
+ # define gzflush z_gzflush
83
+ # define gzfread z_gzfread
84
+ # define gzfwrite z_gzfwrite
85
+ # define gzgetc z_gzgetc
86
+ # define gzgetc_ z_gzgetc_
87
+ # define gzgets z_gzgets
88
+ # define gzoffset z_gzoffset
89
+ # define gzoffset64 z_gzoffset64
90
+ # define gzopen z_gzopen
91
+ # define gzopen64 z_gzopen64
92
+ # ifdef _WIN32
93
+ # define gzopen_w z_gzopen_w
94
+ # endif
95
+ # define gzprintf z_gzprintf
96
+ # define gzputc z_gzputc
97
+ # define gzputs z_gzputs
98
+ # define gzread z_gzread
99
+ # define gzrewind z_gzrewind
100
+ # define gzseek z_gzseek
101
+ # define gzseek64 z_gzseek64
102
+ # define gzsetparams z_gzsetparams
103
+ # define gztell z_gztell
104
+ # define gztell64 z_gztell64
105
+ # define gzungetc z_gzungetc
106
+ # define gzvprintf z_gzvprintf
107
+ # define gzwrite z_gzwrite
108
+ # endif
109
+ # define inflate z_inflate
110
+ # define inflateBack z_inflateBack
111
+ # define inflateBackEnd z_inflateBackEnd
112
+ # define inflateBackInit z_inflateBackInit
113
+ # define inflateBackInit_ z_inflateBackInit_
114
+ # define inflateCodesUsed z_inflateCodesUsed
115
+ # define inflateCopy z_inflateCopy
116
+ # define inflateEnd z_inflateEnd
117
+ # define inflateGetDictionary z_inflateGetDictionary
118
+ # define inflateGetHeader z_inflateGetHeader
119
+ # define inflateInit z_inflateInit
120
+ # define inflateInit2 z_inflateInit2
121
+ # define inflateInit2_ z_inflateInit2_
122
+ # define inflateInit_ z_inflateInit_
123
+ # define inflateMark z_inflateMark
124
+ # define inflatePrime z_inflatePrime
125
+ # define inflateReset z_inflateReset
126
+ # define inflateReset2 z_inflateReset2
127
+ # define inflateResetKeep z_inflateResetKeep
128
+ # define inflateSetDictionary z_inflateSetDictionary
129
+ # define inflateSync z_inflateSync
130
+ # define inflateSyncPoint z_inflateSyncPoint
131
+ # define inflateUndermine z_inflateUndermine
132
+ # define inflateValidate z_inflateValidate
133
+ # define inflate_copyright z_inflate_copyright
134
+ # define inflate_fast z_inflate_fast
135
+ # define inflate_table z_inflate_table
136
+ # define inflate_fixed z_inflate_fixed
137
+ # ifndef Z_SOLO
138
+ # define uncompress z_uncompress
139
+ # define uncompress2 z_uncompress2
140
+ # define uncompress_z z_uncompress_z
141
+ # define uncompress2_z z_uncompress2_z
142
+ # endif
143
+ # define zError z_zError
144
+ # ifndef Z_SOLO
145
+ # define zcalloc z_zcalloc
146
+ # define zcfree z_zcfree
147
+ # endif
148
+ # define zlibCompileFlags z_zlibCompileFlags
149
+ # define zlibVersion z_zlibVersion
150
+
151
+ /* all zlib typedefs in zlib.h and zconf.h */
152
+ # define Byte z_Byte
153
+ # define Bytef z_Bytef
154
+ # define alloc_func z_alloc_func
155
+ # define charf z_charf
156
+ # define free_func z_free_func
157
+ # ifndef Z_SOLO
158
+ # define gzFile z_gzFile
159
+ # endif
160
+ # define gz_header z_gz_header
161
+ # define gz_headerp z_gz_headerp
162
+ # define in_func z_in_func
163
+ # define intf z_intf
164
+ # define out_func z_out_func
165
+ # define uInt z_uInt
166
+ # define uIntf z_uIntf
167
+ # define uLong z_uLong
168
+ # define uLongf z_uLongf
169
+ # define voidp z_voidp
170
+ # define voidpc z_voidpc
171
+ # define voidpf z_voidpf
172
+
173
+ /* all zlib structs in zlib.h and zconf.h */
174
+ # define gz_header_s z_gz_header_s
175
+ # define internal_state z_internal_state
176
+
177
+ #endif
178
+
179
+ #if defined(__MSDOS__) && !defined(MSDOS)
180
+ # define MSDOS
181
+ #endif
182
+ #if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
183
+ # define OS2
184
+ #endif
185
+ #if defined(_WINDOWS) && !defined(WINDOWS)
186
+ # define WINDOWS
187
+ #endif
188
+ #if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
189
+ # ifndef WIN32
190
+ # define WIN32
191
+ # endif
192
+ #endif
193
+ #if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32)
194
+ # if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__)
195
+ # ifndef SYS16BIT
196
+ # define SYS16BIT
197
+ # endif
198
+ # endif
199
+ #endif
200
+
201
+ /*
202
+ * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
203
+ * than 64k bytes at a time (needed on systems with 16-bit int).
204
+ */
205
+ #ifdef SYS16BIT
206
+ # define MAXSEG_64K
207
+ #endif
208
+ #ifdef MSDOS
209
+ # define UNALIGNED_OK
210
+ #endif
211
+
212
+ #ifdef __STDC_VERSION__
213
+ # ifndef STDC
214
+ # define STDC
215
+ # endif
216
+ # if __STDC_VERSION__ >= 199901L
217
+ # ifndef STDC99
218
+ # define STDC99
219
+ # endif
220
+ # endif
221
+ #endif
222
+ #if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus))
223
+ # define STDC
224
+ #endif
225
+ #if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__))
226
+ # define STDC
227
+ #endif
228
+ #if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32))
229
+ # define STDC
230
+ #endif
231
+ #if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__))
232
+ # define STDC
233
+ #endif
234
+
235
+ #if defined(__OS400__) && !defined(STDC) /* iSeries (formerly AS/400). */
236
+ # define STDC
237
+ #endif
238
+
239
+ #ifndef STDC
240
+ # ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
241
+ # define const /* note: need a more gentle solution here */
242
+ # endif
243
+ #endif
244
+
245
+ #ifndef z_const
246
+ # ifdef ZLIB_CONST
247
+ # define z_const const
248
+ # else
249
+ # define z_const
250
+ # endif
251
+ #endif
252
+
253
+ #ifdef Z_SOLO
254
+ # ifdef _WIN64
255
+ typedef unsigned long long z_size_t;
256
+ # else
257
+ typedef unsigned long z_size_t;
258
+ # endif
259
+ #else
260
+ # define z_longlong long long
261
+ # if defined(NO_SIZE_T)
262
+ typedef unsigned NO_SIZE_T z_size_t;
263
+ # elif defined(STDC)
264
+ # include <stddef.h>
265
+ typedef size_t z_size_t;
266
+ # else
267
+ typedef unsigned long z_size_t;
268
+ # endif
269
+ # undef z_longlong
270
+ #endif
271
+
272
+ /* Maximum value for memLevel in deflateInit2 */
273
+ #ifndef MAX_MEM_LEVEL
274
+ # ifdef MAXSEG_64K
275
+ # define MAX_MEM_LEVEL 8
276
+ # else
277
+ # define MAX_MEM_LEVEL 9
278
+ # endif
279
+ #endif
280
+
281
+ /* Maximum value for windowBits in deflateInit2 and inflateInit2.
282
+ * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
283
+ * created by gzip. (Files created by minigzip can still be extracted by
284
+ * gzip.)
285
+ */
286
+ #ifndef MAX_WBITS
287
+ # define MAX_WBITS 15 /* 32K LZ77 window */
288
+ #endif
289
+
290
+ /* The memory requirements for deflate are (in bytes):
291
+ (1 << (windowBits+2)) + (1 << (memLevel+9))
292
+ that is: 128K for windowBits=15 + 128K for memLevel = 8 (default values)
293
+ plus a few kilobytes for small objects. For example, if you want to reduce
294
+ the default memory requirements from 256K to 128K, compile with
295
+ make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
296
+ Of course this will generally degrade compression (there's no free lunch).
297
+
298
+ The memory requirements for inflate are (in bytes) 1 << windowBits
299
+ that is, 32K for windowBits=15 (default value) plus about 7 kilobytes
300
+ for small objects.
301
+ */
302
+
303
+ /* Type declarations */
304
+
305
+ #ifndef OF /* function prototypes */
306
+ # ifdef STDC
307
+ # define OF(args) args
308
+ # else
309
+ # define OF(args) ()
310
+ # endif
311
+ #endif
312
+
313
+ /* The following definitions for FAR are needed only for MSDOS mixed
314
+ * model programming (small or medium model with some far allocations).
315
+ * This was tested only with MSC; for other MSDOS compilers you may have
316
+ * to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
317
+ * just define FAR to be empty.
318
+ */
319
+ #ifdef SYS16BIT
320
+ # if defined(M_I86SM) || defined(M_I86MM)
321
+ /* MSC small or medium model */
322
+ # define SMALL_MEDIUM
323
+ # ifdef _MSC_VER
324
+ # define FAR _far
325
+ # else
326
+ # define FAR far
327
+ # endif
328
+ # endif
329
+ # if (defined(__SMALL__) || defined(__MEDIUM__))
330
+ /* Turbo C small or medium model */
331
+ # define SMALL_MEDIUM
332
+ # ifdef __BORLANDC__
333
+ # define FAR _far
334
+ # else
335
+ # define FAR far
336
+ # endif
337
+ # endif
338
+ #endif
339
+
340
+ #if defined(WINDOWS) || defined(WIN32)
341
+ /* If building or using zlib as a DLL, define ZLIB_DLL.
342
+ * This is not mandatory, but it offers a little performance increase.
343
+ */
344
+ # ifdef ZLIB_DLL
345
+ # if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
346
+ # ifdef ZLIB_INTERNAL
347
+ # define ZEXTERN extern __declspec(dllexport)
348
+ # else
349
+ # define ZEXTERN extern __declspec(dllimport)
350
+ # endif
351
+ # endif
352
+ # endif /* ZLIB_DLL */
353
+ /* If building or using zlib with the WINAPI/WINAPIV calling convention,
354
+ * define ZLIB_WINAPI.
355
+ * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI.
356
+ */
357
+ # ifdef ZLIB_WINAPI
358
+ # ifdef FAR
359
+ # undef FAR
360
+ # endif
361
+ # ifndef WIN32_LEAN_AND_MEAN
362
+ # define WIN32_LEAN_AND_MEAN
363
+ # endif
364
+ # include <windows.h>
365
+ /* No need for _export, use ZLIB.DEF instead. */
366
+ /* For complete Windows compatibility, use WINAPI, not __stdcall. */
367
+ # define ZEXPORT WINAPI
368
+ # ifdef WIN32
369
+ # define ZEXPORTVA WINAPIV
370
+ # else
371
+ # define ZEXPORTVA FAR CDECL
372
+ # endif
373
+ # endif
374
+ #endif
375
+
376
+ #if defined (__BEOS__)
377
+ # ifdef ZLIB_DLL
378
+ # ifdef ZLIB_INTERNAL
379
+ # define ZEXPORT __declspec(dllexport)
380
+ # define ZEXPORTVA __declspec(dllexport)
381
+ # else
382
+ # define ZEXPORT __declspec(dllimport)
383
+ # define ZEXPORTVA __declspec(dllimport)
384
+ # endif
385
+ # endif
386
+ #endif
387
+
388
+ #ifndef ZEXTERN
389
+ # define ZEXTERN extern
390
+ #endif
391
+ #ifndef ZEXPORT
392
+ # define ZEXPORT
393
+ #endif
394
+ #ifndef ZEXPORTVA
395
+ # define ZEXPORTVA
396
+ #endif
397
+
398
+ #ifndef FAR
399
+ # define FAR
400
+ #endif
401
+
402
+ #if !defined(__MACTYPES__)
403
+ typedef unsigned char Byte; /* 8 bits */
404
+ #endif
405
+ typedef unsigned int uInt; /* 16 bits or more */
406
+ typedef unsigned long uLong; /* 32 bits or more */
407
+
408
+ #ifdef SMALL_MEDIUM
409
+ /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
410
+ # define Bytef Byte FAR
411
+ #else
412
+ typedef Byte FAR Bytef;
413
+ #endif
414
+ typedef char FAR charf;
415
+ typedef int FAR intf;
416
+ typedef uInt FAR uIntf;
417
+ typedef uLong FAR uLongf;
418
+
419
+ #ifdef STDC
420
+ typedef void const *voidpc;
421
+ typedef void FAR *voidpf;
422
+ typedef void *voidp;
423
+ #else
424
+ typedef Byte const *voidpc;
425
+ typedef Byte FAR *voidpf;
426
+ typedef Byte *voidp;
427
+ #endif
428
+
429
+ #if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC)
430
+ # include <limits.h>
431
+ # if (UINT_MAX == 0xffffffffUL)
432
+ # define Z_U4 unsigned
433
+ # elif (ULONG_MAX == 0xffffffffUL)
434
+ # define Z_U4 unsigned long
435
+ # elif (USHRT_MAX == 0xffffffffUL)
436
+ # define Z_U4 unsigned short
437
+ # endif
438
+ #endif
439
+
440
+ #ifdef Z_U4
441
+ typedef Z_U4 z_crc_t;
442
+ #else
443
+ typedef unsigned long z_crc_t;
444
+ #endif
445
+
446
+ #if HAVE_UNISTD_H-0 /* may be set to #if 1 by ./configure */
447
+ # define Z_HAVE_UNISTD_H
448
+ #endif
449
+
450
+ #if HAVE_STDARG_H-0 /* may be set to #if 1 by ./configure */
451
+ # define Z_HAVE_STDARG_H
452
+ #endif
453
+
454
+ #ifdef STDC
455
+ # ifndef Z_SOLO
456
+ # include <sys/types.h> /* for off_t */
457
+ # endif
458
+ #endif
459
+
460
+ #if defined(STDC) || defined(Z_HAVE_STDARG_H)
461
+ # ifndef Z_SOLO
462
+ # include <stdarg.h> /* for va_list */
463
+ # endif
464
+ #endif
465
+
466
+ #ifdef _WIN32
467
+ # ifndef Z_SOLO
468
+ # include <stddef.h> /* for wchar_t */
469
+ # endif
470
+ #endif
471
+
472
+ /* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
473
+ * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even
474
+ * though the former does not conform to the LFS document), but considering
475
+ * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
476
+ * equivalently requesting no 64-bit operations
477
+ */
478
+ #if defined(_LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1
479
+ # undef _LARGEFILE64_SOURCE
480
+ #endif
481
+
482
+ #ifndef Z_HAVE_UNISTD_H
483
+ # if defined(__WATCOMC__) || defined(__GO32__) || \
484
+ (defined(_LARGEFILE64_SOURCE) && !defined(_WIN32))
485
+ # define Z_HAVE_UNISTD_H
486
+ # endif
487
+ #endif
488
+ #ifndef Z_SOLO
489
+ # if defined(Z_HAVE_UNISTD_H)
490
+ # include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */
491
+ # ifdef VMS
492
+ # include <unixio.h> /* for off_t */
493
+ # endif
494
+ # ifndef z_off_t
495
+ # define z_off_t off_t
496
+ # endif
497
+ # endif
498
+ #endif
499
+
500
+ #if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0
501
+ # define Z_LFS64
502
+ #endif
503
+
504
+ #if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64)
505
+ # define Z_LARGE64
506
+ #endif
507
+
508
+ #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64)
509
+ # define Z_WANT64
510
+ #endif
511
+
512
+ #if !defined(SEEK_SET) && !defined(Z_SOLO)
513
+ # define SEEK_SET 0 /* Seek from beginning of file. */
514
+ # define SEEK_CUR 1 /* Seek from current position. */
515
+ # define SEEK_END 2 /* Set file pointer to EOF plus "offset" */
516
+ #endif
517
+
518
+ #ifndef z_off_t
519
+ # define z_off_t long long
520
+ #endif
521
+
522
+ #if !defined(_WIN32) && defined(Z_LARGE64)
523
+ # define z_off64_t off64_t
524
+ #elif defined(__MINGW32__)
525
+ # define z_off64_t long long
526
+ #elif defined(_WIN32) && !defined(__GNUC__)
527
+ # define z_off64_t __int64
528
+ #elif defined(__GO32__)
529
+ # define z_off64_t offset_t
530
+ #else
531
+ # define z_off64_t z_off_t
532
+ #endif
533
+
534
+ /* MVS linker does not support external names larger than 8 bytes */
535
+ #if defined(__MVS__)
536
+ #pragma map(deflateInit_,"DEIN")
537
+ #pragma map(deflateInit2_,"DEIN2")
538
+ #pragma map(deflateEnd,"DEEND")
539
+ #pragma map(deflateBound,"DEBND")
540
+ #pragma map(inflateInit_,"ININ")
541
+ #pragma map(inflateInit2_,"ININ2")
542
+ #pragma map(inflateEnd,"INEND")
543
+ #pragma map(inflateSync,"INSY")
544
+ #pragma map(inflateSetDictionary,"INSEDI")
545
+ #pragma map(compressBound,"CMBND")
546
+ #pragma map(inflate_table,"INTABL")
547
+ #pragma map(inflate_fast,"INFA")
548
+ #pragma map(inflate_copyright,"INCOPY")
549
+ #endif
550
+
551
+ #endif /* ZCONF_H */
@@ -0,0 +1,149 @@
1
+ .TH ZLIB 3 "17 Feb 2026"
2
+ .SH NAME
3
+ zlib \- compression/decompression library
4
+ .SH SYNOPSIS
5
+ [see
6
+ .I zlib.h
7
+ for full description]
8
+ .SH DESCRIPTION
9
+ The
10
+ .I zlib
11
+ library is a general purpose data compression library.
12
+ The code is thread safe, assuming that the standard library functions
13
+ used are thread safe, such as memory allocation routines.
14
+ It provides in-memory compression and decompression functions,
15
+ including integrity checks of the uncompressed data.
16
+ This version of the library supports only one compression method (deflation)
17
+ but other algorithms may be added later
18
+ with the same stream interface.
19
+ .LP
20
+ Compression can be done in a single step if the buffers are large enough
21
+ or can be done by repeated calls of the compression function.
22
+ In the latter case,
23
+ the application must provide more input and/or consume the output
24
+ (providing more output space) before each call.
25
+ .LP
26
+ The library also supports reading and writing files in
27
+ .IR gzip (1)
28
+ (.gz) format
29
+ with an interface similar to that of stdio.
30
+ .LP
31
+ The library does not install any signal handler.
32
+ The decoder checks the consistency of the compressed data,
33
+ so the library should never crash even in the case of corrupted input.
34
+ .LP
35
+ All functions of the compression library are documented in the file
36
+ .IR zlib.h .
37
+ The distribution source includes examples of use of the library
38
+ in the files
39
+ .I test/example.c
40
+ and
41
+ .IR test/minigzip.c,
42
+ as well as other examples in the
43
+ .IR examples/
44
+ directory.
45
+ .LP
46
+ Changes to this version are documented in the file
47
+ .I ChangeLog
48
+ that accompanies the source.
49
+ .LP
50
+ .I zlib
51
+ is built in to many languages and operating systems, including but not limited to
52
+ Java, Python, .NET, PHP, Perl, Ruby, Swift, and Go.
53
+ .LP
54
+ An experimental package to read and write files in the .zip format,
55
+ written on top of
56
+ .I zlib
57
+ by Gilles Vollant (info@winimage.com),
58
+ is available at:
59
+ .IP
60
+ https://www.winimage.com/zLibDll/minizip.html
61
+ and also in the
62
+ .I contrib/minizip
63
+ directory of the main
64
+ .I zlib
65
+ source distribution.
66
+ .SH "SEE ALSO"
67
+ The
68
+ .I zlib
69
+ web site can be found at:
70
+ .IP
71
+ https://zlib.net/
72
+ .LP
73
+ The data format used by the
74
+ .I zlib
75
+ library is described by RFC
76
+ (Request for Comments) 1950 to 1952 at:
77
+ .IP
78
+ https://datatracker.ietf.org/doc/html/rfc1950 (for the zlib header and trailer format)
79
+ .br
80
+ https://datatracker.ietf.org/doc/html/rfc1951 (for the deflate compressed data format)
81
+ .br
82
+ https://datatracker.ietf.org/doc/html/rfc1952 (for the gzip header and trailer format)
83
+ .LP
84
+ Mark Nelson wrote an article about
85
+ .I zlib
86
+ for the Jan. 1997 issue of Dr. Dobb's Journal;
87
+ a copy of the article is available at:
88
+ .IP
89
+ https://zlib.net/nelson/
90
+ .SH "REPORTING PROBLEMS"
91
+ Before reporting a problem,
92
+ please check the
93
+ .I zlib
94
+ web site to verify that you have the latest version of
95
+ .IR zlib ;
96
+ otherwise,
97
+ obtain the latest version and see if the problem still exists.
98
+ Please read the
99
+ .I zlib
100
+ FAQ at:
101
+ .IP
102
+ https://zlib.net/zlib_faq.html
103
+ .LP
104
+ before asking for help.
105
+ Send questions and/or comments to zlib@gzip.org,
106
+ or (for the Windows DLL version) to Gilles Vollant (info@winimage.com).
107
+ .SH AUTHORS AND LICENSE
108
+ Version 1.3.2
109
+ .LP
110
+ Copyright (C) 1995-2026 Jean-loup Gailly and Mark Adler
111
+ .LP
112
+ This software is provided 'as-is', without any express or implied
113
+ warranty. In no event will the authors be held liable for any damages
114
+ arising from the use of this software.
115
+ .LP
116
+ Permission is granted to anyone to use this software for any purpose,
117
+ including commercial applications, and to alter it and redistribute it
118
+ freely, subject to the following restrictions:
119
+ .LP
120
+ .nr step 1 1
121
+ .IP \n[step]. 3
122
+ The origin of this software must not be misrepresented; you must not
123
+ claim that you wrote the original software. If you use this software
124
+ in a product, an acknowledgment in the product documentation would be
125
+ appreciated but is not required.
126
+ .IP \n+[step].
127
+ Altered source versions must be plainly marked as such, and must not be
128
+ misrepresented as being the original software.
129
+ .IP \n+[step].
130
+ This notice may not be removed or altered from any source distribution.
131
+ .LP
132
+ Jean-loup Gailly Mark Adler
133
+ .br
134
+ jloup@gzip.org madler@alumni.caltech.edu
135
+ .LP
136
+ The deflate format used by
137
+ .I zlib
138
+ was defined by Phil Katz.
139
+ The deflate and
140
+ .I zlib
141
+ specifications were written by L. Peter Deutsch.
142
+ Thanks to all the people who reported problems and suggested various
143
+ improvements in
144
+ .IR zlib ;
145
+ who are too numerous to cite here.
146
+ .LP
147
+ UNIX manual page by R. P. C. Rodgers,
148
+ U.S. National Library of Medicine (rodgers@nlm.nih.gov).
149
+ .\" end of man page
Binary file