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,116 @@
1
+ ZLIB_1.2.0 {
2
+ global:
3
+ compressBound;
4
+ deflateBound;
5
+ inflateBack;
6
+ inflateBackEnd;
7
+ inflateBackInit_;
8
+ inflateCopy;
9
+ local:
10
+ deflate_copyright;
11
+ inflate_copyright;
12
+ inflate_fast;
13
+ inflate_table;
14
+ zcalloc;
15
+ zcfree;
16
+ z_errmsg;
17
+ gz_error;
18
+ gz_intmax;
19
+ _*;
20
+ };
21
+
22
+ ZLIB_1.2.0.2 {
23
+ gzclearerr;
24
+ gzungetc;
25
+ zlibCompileFlags;
26
+ } ZLIB_1.2.0;
27
+
28
+ ZLIB_1.2.0.8 {
29
+ deflatePrime;
30
+ } ZLIB_1.2.0.2;
31
+
32
+ ZLIB_1.2.2 {
33
+ adler32_combine;
34
+ crc32_combine;
35
+ deflateSetHeader;
36
+ inflateGetHeader;
37
+ } ZLIB_1.2.0.8;
38
+
39
+ ZLIB_1.2.2.3 {
40
+ deflateTune;
41
+ gzdirect;
42
+ } ZLIB_1.2.2;
43
+
44
+ ZLIB_1.2.2.4 {
45
+ inflatePrime;
46
+ } ZLIB_1.2.2.3;
47
+
48
+ ZLIB_1.2.3.3 {
49
+ adler32_combine64;
50
+ crc32_combine64;
51
+ gzopen64;
52
+ gzseek64;
53
+ gztell64;
54
+ inflateUndermine;
55
+ } ZLIB_1.2.2.4;
56
+
57
+ ZLIB_1.2.3.4 {
58
+ inflateReset2;
59
+ inflateMark;
60
+ } ZLIB_1.2.3.3;
61
+
62
+ ZLIB_1.2.3.5 {
63
+ gzbuffer;
64
+ gzoffset;
65
+ gzoffset64;
66
+ gzclose_r;
67
+ gzclose_w;
68
+ } ZLIB_1.2.3.4;
69
+
70
+ ZLIB_1.2.5.1 {
71
+ deflatePending;
72
+ } ZLIB_1.2.3.5;
73
+
74
+ ZLIB_1.2.5.2 {
75
+ deflateResetKeep;
76
+ gzgetc_;
77
+ inflateResetKeep;
78
+ } ZLIB_1.2.5.1;
79
+
80
+ ZLIB_1.2.7.1 {
81
+ inflateGetDictionary;
82
+ gzvprintf;
83
+ } ZLIB_1.2.5.2;
84
+
85
+ ZLIB_1.2.9 {
86
+ inflateCodesUsed;
87
+ inflateValidate;
88
+ uncompress2;
89
+ gzfread;
90
+ gzfwrite;
91
+ deflateGetDictionary;
92
+ adler32_z;
93
+ crc32_z;
94
+ } ZLIB_1.2.7.1;
95
+
96
+ ZLIB_1.2.12 {
97
+ crc32_combine_gen;
98
+ crc32_combine_gen64;
99
+ crc32_combine_op;
100
+ } ZLIB_1.2.9;
101
+
102
+ ZLIB_1.3.1.2 {
103
+ deflateUsed;
104
+ } ZLIB_1.2.12;
105
+
106
+ ZLIB_1.3.2 {
107
+ global:
108
+ compressBound_z;
109
+ deflateBound_z;
110
+ compress_z;
111
+ compress2_z;
112
+ uncompress_z;
113
+ uncompress2_z;
114
+ local:
115
+ inflate_fixed;
116
+ } ZLIB_1.3.1.2;
@@ -0,0 +1,14 @@
1
+ prefix=@CMAKE_INSTALL_PREFIX@
2
+ exec_prefix=@CMAKE_INSTALL_PREFIX@
3
+ libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
4
+ sharedlibdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@
5
+ includedir=${exec_prefix}/@CMAKE_INSTALL_INCLUDEDIR@
6
+
7
+ Name: zlib
8
+ Description: zlib compression library
9
+ Version: @zlib_VERSION@
10
+ License: Zlib
11
+
12
+ Requires:
13
+ Libs: -L${libdir} -L${sharedlibdir} -lz
14
+ Cflags: -I${includedir}
@@ -0,0 +1,14 @@
1
+ prefix=@prefix@
2
+ exec_prefix=@exec_prefix@
3
+ libdir=@libdir@
4
+ sharedlibdir=@sharedlibdir@
5
+ includedir=@includedir@
6
+
7
+ Name: zlib
8
+ Description: zlib compression library
9
+ Version: @VERSION@
10
+ License: Zlib
11
+
12
+ Requires:
13
+ Libs: -L${libdir} -L${sharedlibdir} -lz
14
+ Cflags: -I${includedir}
@@ -0,0 +1,18 @@
1
+ @PACKAGE_INIT@
2
+
3
+ set(_ZLIB_supported_components "shared" "static")
4
+
5
+ if(ZLIB_FIND_COMPONENTS)
6
+ foreach(_comp ${ZLIB_FIND_COMPONENTS})
7
+ if(NOT _comp IN_LIST _ZLIB_supported_components)
8
+ set(ZLIB_FOUND False)
9
+ set(ZLIB_NOT_FOUND_MESSAGE "Unsupported component: ${_comp}")
10
+ endif(NOT _comp IN_LIST _ZLIB_supported_components)
11
+
12
+ include("${CMAKE_CURRENT_LIST_DIR}/ZLIB-${_comp}.cmake")
13
+ endforeach(_comp ${ZLIB_FIND_COMPONENTS})
14
+ else(ZLIB_FIND_COMPONENTS)
15
+ foreach(_component_config IN LISTS _ZLIB_supported_components)
16
+ include("${CMAKE_CURRENT_LIST_DIR}/ZLIB-${_component_config}.cmake")
17
+ endforeach(_component_config IN LISTS _ZLIB_supported_components)
18
+ endif(ZLIB_FIND_COMPONENTS)
@@ -0,0 +1,313 @@
1
+ /* zutil.c -- target dependent utility functions for the compression library
2
+ * Copyright (C) 1995-2026 Jean-loup Gailly
3
+ * For conditions of distribution and use, see copyright notice in zlib.h
4
+ */
5
+
6
+ /* @(#) $Id$ */
7
+
8
+ #include "zutil.h"
9
+ #ifndef Z_SOLO
10
+ # include "gzguts.h"
11
+ #endif
12
+
13
+ z_const char * const z_errmsg[10] = {
14
+ (z_const char *)"need dictionary", /* Z_NEED_DICT 2 */
15
+ (z_const char *)"stream end", /* Z_STREAM_END 1 */
16
+ (z_const char *)"", /* Z_OK 0 */
17
+ (z_const char *)"file error", /* Z_ERRNO (-1) */
18
+ (z_const char *)"stream error", /* Z_STREAM_ERROR (-2) */
19
+ (z_const char *)"data error", /* Z_DATA_ERROR (-3) */
20
+ (z_const char *)"insufficient memory", /* Z_MEM_ERROR (-4) */
21
+ (z_const char *)"buffer error", /* Z_BUF_ERROR (-5) */
22
+ (z_const char *)"incompatible version",/* Z_VERSION_ERROR (-6) */
23
+ (z_const char *)""
24
+ };
25
+
26
+
27
+ const char * ZEXPORT zlibVersion(void) {
28
+ return ZLIB_VERSION;
29
+ }
30
+
31
+ uLong ZEXPORT zlibCompileFlags(void) {
32
+ uLong flags;
33
+
34
+ flags = 0;
35
+ switch ((int)(sizeof(uInt))) {
36
+ case 2: break;
37
+ case 4: flags += 1; break;
38
+ case 8: flags += 2; break;
39
+ default: flags += 3;
40
+ }
41
+ switch ((int)(sizeof(uLong))) {
42
+ case 2: break;
43
+ case 4: flags += 1 << 2; break;
44
+ case 8: flags += 2 << 2; break;
45
+ default: flags += 3 << 2;
46
+ }
47
+ switch ((int)(sizeof(voidpf))) {
48
+ case 2: break;
49
+ case 4: flags += 1 << 4; break;
50
+ case 8: flags += 2 << 4; break;
51
+ default: flags += 3 << 4;
52
+ }
53
+ switch ((int)(sizeof(z_off_t))) {
54
+ case 2: break;
55
+ case 4: flags += 1 << 6; break;
56
+ case 8: flags += 2 << 6; break;
57
+ default: flags += 3 << 6;
58
+ }
59
+ #ifdef ZLIB_DEBUG
60
+ flags += 1 << 8;
61
+ #endif
62
+ /*
63
+ #if defined(ASMV) || defined(ASMINF)
64
+ flags += 1 << 9;
65
+ #endif
66
+ */
67
+ #ifdef ZLIB_WINAPI
68
+ flags += 1 << 10;
69
+ #endif
70
+ #ifdef BUILDFIXED
71
+ flags += 1 << 12;
72
+ #endif
73
+ #ifdef DYNAMIC_CRC_TABLE
74
+ flags += 1 << 13;
75
+ #endif
76
+ #ifdef NO_GZCOMPRESS
77
+ flags += 1L << 16;
78
+ #endif
79
+ #ifdef NO_GZIP
80
+ flags += 1L << 17;
81
+ #endif
82
+ #ifdef PKZIP_BUG_WORKAROUND
83
+ flags += 1L << 20;
84
+ #endif
85
+ #ifdef FASTEST
86
+ flags += 1L << 21;
87
+ #endif
88
+ #if defined(STDC) || defined(Z_HAVE_STDARG_H)
89
+ # ifdef NO_vsnprintf
90
+ # ifdef ZLIB_INSECURE
91
+ flags += 1L << 25;
92
+ # else
93
+ flags += 1L << 27;
94
+ # endif
95
+ # ifdef HAS_vsprintf_void
96
+ flags += 1L << 26;
97
+ # endif
98
+ # else
99
+ # ifdef HAS_vsnprintf_void
100
+ flags += 1L << 26;
101
+ # endif
102
+ # endif
103
+ #else
104
+ flags += 1L << 24;
105
+ # ifdef NO_snprintf
106
+ # ifdef ZLIB_INSECURE
107
+ flags += 1L << 25;
108
+ # else
109
+ flags += 1L << 27;
110
+ # endif
111
+ # ifdef HAS_sprintf_void
112
+ flags += 1L << 26;
113
+ # endif
114
+ # else
115
+ # ifdef HAS_snprintf_void
116
+ flags += 1L << 26;
117
+ # endif
118
+ # endif
119
+ #endif
120
+ return flags;
121
+ }
122
+
123
+ #ifdef ZLIB_DEBUG
124
+ #include <stdlib.h>
125
+ # ifndef verbose
126
+ # define verbose 0
127
+ # endif
128
+ int ZLIB_INTERNAL z_verbose = verbose;
129
+
130
+ void ZLIB_INTERNAL z_error(char *m) {
131
+ fprintf(stderr, "%s\n", m);
132
+ exit(1);
133
+ }
134
+ #endif
135
+
136
+ /* exported to allow conversion of error code to string for compress() and
137
+ * uncompress()
138
+ */
139
+ const char * ZEXPORT zError(int err) {
140
+ return ERR_MSG(err);
141
+ }
142
+
143
+ #if defined(_WIN32_WCE) && _WIN32_WCE < 0x800
144
+ /* The older Microsoft C Run-Time Library for Windows CE doesn't have
145
+ * errno. We define it as a global variable to simplify porting.
146
+ * Its value is always 0 and should not be used.
147
+ */
148
+ int errno = 0;
149
+ #endif
150
+
151
+ #ifndef HAVE_MEMCPY
152
+
153
+ void ZLIB_INTERNAL zmemcpy(void FAR *dst, const void FAR *src, z_size_t n) {
154
+ uchf *p = dst;
155
+ const uchf *q = src;
156
+ while (n) {
157
+ *p++ = *q++;
158
+ n--;
159
+ }
160
+ }
161
+
162
+ int ZLIB_INTERNAL zmemcmp(const void FAR *s1, const void FAR *s2, z_size_t n) {
163
+ const uchf *p = s1, *q = s2;
164
+ while (n) {
165
+ if (*p++ != *q++)
166
+ return (int)p[-1] - (int)q[-1];
167
+ n--;
168
+ }
169
+ return 0;
170
+ }
171
+
172
+ void ZLIB_INTERNAL zmemzero(void FAR *b, z_size_t len) {
173
+ uchf *p = b;
174
+ if (len == 0) return;
175
+ while (len) {
176
+ *p++ = 0;
177
+ len--;
178
+ }
179
+ }
180
+
181
+ #endif
182
+
183
+ #ifndef Z_SOLO
184
+
185
+ #ifdef SYS16BIT
186
+
187
+ #ifdef __TURBOC__
188
+ /* Turbo C in 16-bit mode */
189
+
190
+ # define MY_ZCALLOC
191
+
192
+ /* Turbo C malloc() does not allow dynamic allocation of 64K bytes
193
+ * and farmalloc(64K) returns a pointer with an offset of 8, so we
194
+ * must fix the pointer. Warning: the pointer must be put back to its
195
+ * original form in order to free it, use zcfree().
196
+ */
197
+
198
+ #define MAX_PTR 10
199
+ /* 10*64K = 640K */
200
+
201
+ local int next_ptr = 0;
202
+
203
+ typedef struct ptr_table_s {
204
+ voidpf org_ptr;
205
+ voidpf new_ptr;
206
+ } ptr_table;
207
+
208
+ local ptr_table table[MAX_PTR];
209
+ /* This table is used to remember the original form of pointers
210
+ * to large buffers (64K). Such pointers are normalized with a zero offset.
211
+ * Since MSDOS is not a preemptive multitasking OS, this table is not
212
+ * protected from concurrent access. This hack doesn't work anyway on
213
+ * a protected system like OS/2. Use Microsoft C instead.
214
+ */
215
+
216
+ voidpf ZLIB_INTERNAL zcalloc(voidpf opaque, unsigned items, unsigned size) {
217
+ voidpf buf;
218
+ ulg bsize = (ulg)items*size;
219
+
220
+ (void)opaque;
221
+
222
+ /* If we allocate less than 65520 bytes, we assume that farmalloc
223
+ * will return a usable pointer which doesn't have to be normalized.
224
+ */
225
+ if (bsize < 65520L) {
226
+ buf = farmalloc(bsize);
227
+ if (*(ush*)&buf != 0) return buf;
228
+ } else {
229
+ buf = farmalloc(bsize + 16L);
230
+ }
231
+ if (buf == NULL || next_ptr >= MAX_PTR) return NULL;
232
+ table[next_ptr].org_ptr = buf;
233
+
234
+ /* Normalize the pointer to seg:0 */
235
+ *((ush*)&buf+1) += ((ush)((uch*)buf-0) + 15) >> 4;
236
+ *(ush*)&buf = 0;
237
+ table[next_ptr++].new_ptr = buf;
238
+ return buf;
239
+ }
240
+
241
+ void ZLIB_INTERNAL zcfree(voidpf opaque, voidpf ptr) {
242
+ int n;
243
+
244
+ (void)opaque;
245
+
246
+ if (*(ush*)&ptr != 0) { /* object < 64K */
247
+ farfree(ptr);
248
+ return;
249
+ }
250
+ /* Find the original pointer */
251
+ for (n = 0; n < next_ptr; n++) {
252
+ if (ptr != table[n].new_ptr) continue;
253
+
254
+ farfree(table[n].org_ptr);
255
+ while (++n < next_ptr) {
256
+ table[n-1] = table[n];
257
+ }
258
+ next_ptr--;
259
+ return;
260
+ }
261
+ Assert(0, "zcfree: ptr not found");
262
+ }
263
+
264
+ #endif /* __TURBOC__ */
265
+
266
+
267
+ #ifdef M_I86
268
+ /* Microsoft C in 16-bit mode */
269
+
270
+ # define MY_ZCALLOC
271
+
272
+ #if (!defined(_MSC_VER) || (_MSC_VER <= 600))
273
+ # define _halloc halloc
274
+ # define _hfree hfree
275
+ #endif
276
+
277
+ voidpf ZLIB_INTERNAL zcalloc(voidpf opaque, uInt items, uInt size) {
278
+ (void)opaque;
279
+ return _halloc((long)items, size);
280
+ }
281
+
282
+ void ZLIB_INTERNAL zcfree(voidpf opaque, voidpf ptr) {
283
+ (void)opaque;
284
+ _hfree(ptr);
285
+ }
286
+
287
+ #endif /* M_I86 */
288
+
289
+ #endif /* SYS16BIT */
290
+
291
+
292
+ #ifndef MY_ZCALLOC /* Any system without a special alloc function */
293
+
294
+ #ifndef STDC
295
+ extern voidp malloc(uInt size);
296
+ extern voidp calloc(uInt items, uInt size);
297
+ extern void free(voidpf ptr);
298
+ #endif
299
+
300
+ voidpf ZLIB_INTERNAL zcalloc(voidpf opaque, unsigned items, unsigned size) {
301
+ (void)opaque;
302
+ return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) :
303
+ (voidpf)calloc(items, size);
304
+ }
305
+
306
+ void ZLIB_INTERNAL zcfree(voidpf opaque, voidpf ptr) {
307
+ (void)opaque;
308
+ free(ptr);
309
+ }
310
+
311
+ #endif /* MY_ZCALLOC */
312
+
313
+ #endif /* !Z_SOLO */