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,578 @@
1
+ * ZLIB.INC - Interface to the general purpose compression library
2
+ *
3
+ * ILE RPG400 version by Patrick Monnerat, DATASPHERE.
4
+ * Version 1.3.2
5
+ *
6
+ *
7
+ * WARNING:
8
+ * Procedures inflateInit(), inflateInit2(), deflateInit(),
9
+ * deflateInit2() and inflateBackInit() need to be called with
10
+ * two additional arguments:
11
+ * the package version string and the stream control structure.
12
+ * size. This is needed because RPG lacks some macro feature.
13
+ * Call these procedures as:
14
+ * inflateInit(...: ZLIB_VERSION: %size(z_stream))
15
+ *
16
+ /if not defined(ZLIB_H_)
17
+ /define ZLIB_H_
18
+ *
19
+ **************************************************************************
20
+ * Constants
21
+ **************************************************************************
22
+ *
23
+ * Versioning information.
24
+ *
25
+ D ZLIB_VERSION C '1.3.2'
26
+ D ZLIB_VERNUM C X'1320'
27
+ D ZLIB_VER_MAJOR C 1
28
+ D ZLIB_VER_MINOR C 3
29
+ D ZLIB_VER_REVISION...
30
+ D C 2
31
+ D ZLIB_VER_SUBREVISION...
32
+ D C 0
33
+ *
34
+ * Other equates.
35
+ *
36
+ D Z_NO_FLUSH C 0
37
+ D Z_PARTIAL_FLUSH...
38
+ D C 1
39
+ D Z_SYNC_FLUSH C 2
40
+ D Z_FULL_FLUSH C 3
41
+ D Z_FINISH C 4
42
+ D Z_BLOCK C 5
43
+ D Z_TREES C 6
44
+ *
45
+ D Z_OK C 0
46
+ D Z_STREAM_END C 1
47
+ D Z_NEED_DICT C 2
48
+ D Z_ERRNO C -1
49
+ D Z_STREAM_ERROR C -2
50
+ D Z_DATA_ERROR C -3
51
+ D Z_MEM_ERROR C -4
52
+ D Z_BUF_ERROR C -5
53
+ D Z_VERSION_ERROR...
54
+ D C -6
55
+ *
56
+ D Z_NO_COMPRESSION...
57
+ D C 0
58
+ D Z_BEST_SPEED C 1
59
+ D Z_BEST_COMPRESSION...
60
+ D C 9
61
+ D Z_DEFAULT_COMPRESSION...
62
+ D C -1
63
+ *
64
+ D Z_FILTERED C 1
65
+ D Z_HUFFMAN_ONLY C 2
66
+ D Z_RLE C 3
67
+ D Z_DEFAULT_STRATEGY...
68
+ D C 0
69
+ *
70
+ D Z_BINARY C 0
71
+ D Z_ASCII C 1
72
+ D Z_UNKNOWN C 2
73
+ *
74
+ D Z_DEFLATED C 8
75
+ *
76
+ D Z_NULL C 0
77
+ *
78
+ **************************************************************************
79
+ * Types
80
+ **************************************************************************
81
+ *
82
+ D z_streamp S * Stream struct ptr
83
+ D gzFile S * File pointer
84
+ D gz_headerp S *
85
+ D z_off_t S 10i 0 Stream offsets
86
+ D z_off64_t S 20i 0 Stream offsets
87
+ *
88
+ **************************************************************************
89
+ * Structures
90
+ **************************************************************************
91
+ *
92
+ * The GZIP encode/decode stream support structure.
93
+ *
94
+ D z_stream DS align based(z_streamp)
95
+ D zs_next_in * Next input byte
96
+ D zs_avail_in 10U 0 Byte cnt at next_in
97
+ D zs_total_in 10U 0 Total bytes read
98
+ D zs_next_out * Output buffer ptr
99
+ D zs_avail_out 10U 0 Room left @ next_out
100
+ D zs_total_out 10U 0 Total bytes written
101
+ D zs_msg * Last errmsg or null
102
+ D zs_state * Internal state
103
+ D zs_zalloc * procptr Int. state allocator
104
+ D zs_free * procptr Int. state dealloc.
105
+ D zs_opaque * Private alloc. data
106
+ D zs_data_type 10i 0 ASC/BIN best guess
107
+ D zs_adler 10u 0 Uncompr. adler32 val
108
+ D 10U 0 Reserved
109
+ D 10U 0 Ptr. alignment
110
+ *
111
+ **************************************************************************
112
+ * Utility function prototypes
113
+ **************************************************************************
114
+ *
115
+ D compress PR 10I 0 extproc('compress')
116
+ D dest 65535 options(*varsize) Destination buffer
117
+ D destLen 10U 0 Destination length
118
+ D source 65535 const options(*varsize) Source buffer
119
+ D sourceLen 10u 0 value Source length
120
+ *
121
+ D compress2 PR 10I 0 extproc('compress2')
122
+ D dest 65535 options(*varsize) Destination buffer
123
+ D destLen 10U 0 Destination length
124
+ D source 65535 const options(*varsize) Source buffer
125
+ D sourceLen 10U 0 value Source length
126
+ D level 10I 0 value Compression level
127
+ *
128
+ D compress_z PR 10I 0 extproc('compress')
129
+ D dest 65535 options(*varsize) Destination buffer
130
+ D destLen 20U 0 Destination length
131
+ D source 65535 const options(*varsize) Source buffer
132
+ D sourceLen 20u 0 value Source length
133
+ *
134
+ D compress2_z PR 10I 0 extproc('compress2')
135
+ D dest 65535 options(*varsize) Destination buffer
136
+ D destLen 20U 0 Destination length
137
+ D source 65535 const options(*varsize) Source buffer
138
+ D sourceLen 20U 0 value Source length
139
+ D level 10I 0 value Compression level
140
+ *
141
+ D compressBound PR 10U 0 extproc('compressBound')
142
+ D sourceLen 10U 0 value
143
+ *
144
+ D compressBound_z PR 20U 0 extproc('compressBound')
145
+ D sourceLen 20U 0 value
146
+ *
147
+ D uncompress PR 10I 0 extproc('uncompress')
148
+ D dest 65535 options(*varsize) Destination buffer
149
+ D destLen 10U 0 Destination length
150
+ D source 65535 const options(*varsize) Source buffer
151
+ D sourceLen 10U 0 value Source length
152
+ *
153
+ D uncompress2 PR 10I 0 extproc('uncompress2')
154
+ D dest 65535 options(*varsize) Destination buffer
155
+ D destLen 10U 0 Destination length
156
+ D source 65535 const options(*varsize) Source buffer
157
+ D sourceLen 10U 0 Source length
158
+ *
159
+ D uncompress_z PR 10I 0 extproc('uncompress')
160
+ D dest 65535 options(*varsize) Destination buffer
161
+ D destLen 20U 0 Destination length
162
+ D source 65535 const options(*varsize) Source buffer
163
+ D sourceLen 20U 0 value Source length
164
+ *
165
+ D uncompress2_z PR 10I 0 extproc('uncompress2')
166
+ D dest 65535 options(*varsize) Destination buffer
167
+ D destLen 20U 0 Destination length
168
+ D source 65535 const options(*varsize) Source buffer
169
+ D sourceLen 20U 0 Source length
170
+ *
171
+ /if not defined(LARGE_FILES)
172
+ D gzopen PR extproc('gzopen')
173
+ D like(gzFile)
174
+ D path * value options(*string) File pathname
175
+ D mode * value options(*string) Open mode
176
+ /else
177
+ D gzopen PR extproc('gzopen64')
178
+ D like(gzFile)
179
+ D path * value options(*string) File pathname
180
+ D mode * value options(*string) Open mode
181
+ *
182
+ D gzopen64 PR extproc('gzopen64')
183
+ D like(gzFile)
184
+ D path * value options(*string) File pathname
185
+ D mode * value options(*string) Open mode
186
+ /endif
187
+ *
188
+ D gzdopen PR extproc('gzdopen')
189
+ D like(gzFile)
190
+ D fd 10I 0 value File descriptor
191
+ D mode * value options(*string) Open mode
192
+ *
193
+ D gzbuffer PR 10I 0 extproc('gzbuffer')
194
+ D file value like(gzFile) File pointer
195
+ D size 10U 0 value
196
+ *
197
+ D gzsetparams PR 10I 0 extproc('gzsetparams')
198
+ D file value like(gzFile) File pointer
199
+ D level 10I 0 value
200
+ D strategy 10I 0 value
201
+ *
202
+ D gzread PR 10I 0 extproc('gzread')
203
+ D file value like(gzFile) File pointer
204
+ D buf 65535 options(*varsize) Buffer
205
+ D len 10u 0 value Buffer length
206
+ *
207
+ D gzfread PR 20I 0 extproc('gzfread')
208
+ D buf 65535 options(*varsize) Buffer
209
+ D size 20u 0 value Buffer length
210
+ D nitems 20u 0 value Buffer length
211
+ D file value like(gzFile) File pointer
212
+ *
213
+ D gzwrite PR 10I 0 extproc('gzwrite')
214
+ D file value like(gzFile) File pointer
215
+ D buf 65535 const options(*varsize) Buffer
216
+ D len 10u 0 value Buffer length
217
+ *
218
+ D gzfwrite PR 20I 0 extproc('gzfwrite')
219
+ D buf 65535 options(*varsize) Buffer
220
+ D size 20u 0 value Buffer length
221
+ D nitems 20u 0 value Buffer length
222
+ D file value like(gzFile) File pointer
223
+ *
224
+ D gzputs PR 10I 0 extproc('gzputs')
225
+ D file value like(gzFile) File pointer
226
+ D s * value options(*string) String to output
227
+ *
228
+ D gzgets PR * extproc('gzgets')
229
+ D file value like(gzFile) File pointer
230
+ D buf 65535 options(*varsize) Read buffer
231
+ D len 10i 0 value Buffer length
232
+ *
233
+ D gzputc PR 10i 0 extproc('gzputc')
234
+ D file value like(gzFile) File pointer
235
+ D c 10I 0 value Character to write
236
+ *
237
+ D gzgetc PR 10i 0 extproc('gzgetc')
238
+ D file value like(gzFile) File pointer
239
+ *
240
+ D gzgetc_ PR 10i 0 extproc('gzgetc_')
241
+ D file value like(gzFile) File pointer
242
+ *
243
+ D gzungetc PR 10i 0 extproc('gzungetc')
244
+ D c 10I 0 value Character to push
245
+ D file value like(gzFile) File pointer
246
+ *
247
+ D gzflush PR 10i 0 extproc('gzflush')
248
+ D file value like(gzFile) File pointer
249
+ D flush 10I 0 value Type of flush
250
+ *
251
+ /if not defined(LARGE_FILES)
252
+ D gzseek PR extproc('gzseek')
253
+ D like(z_off_t)
254
+ D file value like(gzFile) File pointer
255
+ D offset value like(z_off_t) Offset
256
+ D whence 10i 0 value Origin
257
+ /else
258
+ D gzseek PR extproc('gzseek64')
259
+ D like(z_off_t)
260
+ D file value like(gzFile) File pointer
261
+ D offset value like(z_off_t) Offset
262
+ D whence 10i 0 value Origin
263
+ *
264
+ D gzseek64 PR extproc('gzseek64')
265
+ D like(z_off64_t)
266
+ D file value like(gzFile) File pointer
267
+ D offset value like(z_off64_t) Offset
268
+ D whence 10i 0 value Origin
269
+ /endif
270
+ *
271
+ D gzrewind PR 10i 0 extproc('gzrewind')
272
+ D file value like(gzFile) File pointer
273
+ *
274
+ /if not defined(LARGE_FILES)
275
+ D gztell PR extproc('gztell')
276
+ D like(z_off_t)
277
+ D file value like(gzFile) File pointer
278
+ /else
279
+ D gztell PR extproc('gztell64')
280
+ D like(z_off_t)
281
+ D file value like(gzFile) File pointer
282
+ *
283
+ D gztell64 PR extproc('gztell64')
284
+ D like(z_off64_t)
285
+ D file value like(gzFile) File pointer
286
+ /endif
287
+ *
288
+ /if not defined(LARGE_FILES)
289
+ D gzoffset PR extproc('gzoffset')
290
+ D like(z_off_t)
291
+ D file value like(gzFile) File pointer
292
+ /else
293
+ D gzoffset PR extproc('gzoffset64')
294
+ D like(z_off_t)
295
+ D file value like(gzFile) File pointer
296
+ *
297
+ D gzoffset64 PR extproc('gzoffset64')
298
+ D like(z_off64_t)
299
+ D file value like(gzFile) File pointer
300
+ /endif
301
+ *
302
+ D gzeof PR 10i 0 extproc('gzeof')
303
+ D file value like(gzFile) File pointer
304
+ *
305
+ D gzdirect PR 10i 0 extproc('gzdirect')
306
+ D file value like(gzFile) File pointer
307
+ *
308
+ D gzclose_r PR 10i 0 extproc('gzclose_r')
309
+ D file value like(gzFile) File pointer
310
+ *
311
+ D gzclose_w PR 10i 0 extproc('gzclose_w')
312
+ D file value like(gzFile) File pointer
313
+ *
314
+ D gzclose PR 10i 0 extproc('gzclose')
315
+ D file value like(gzFile) File pointer
316
+ *
317
+ D gzerror PR * extproc('gzerror') Error string
318
+ D file value like(gzFile) File pointer
319
+ D errnum 10I 0 Error code
320
+ *
321
+ D gzclearerr PR extproc('gzclearerr')
322
+ D file value like(gzFile) File pointer
323
+ *
324
+ **************************************************************************
325
+ * Basic function prototypes
326
+ **************************************************************************
327
+ *
328
+ D zlibVersion PR * extproc('zlibVersion') Version string
329
+ *
330
+ D deflateInit PR 10I 0 extproc('deflateInit_') Init. compression
331
+ D strm like(z_stream) Compression stream
332
+ D level 10I 0 value Compression level
333
+ D version * value options(*string) Version string
334
+ D stream_size 10i 0 value Stream struct. size
335
+ *
336
+ D deflate PR 10I 0 extproc('deflate') Compress data
337
+ D strm like(z_stream) Compression stream
338
+ D flush 10I 0 value Flush type required
339
+ *
340
+ D deflateEnd PR 10I 0 extproc('deflateEnd') Termin. compression
341
+ D strm like(z_stream) Compression stream
342
+ *
343
+ D inflateInit PR 10I 0 extproc('inflateInit_') Init. expansion
344
+ D strm like(z_stream) Expansion stream
345
+ D version * value options(*string) Version string
346
+ D stream_size 10i 0 value Stream struct. size
347
+ *
348
+ D inflate PR 10I 0 extproc('inflate') Expand data
349
+ D strm like(z_stream) Expansion stream
350
+ D flush 10I 0 value Flush type required
351
+ *
352
+ D inflateEnd PR 10I 0 extproc('inflateEnd') Termin. expansion
353
+ D strm like(z_stream) Expansion stream
354
+ *
355
+ **************************************************************************
356
+ * Advanced function prototypes
357
+ **************************************************************************
358
+ *
359
+ D deflateInit2 PR 10I 0 extproc('deflateInit2_') Init. compression
360
+ D strm like(z_stream) Compression stream
361
+ D level 10I 0 value Compression level
362
+ D method 10I 0 value Compression method
363
+ D windowBits 10I 0 value log2(window size)
364
+ D memLevel 10I 0 value Mem/cmpress tradeoff
365
+ D strategy 10I 0 value Compression strategy
366
+ D version * value options(*string) Version string
367
+ D stream_size 10i 0 value Stream struct. size
368
+ *
369
+ D deflateSetDictionary...
370
+ D PR 10I 0 extproc('deflateSetDictionary') Init. dictionary
371
+ D strm like(z_stream) Compression stream
372
+ D dictionary 65535 const options(*varsize) Dictionary bytes
373
+ D dictLength 10U 0 value Dictionary length
374
+ *
375
+ D deflateCopy PR 10I 0 extproc('deflateCopy') Compress strm 2 strm
376
+ D dest like(z_stream) Destination stream
377
+ D source like(z_stream) Source stream
378
+ *
379
+ D deflateReset PR 10I 0 extproc('deflateReset') End and init. stream
380
+ D strm like(z_stream) Compression stream
381
+ *
382
+ D deflateParams PR 10I 0 extproc('deflateParams') Change level & strat
383
+ D strm like(z_stream) Compression stream
384
+ D level 10I 0 value Compression level
385
+ D strategy 10I 0 value Compression strategy
386
+ *
387
+ D deflateTune PR 10I 0 extproc('deflateTune')
388
+ D strm like(z_stream) Compression stream
389
+ D good 10I 0 value
390
+ D lazy 10I 0 value
391
+ D nice 10I 0 value
392
+ D chain 10I 0 value
393
+ *
394
+ D deflateBound PR 10U 0 extproc('deflateBound') Change level & strat
395
+ D strm like(z_stream) Compression stream
396
+ D sourcelen 10U 0 value Compression level
397
+ *
398
+ D deflateBound_z PR 20U 0 extproc('deflateBound') Change level & strat
399
+ D strm like(z_stream) Compression stream
400
+ D sourcelen 20U 0 value Compression level
401
+ *
402
+ D deflatePending PR 10I 0 extproc('deflatePending') Change level & strat
403
+ D strm like(z_stream) Compression stream
404
+ D pending 10U 0 Pending bytes
405
+ D bits 10I 0 Pending bits
406
+ *
407
+ D deflateUsed PR 10I 0 extproc('deflateUsed') Get used bits
408
+ D strm like(z_stream) Compression stream
409
+ D bits 10I 0 Used bits
410
+ *
411
+ D deflatePrime PR 10I 0 extproc('deflatePrime') Change level & strat
412
+ D strm like(z_stream) Compression stream
413
+ D bits 10I 0 value # of bits to insert
414
+ D value 10I 0 value Bits to insert
415
+ *
416
+ D inflateInit2 PR 10I 0 extproc('inflateInit2_') Init. expansion
417
+ D strm like(z_stream) Expansion stream
418
+ D windowBits 10I 0 value log2(window size)
419
+ D version * value options(*string) Version string
420
+ D stream_size 10i 0 value Stream struct. size
421
+ *
422
+ D inflateSetDictionary...
423
+ D PR 10I 0 extproc('inflateSetDictionary') Init. dictionary
424
+ D strm like(z_stream) Expansion stream
425
+ D dictionary 65535 const options(*varsize) Dictionary bytes
426
+ D dictLength 10U 0 value Dictionary length
427
+ *
428
+ D inflateGetDictionary...
429
+ D PR 10I 0 extproc('inflateGetDictionary') Get dictionary
430
+ D strm like(z_stream) Expansion stream
431
+ D dictionary 65535 options(*varsize) Dictionary bytes
432
+ D dictLength 10U 0 Dictionary length
433
+ *
434
+ D deflateGetDictionary...
435
+ D PR 10I 0 extproc('deflateGetDictionary') Get dictionary
436
+ D strm like(z_stream) Expansion stream
437
+ D dictionary 65535 options(*varsize) Dictionary bytes
438
+ D dictLength 10U 0 Dictionary length
439
+ *
440
+ D inflateSync PR 10I 0 extproc('inflateSync') Sync. expansion
441
+ D strm like(z_stream) Expansion stream
442
+ *
443
+ D inflateCopy PR 10I 0 extproc('inflateCopy')
444
+ D dest like(z_stream) Destination stream
445
+ D source like(z_stream) Source stream
446
+ *
447
+ D inflateReset PR 10I 0 extproc('inflateReset') End and init. stream
448
+ D strm like(z_stream) Expansion stream
449
+ *
450
+ D inflateReset2 PR 10I 0 extproc('inflateReset2') End and init. stream
451
+ D strm like(z_stream) Expansion stream
452
+ D windowBits 10I 0 value Log2(buffer size)
453
+ *
454
+ D inflatePrime PR 10I 0 extproc('inflatePrime') Insert bits
455
+ D strm like(z_stream) Expansion stream
456
+ D bits 10I 0 value Bit count
457
+ D value 10I 0 value Bits to insert
458
+ *
459
+ D inflateMark PR 10I 0 extproc('inflateMark') Get inflate info
460
+ D strm like(z_stream) Expansion stream
461
+ *
462
+ D inflateCodesUsed...
463
+ D PR 20U 0 extproc('inflateCodesUsed')
464
+ D strm like(z_stream) Expansion stream
465
+ *
466
+ D inflateValidate...
467
+ D PR 20U 0 extproc('inflateValidate')
468
+ D strm like(z_stream) Expansion stream
469
+ D check 10I 0 value
470
+ *
471
+ D inflateGetHeader...
472
+ D PR 10U 0 extproc('inflateGetHeader')
473
+ D strm like(z_stream) Expansion stream
474
+ D head like(gz_headerp)
475
+ *
476
+ D deflateSetHeader...
477
+ D PR 10U 0 extproc('deflateSetHeader')
478
+ D strm like(z_stream) Expansion stream
479
+ D head like(gz_headerp)
480
+ *
481
+ D inflateBackInit...
482
+ D PR 10I 0 extproc('inflateBackInit_')
483
+ D strm like(z_stream) Expansion stream
484
+ D windowBits 10I 0 value Log2(buffer size)
485
+ D window 65535 options(*varsize) Buffer
486
+ D version * value options(*string) Version string
487
+ D stream_size 10i 0 value Stream struct. size
488
+ *
489
+ D inflateBack PR 10I 0 extproc('inflateBack')
490
+ D strm like(z_stream) Expansion stream
491
+ D in * value procptr Input function
492
+ D in_desc * value Input descriptor
493
+ D out * value procptr Output function
494
+ D out_desc * value Output descriptor
495
+ *
496
+ D inflateBackEnd PR 10I 0 extproc('inflateBackEnd')
497
+ D strm like(z_stream) Expansion stream
498
+ *
499
+ D zlibCompileFlags...
500
+ D PR 10U 0 extproc('zlibCompileFlags')
501
+ *
502
+ **************************************************************************
503
+ * Checksum function prototypes
504
+ **************************************************************************
505
+ *
506
+ D adler32 PR 10U 0 extproc('adler32') New checksum
507
+ D adler 10U 0 value Old checksum
508
+ D buf 65535 const options(*varsize) Bytes to accumulate
509
+ D len 10U 0 value Buffer length
510
+ *
511
+ D adler32_combine...
512
+ D PR 10U 0 extproc('adler32_combine') New checksum
513
+ D adler1 10U 0 value Old checksum
514
+ D adler2 10U 0 value Old checksum
515
+ D len2 20U 0 value Buffer length
516
+ *
517
+ D adler32_z PR 10U 0 extproc('adler32_z') New checksum
518
+ D adler 10U 0 value Old checksum
519
+ D buf 65535 const options(*varsize) Bytes to accumulate
520
+ D len 20U 0 value Buffer length
521
+ *
522
+ D crc32 PR 10U 0 extproc('crc32') New checksum
523
+ D crc 10U 0 value Old checksum
524
+ D buf 65535 const options(*varsize) Bytes to accumulate
525
+ D len 10U 0 value Buffer length
526
+ *
527
+ D crc32_combine...
528
+ D PR 10U 0 extproc('crc32_combine') New checksum
529
+ D crc1 10U 0 value Old checksum
530
+ D crc2 10U 0 value Old checksum
531
+ D len2 20U 0 value Buffer length
532
+ *
533
+ D crc32_z PR 10U 0 extproc('crc32_z') New checksum
534
+ D crc 10U 0 value Old checksum
535
+ D buf 65535 const options(*varsize) Bytes to accumulate
536
+ D len 20U 0 value Buffer length
537
+ *
538
+ D crc32_combine_gen...
539
+ D PR 10U 0 extproc('crc32_combine_gen') Operator
540
+ D len2 20U 0 value Buffer length
541
+ *
542
+ D crc32_combine_gen64...
543
+ D PR 10U 0 extproc('crc32_combine_gen64') Operator
544
+ D len2 20U 0 value Buffer length
545
+ *
546
+ D crc32_combine_op...
547
+ D PR 10U 0 extproc('crc32_combine_op') New Checksum
548
+ D crc1 10U 0 value Old checksum
549
+ D crc2 10U 0 value Old checksum
550
+ D op 10U 0 value Operator
551
+ *
552
+ **************************************************************************
553
+ * Miscellaneous function prototypes
554
+ **************************************************************************
555
+ *
556
+ D zError PR * extproc('zError') Error string
557
+ D err 10I 0 value Error code
558
+ *
559
+ D inflateSyncPoint...
560
+ D PR 10I 0 extproc('inflateSyncPoint')
561
+ D strm like(z_stream) Expansion stream
562
+ *
563
+ D get_crc_table PR * extproc('get_crc_table') Ptr to ulongs
564
+ *
565
+ D inflateUndermine...
566
+ D PR 10I 0 extproc('inflateUndermine')
567
+ D strm like(z_stream) Expansion stream
568
+ D arg 10I 0 value Error code
569
+ *
570
+ D inflateResetKeep...
571
+ D PR 10I 0 extproc('inflateResetKeep') End and init. stream
572
+ D strm like(z_stream) Expansion stream
573
+ *
574
+ D deflateResetKeep...
575
+ D PR 10I 0 extproc('deflateResetKeep') End and init. stream
576
+ D strm like(z_stream) Expansion stream
577
+ *
578
+ /endif