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.
- package/LICENSE +21 -0
- package/README.md +165 -0
- package/binding.gyp +149 -0
- package/deps/tiny-aes/.github/workflows/c-cpp.yml +27 -0
- package/deps/tiny-aes/CMakeLists.txt +17 -0
- package/deps/tiny-aes/Makefile +61 -0
- package/deps/tiny-aes/README.md +83 -0
- package/deps/tiny-aes/aes.c +572 -0
- package/deps/tiny-aes/aes.h +91 -0
- package/deps/tiny-aes/aes.hpp +12 -0
- package/deps/tiny-aes/conanfile.py +73 -0
- package/deps/tiny-aes/library.json +19 -0
- package/deps/tiny-aes/library.properties +11 -0
- package/deps/tiny-aes/test.c +316 -0
- package/deps/tiny-aes/test.cpp +2 -0
- package/deps/tiny-aes/test_package/CMakeLists.txt +11 -0
- package/deps/tiny-aes/test_package/conanfile.py +17 -0
- package/deps/tiny-aes/unlicense.txt +24 -0
- package/deps/zlib/.cmake-format.yaml +245 -0
- package/deps/zlib/.github/workflows/c-std.yml +268 -0
- package/deps/zlib/.github/workflows/cmake.yml +147 -0
- package/deps/zlib/.github/workflows/configure.yml +146 -0
- package/deps/zlib/.github/workflows/contribs.yml +64 -0
- package/deps/zlib/.github/workflows/fuzz.yml +25 -0
- package/deps/zlib/.github/workflows/msys-cygwin.yml +92 -0
- package/deps/zlib/.github/workflows/others.yml +153 -0
- package/deps/zlib/BUILD.bazel +134 -0
- package/deps/zlib/CMakeLists.txt +310 -0
- package/deps/zlib/ChangeLog +1669 -0
- package/deps/zlib/FAQ +371 -0
- package/deps/zlib/INDEX +67 -0
- package/deps/zlib/LICENSE +22 -0
- package/deps/zlib/MODULE.bazel +9 -0
- package/deps/zlib/Makefile.in +426 -0
- package/deps/zlib/README +115 -0
- package/deps/zlib/README-cmake.md +79 -0
- package/deps/zlib/adler32.c +164 -0
- package/deps/zlib/amiga/Makefile.pup +69 -0
- package/deps/zlib/amiga/Makefile.sas +68 -0
- package/deps/zlib/compress.c +99 -0
- package/deps/zlib/configure +1078 -0
- package/deps/zlib/contrib/CMakeLists.txt +61 -0
- package/deps/zlib/contrib/README.contrib +57 -0
- package/deps/zlib/contrib/ada/CMakeLists.txt +217 -0
- package/deps/zlib/contrib/ada/buffer_demo.adb +106 -0
- package/deps/zlib/contrib/ada/cmake/Modules/CMakeADACompiler.cmake.in +23 -0
- package/deps/zlib/contrib/ada/cmake/Modules/CMakeADAInformation.cmake +133 -0
- package/deps/zlib/contrib/ada/cmake/Modules/CMakeDetermineADACompiler.cmake +33 -0
- package/deps/zlib/contrib/ada/cmake/Modules/CMakeTestADACompiler.cmake +46 -0
- package/deps/zlib/contrib/ada/cmake/binder_helper.cmake +47 -0
- package/deps/zlib/contrib/ada/cmake/compile_helper.cmake +32 -0
- package/deps/zlib/contrib/ada/cmake/exe_link_helper.cmake +53 -0
- package/deps/zlib/contrib/ada/cmake/shared_link_helper.cmake +52 -0
- package/deps/zlib/contrib/ada/cmake/static_link_helper.cmake +25 -0
- package/deps/zlib/contrib/ada/mtest.adb +156 -0
- package/deps/zlib/contrib/ada/read.adb +156 -0
- package/deps/zlib/contrib/ada/readme.txt +65 -0
- package/deps/zlib/contrib/ada/test.adb +463 -0
- package/deps/zlib/contrib/ada/zlib-streams.adb +225 -0
- package/deps/zlib/contrib/ada/zlib-streams.ads +114 -0
- package/deps/zlib/contrib/ada/zlib-thin.adb +142 -0
- package/deps/zlib/contrib/ada/zlib-thin.ads +450 -0
- package/deps/zlib/contrib/ada/zlib.adb +701 -0
- package/deps/zlib/contrib/ada/zlib.ads +328 -0
- package/deps/zlib/contrib/ada/zlib.gpr +20 -0
- package/deps/zlib/contrib/blast/CMakeLists.txt +166 -0
- package/deps/zlib/contrib/blast/Makefile +14 -0
- package/deps/zlib/contrib/blast/README +4 -0
- package/deps/zlib/contrib/blast/blast-test.c +42 -0
- package/deps/zlib/contrib/blast/blast.c +422 -0
- package/deps/zlib/contrib/blast/blast.h +84 -0
- package/deps/zlib/contrib/blast/blastConfig.cmake.in +18 -0
- package/deps/zlib/contrib/blast/test/CMakeLists.txt +193 -0
- package/deps/zlib/contrib/blast/test/add_subdirectory_exclude_test.cmake.in +27 -0
- package/deps/zlib/contrib/blast/test/add_subdirectory_test.cmake.in +25 -0
- package/deps/zlib/contrib/blast/test/find_package_no_components_test.cmake.in +24 -0
- package/deps/zlib/contrib/blast/test/find_package_test.cmake.in +24 -0
- package/deps/zlib/contrib/blast/test/find_package_wrong_components_test.cmake.in +24 -0
- package/deps/zlib/contrib/blast/test.pk +0 -0
- package/deps/zlib/contrib/blast/test.txt +1 -0
- package/deps/zlib/contrib/blast/tester.cmake +28 -0
- package/deps/zlib/contrib/crc32vx/CMakeLists.txt +67 -0
- package/deps/zlib/contrib/crc32vx/README +9 -0
- package/deps/zlib/contrib/crc32vx/crc32_vx.c +254 -0
- package/deps/zlib/contrib/crc32vx/crc32_vx_hooks.h +9 -0
- package/deps/zlib/contrib/delphi/ZLib.pas +557 -0
- package/deps/zlib/contrib/delphi/ZLibConst.pas +11 -0
- package/deps/zlib/contrib/delphi/readme.txt +76 -0
- package/deps/zlib/contrib/delphi/zlibd32.mak +99 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/AssemblyInfo.cs +58 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs +202 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/CircularBuffer.cs +83 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/CodecBase.cs +198 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/Deflater.cs +106 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/DotZLib.cs +288 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/DotZLib.csproj +141 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/GZipStream.cs +301 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/Inflater.cs +105 -0
- package/deps/zlib/contrib/dotzlib/DotZLib/UnitTests.cs +274 -0
- package/deps/zlib/contrib/dotzlib/DotZLib.build +33 -0
- package/deps/zlib/contrib/dotzlib/DotZLib.chm +0 -0
- package/deps/zlib/contrib/dotzlib/DotZLib.sln +21 -0
- package/deps/zlib/contrib/dotzlib/LICENSE_1_0.txt +23 -0
- package/deps/zlib/contrib/dotzlib/readme.txt +58 -0
- package/deps/zlib/contrib/gcc_gvmat64/CMakeLists.txt +19 -0
- package/deps/zlib/contrib/gcc_gvmat64/gvmat64.S +570 -0
- package/deps/zlib/contrib/infback9/CMakeLists.txt +19 -0
- package/deps/zlib/contrib/infback9/README +1 -0
- package/deps/zlib/contrib/infback9/infback9.c +603 -0
- package/deps/zlib/contrib/infback9/infback9.h +37 -0
- package/deps/zlib/contrib/infback9/inffix9.h +107 -0
- package/deps/zlib/contrib/infback9/inflate9.h +47 -0
- package/deps/zlib/contrib/infback9/inftree9.c +319 -0
- package/deps/zlib/contrib/infback9/inftree9.h +61 -0
- package/deps/zlib/contrib/iostream/test.cpp +24 -0
- package/deps/zlib/contrib/iostream/zfstream.cpp +329 -0
- package/deps/zlib/contrib/iostream/zfstream.h +128 -0
- package/deps/zlib/contrib/iostream2/zstream.h +306 -0
- package/deps/zlib/contrib/iostream2/zstream_test.cpp +25 -0
- package/deps/zlib/contrib/iostream3/CMakeLists.txt +200 -0
- package/deps/zlib/contrib/iostream3/README +35 -0
- package/deps/zlib/contrib/iostream3/TODO +17 -0
- package/deps/zlib/contrib/iostream3/iostream3Config.cmake.in +23 -0
- package/deps/zlib/contrib/iostream3/test/CMakeLists.txt +191 -0
- package/deps/zlib/contrib/iostream3/test/add_subdirectory_exclude_test.cmake.in +27 -0
- package/deps/zlib/contrib/iostream3/test/add_subdirectory_test.cmake.in +25 -0
- package/deps/zlib/contrib/iostream3/test/find_package_no_components_test.cmake.in +24 -0
- package/deps/zlib/contrib/iostream3/test/find_package_test.cmake.in +24 -0
- package/deps/zlib/contrib/iostream3/test/find_package_wrong_components_test.cmake.in +24 -0
- package/deps/zlib/contrib/iostream3/test.cc +50 -0
- package/deps/zlib/contrib/iostream3/zfstream.cc +479 -0
- package/deps/zlib/contrib/iostream3/zfstream.h +466 -0
- package/deps/zlib/contrib/minizip/CMakeLists.txt +387 -0
- package/deps/zlib/contrib/minizip/LICENSE.Info-Zip +58 -0
- package/deps/zlib/contrib/minizip/Makefile +33 -0
- package/deps/zlib/contrib/minizip/Makefile.am +45 -0
- package/deps/zlib/contrib/minizip/MiniZip64_Changes.txt +6 -0
- package/deps/zlib/contrib/minizip/MiniZip64_info.txt +69 -0
- package/deps/zlib/contrib/minizip/configure.ac +32 -0
- package/deps/zlib/contrib/minizip/crypt.h +125 -0
- package/deps/zlib/contrib/minizip/ints.h +57 -0
- package/deps/zlib/contrib/minizip/ioapi.c +231 -0
- package/deps/zlib/contrib/minizip/ioapi.h +183 -0
- package/deps/zlib/contrib/minizip/iowin32.c +447 -0
- package/deps/zlib/contrib/minizip/iowin32.h +27 -0
- package/deps/zlib/contrib/minizip/make_vms.com +25 -0
- package/deps/zlib/contrib/minizip/miniunz.c +647 -0
- package/deps/zlib/contrib/minizip/miniunzip.1 +63 -0
- package/deps/zlib/contrib/minizip/minizip.1 +46 -0
- package/deps/zlib/contrib/minizip/minizip.c +511 -0
- package/deps/zlib/contrib/minizip/minizip.pc.in +13 -0
- package/deps/zlib/contrib/minizip/minizip.pc.txt +13 -0
- package/deps/zlib/contrib/minizip/minizipConfig.cmake.in +27 -0
- package/deps/zlib/contrib/minizip/mztools.c +294 -0
- package/deps/zlib/contrib/minizip/mztools.h +37 -0
- package/deps/zlib/contrib/minizip/skipset.h +366 -0
- package/deps/zlib/contrib/minizip/test/CMakeLists.txt +176 -0
- package/deps/zlib/contrib/minizip/test/add_subdirectory_exclude_test.cmake.in +29 -0
- package/deps/zlib/contrib/minizip/test/add_subdirectory_test.cmake.in +28 -0
- package/deps/zlib/contrib/minizip/test/find_package_no_components_test.cmake.in +26 -0
- package/deps/zlib/contrib/minizip/test/find_package_test.cmake.in +26 -0
- package/deps/zlib/contrib/minizip/test/find_package_wrong_components_test.cmake.in +26 -0
- package/deps/zlib/contrib/minizip/test/test_helper.cm +32 -0
- package/deps/zlib/contrib/minizip/unzip.c +1984 -0
- package/deps/zlib/contrib/minizip/unzip.h +442 -0
- package/deps/zlib/contrib/minizip/zip.c +2246 -0
- package/deps/zlib/contrib/minizip/zip.h +371 -0
- package/deps/zlib/contrib/nuget/nuget.csproj +45 -0
- package/deps/zlib/contrib/nuget/nuget.sln +22 -0
- package/deps/zlib/contrib/pascal/example.pas +599 -0
- package/deps/zlib/contrib/pascal/readme.txt +76 -0
- package/deps/zlib/contrib/pascal/zlibd32.mak +99 -0
- package/deps/zlib/contrib/pascal/zlibpas.pas +276 -0
- package/deps/zlib/contrib/puff/CMakeLists.txt +154 -0
- package/deps/zlib/contrib/puff/Makefile +42 -0
- package/deps/zlib/contrib/puff/README +63 -0
- package/deps/zlib/contrib/puff/bin-writer.c +26 -0
- package/deps/zlib/contrib/puff/puff.c +840 -0
- package/deps/zlib/contrib/puff/puff.h +35 -0
- package/deps/zlib/contrib/puff/puffConfig.cmake.in +18 -0
- package/deps/zlib/contrib/puff/pufftest.c +168 -0
- package/deps/zlib/contrib/puff/test/CMakeLists.txt +262 -0
- package/deps/zlib/contrib/puff/test/add_subdirectory_exclude_test.cmake.in +26 -0
- package/deps/zlib/contrib/puff/test/add_subdirectory_test.cmake.in +25 -0
- package/deps/zlib/contrib/puff/test/find_package_no_components_test.cmake.in +24 -0
- package/deps/zlib/contrib/puff/test/find_package_test.cmake.in +24 -0
- package/deps/zlib/contrib/puff/test/find_package_wrong_components_test.cmake.in +24 -0
- package/deps/zlib/contrib/puff/test/tester-cov.cmake +58 -0
- package/deps/zlib/contrib/puff/test/tester.cmake +16 -0
- package/deps/zlib/contrib/puff/zeros.raw +0 -0
- package/deps/zlib/contrib/testzlib/CMakeLists.txt +44 -0
- package/deps/zlib/contrib/testzlib/testzlib.c +275 -0
- package/deps/zlib/contrib/testzlib/testzlib.txt +10 -0
- package/deps/zlib/contrib/vstudio/readme.txt +22 -0
- package/deps/zlib/contrib/zlib1-dll/CMakeLists.txt +196 -0
- package/deps/zlib/contrib/zlib1-dll/readme.txt +21 -0
- package/deps/zlib/crc32.c +983 -0
- package/deps/zlib/crc32.h +9446 -0
- package/deps/zlib/deflate.c +2185 -0
- package/deps/zlib/deflate.h +383 -0
- package/deps/zlib/doc/algorithm.txt +209 -0
- package/deps/zlib/doc/crc-doc.1.0.pdf +0 -0
- package/deps/zlib/doc/rfc1950.txt +619 -0
- package/deps/zlib/doc/rfc1951.txt +955 -0
- package/deps/zlib/doc/rfc1952.txt +675 -0
- package/deps/zlib/doc/txtvsbin.txt +107 -0
- package/deps/zlib/examples/README.examples +54 -0
- package/deps/zlib/examples/enough.c +597 -0
- package/deps/zlib/examples/fitblk.c +233 -0
- package/deps/zlib/examples/gun.c +702 -0
- package/deps/zlib/examples/gzappend.c +504 -0
- package/deps/zlib/examples/gzjoin.c +449 -0
- package/deps/zlib/examples/gzlog.c +1061 -0
- package/deps/zlib/examples/gzlog.h +91 -0
- package/deps/zlib/examples/gznorm.c +474 -0
- package/deps/zlib/examples/zlib_how.html +550 -0
- package/deps/zlib/examples/zpipe.c +206 -0
- package/deps/zlib/examples/zran.c +546 -0
- package/deps/zlib/examples/zran.h +53 -0
- package/deps/zlib/gzclose.c +23 -0
- package/deps/zlib/gzguts.h +216 -0
- package/deps/zlib/gzlib.c +609 -0
- package/deps/zlib/gzread.c +668 -0
- package/deps/zlib/gzwrite.c +700 -0
- package/deps/zlib/infback.c +581 -0
- package/deps/zlib/inffast.c +321 -0
- package/deps/zlib/inffast.h +11 -0
- package/deps/zlib/inffixed.h +94 -0
- package/deps/zlib/inflate.c +1413 -0
- package/deps/zlib/inflate.h +126 -0
- package/deps/zlib/inftrees.c +424 -0
- package/deps/zlib/inftrees.h +64 -0
- package/deps/zlib/make_vms.com +867 -0
- package/deps/zlib/msdos/Makefile.bor +115 -0
- package/deps/zlib/msdos/Makefile.dj2 +104 -0
- package/deps/zlib/msdos/Makefile.emx +69 -0
- package/deps/zlib/msdos/Makefile.msc +112 -0
- package/deps/zlib/msdos/Makefile.tc +100 -0
- package/deps/zlib/os400/README400 +48 -0
- package/deps/zlib/os400/bndsrc +144 -0
- package/deps/zlib/os400/make.sh +383 -0
- package/deps/zlib/os400/zlibfixed.rpgle +578 -0
- package/deps/zlib/os400/zlibfree.rpgle +634 -0
- package/deps/zlib/qnx/package.qpg +141 -0
- package/deps/zlib/test/CMakeLists.txt +318 -0
- package/deps/zlib/test/add_subdirectory_exclude_test.cmake.in +29 -0
- package/deps/zlib/test/add_subdirectory_test.cmake.in +28 -0
- package/deps/zlib/test/example.c +552 -0
- package/deps/zlib/test/find_package_no_components_test.cmake.in +27 -0
- package/deps/zlib/test/find_package_test.cmake.in +27 -0
- package/deps/zlib/test/find_package_wrong_components_test.cmake.in +27 -0
- package/deps/zlib/test/infcover.c +672 -0
- package/deps/zlib/test/minigzip.c +592 -0
- package/deps/zlib/treebuild.xml +116 -0
- package/deps/zlib/trees.c +1119 -0
- package/deps/zlib/trees.h +128 -0
- package/deps/zlib/uncompr.c +101 -0
- package/deps/zlib/watcom/watcom_f.mak +43 -0
- package/deps/zlib/watcom/watcom_l.mak +43 -0
- package/deps/zlib/win32/DLL_FAQ.txt +381 -0
- package/deps/zlib/win32/Makefile.bor +109 -0
- package/deps/zlib/win32/Makefile.gcc +177 -0
- package/deps/zlib/win32/Makefile.msc +159 -0
- package/deps/zlib/win32/README-WIN32.txt +103 -0
- package/deps/zlib/win32/VisualC.txt +3 -0
- package/deps/zlib/win32/zlib.def +104 -0
- package/deps/zlib/win32/zlib1.rc +37 -0
- package/deps/zlib/zconf.h.in +551 -0
- package/deps/zlib/zlib.3 +149 -0
- package/deps/zlib/zlib.3.pdf +0 -0
- package/deps/zlib/zlib.h +2057 -0
- package/deps/zlib/zlib.map +116 -0
- package/deps/zlib/zlib.pc.cmakein +14 -0
- package/deps/zlib/zlib.pc.in +14 -0
- package/deps/zlib/zlibConfig.cmake.in +18 -0
- package/deps/zlib/zutil.c +313 -0
- package/deps/zlib/zutil.h +331 -0
- package/dist/index.d.ts +266 -0
- package/dist/index.js +1146 -0
- package/dist/libwz.js +5632 -0
- package/dist/libwz.wasm +0 -0
- package/include/wz/CRC32.h +182 -0
- package/include/wz/PngUtility.h +72 -0
- package/include/wz/PortalType.h +124 -0
- package/include/wz/Properties/WzBinaryProperty.h +70 -0
- package/include/wz/Properties/WzCanvasProperty.h +55 -0
- package/include/wz/Properties/WzConvexProperty.h +34 -0
- package/include/wz/Properties/WzDoubleProperty.h +32 -0
- package/include/wz/Properties/WzFloatProperty.h +30 -0
- package/include/wz/Properties/WzIntProperty.h +30 -0
- package/include/wz/Properties/WzLongProperty.h +30 -0
- package/include/wz/Properties/WzLuaProperty.h +31 -0
- package/include/wz/Properties/WzNullProperty.h +15 -0
- package/include/wz/Properties/WzPngProperty.h +53 -0
- package/include/wz/Properties/WzRawDataProperty.h +46 -0
- package/include/wz/Properties/WzShortProperty.h +31 -0
- package/include/wz/Properties/WzStringProperty.h +32 -0
- package/include/wz/Properties/WzSubProperty.h +35 -0
- package/include/wz/Properties/WzUOLProperty.h +44 -0
- package/include/wz/Properties/WzVectorProperty.h +40 -0
- package/include/wz/Properties/WzVideoProperty.h +43 -0
- package/include/wz/Result.h +58 -0
- package/include/wz/Util/Defines.h +16 -0
- package/include/wz/Util/ListFileParser.h +20 -0
- package/include/wz/Util/WzBinaryReader.h +95 -0
- package/include/wz/Util/WzBinaryWriter.h +72 -0
- package/include/wz/Util/WzBlobDataSource.h +30 -0
- package/include/wz/Util/WzDataSource.h +49 -0
- package/include/wz/Util/WzKeyGenerator.h +28 -0
- package/include/wz/Util/WzMutableKey.h +39 -0
- package/include/wz/Util/WzPath.h +37 -0
- package/include/wz/Util/WzStream.h +86 -0
- package/include/wz/Util/WzTool.h +42 -0
- package/include/wz/WzAESConstant.h +17 -0
- package/include/wz/WzDirectory.h +97 -0
- package/include/wz/WzEnums.h +76 -0
- package/include/wz/WzFile.h +99 -0
- package/include/wz/WzHeader.h +47 -0
- package/include/wz/WzImage.h +97 -0
- package/include/wz/WzImageProperty.h +92 -0
- package/include/wz/WzObject.h +55 -0
- package/include/wz/WzPropertyCollection.h +115 -0
- package/include/wz/wz.h +41 -0
- package/include/wz/wz_api.h +432 -0
- package/package.json +93 -0
- package/src/PngUtility.cpp +328 -0
- package/src/Properties/WzBinaryProperty.cpp +183 -0
- package/src/Properties/WzCanvasProperty.cpp +262 -0
- package/src/Properties/WzConvexProperty.cpp +159 -0
- package/src/Properties/WzDoubleProperty.cpp +12 -0
- package/src/Properties/WzFloatProperty.cpp +17 -0
- package/src/Properties/WzIntProperty.cpp +12 -0
- package/src/Properties/WzLongProperty.cpp +12 -0
- package/src/Properties/WzLuaProperty.cpp +37 -0
- package/src/Properties/WzNullProperty.cpp +11 -0
- package/src/Properties/WzPngProperty.cpp +637 -0
- package/src/Properties/WzRawDataProperty.cpp +116 -0
- package/src/Properties/WzShortProperty.cpp +12 -0
- package/src/Properties/WzStringProperty.cpp +44 -0
- package/src/Properties/WzSubProperty.cpp +129 -0
- package/src/Properties/WzUOLProperty.cpp +136 -0
- package/src/Properties/WzVectorProperty.cpp +22 -0
- package/src/Properties/WzVideoProperty.cpp +115 -0
- package/src/Util/ListFileParser.cpp +48 -0
- package/src/Util/WzBinaryReader.cpp +368 -0
- package/src/Util/WzBinaryWriter.cpp +305 -0
- package/src/Util/WzBlobDataSource.cpp +47 -0
- package/src/Util/WzDataSource.cpp +61 -0
- package/src/Util/WzKeyGenerator.cpp +43 -0
- package/src/Util/WzMutableKey.cpp +59 -0
- package/src/Util/WzStream.cpp +196 -0
- package/src/Util/WzTool.cpp +266 -0
- package/src/WzAESConstant.cpp +12 -0
- package/src/WzDirectory.cpp +669 -0
- package/src/WzEnums.cpp +20 -0
- package/src/WzFile.cpp +450 -0
- package/src/WzImage.cpp +350 -0
- package/src/WzImageProperty.cpp +469 -0
- package/src/WzObject.cpp +174 -0
- package/src/WzPropertyCollection.cpp +84 -0
- package/src/capi/wz_api.cpp +1996 -0
- package/src/node/binding.cpp +1776 -0
|
@@ -0,0 +1,634 @@
|
|
|
1
|
+
**free
|
|
2
|
+
// ZLIB.INC - Interface to the general purpose compression library
|
|
3
|
+
|
|
4
|
+
// ILE RPG400 version by Patrick Monnerat, DATASPHERE.
|
|
5
|
+
// Version 1.3.2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
// WARNING:
|
|
9
|
+
// Procedures inflateInit(), inflateInit2(), deflateInit(),
|
|
10
|
+
// deflateInit2() and inflateBackInit() need to be called with
|
|
11
|
+
// two additional arguments:
|
|
12
|
+
// the package version string and the stream control structure.
|
|
13
|
+
// size. This is needed because RPG lacks some macro feature.
|
|
14
|
+
// Call these procedures as:
|
|
15
|
+
// inflateInit(...: ZLIB_VERSION: %size(z_stream))
|
|
16
|
+
|
|
17
|
+
/if not defined(ZLIB_H_)
|
|
18
|
+
/define ZLIB_H_
|
|
19
|
+
|
|
20
|
+
//*************************************************************************
|
|
21
|
+
// Constants
|
|
22
|
+
//*************************************************************************
|
|
23
|
+
|
|
24
|
+
// Versioning information.
|
|
25
|
+
|
|
26
|
+
Dcl-C ZLIB_VERSION '1.3.2';
|
|
27
|
+
Dcl-C ZLIB_VERNUM X'1320';
|
|
28
|
+
Dcl-C ZLIB_VER_MAJOR 1;
|
|
29
|
+
Dcl-C ZLIB_VER_MINOR 3;
|
|
30
|
+
Dcl-C ZLIB_VER_REVISION 2;
|
|
31
|
+
Dcl-C ZLIB_VER_SUBREVISION 0;
|
|
32
|
+
|
|
33
|
+
// Other equates.
|
|
34
|
+
|
|
35
|
+
Dcl-C Z_NO_FLUSH 0;
|
|
36
|
+
Dcl-C Z_PARTIAL_FLUSH 1;
|
|
37
|
+
Dcl-C Z_SYNC_FLUSH 2;
|
|
38
|
+
Dcl-C Z_FULL_FLUSH 3;
|
|
39
|
+
Dcl-C Z_FINISH 4;
|
|
40
|
+
Dcl-C Z_BLOCK 5;
|
|
41
|
+
Dcl-C Z_TREES 6;
|
|
42
|
+
|
|
43
|
+
Dcl-C Z_OK 0;
|
|
44
|
+
Dcl-C Z_STREAM_END 1;
|
|
45
|
+
Dcl-C Z_NEED_DICT 2;
|
|
46
|
+
Dcl-C Z_ERRNO -1;
|
|
47
|
+
Dcl-C Z_STREAM_ERROR -2;
|
|
48
|
+
Dcl-C Z_DATA_ERROR -3;
|
|
49
|
+
Dcl-C Z_MEM_ERROR -4;
|
|
50
|
+
Dcl-C Z_BUF_ERROR -5;
|
|
51
|
+
Dcl-C Z_VERSION_ERROR -6;
|
|
52
|
+
|
|
53
|
+
Dcl-C Z_NO_COMPRESSION 0;
|
|
54
|
+
Dcl-C Z_BEST_SPEED 1;
|
|
55
|
+
Dcl-C Z_BEST_COMPRESSION 9;
|
|
56
|
+
Dcl-C Z_DEFAULT_COMPRESSION -1;
|
|
57
|
+
|
|
58
|
+
Dcl-C Z_FILTERED 1;
|
|
59
|
+
Dcl-C Z_HUFFMAN_ONLY 2;
|
|
60
|
+
Dcl-C Z_RLE 3;
|
|
61
|
+
Dcl-C Z_DEFAULT_STRATEGY 0;
|
|
62
|
+
|
|
63
|
+
Dcl-C Z_BINARY 0;
|
|
64
|
+
Dcl-C Z_ASCII 1;
|
|
65
|
+
Dcl-C Z_UNKNOWN 2;
|
|
66
|
+
|
|
67
|
+
Dcl-C Z_DEFLATED 8;
|
|
68
|
+
|
|
69
|
+
Dcl-C Z_NULL 0;
|
|
70
|
+
|
|
71
|
+
//*************************************************************************
|
|
72
|
+
// Types
|
|
73
|
+
//*************************************************************************
|
|
74
|
+
|
|
75
|
+
Dcl-S z_streamp Pointer; // Stream struct ptr
|
|
76
|
+
Dcl-S gzFile Pointer; // File pointer
|
|
77
|
+
Dcl-S gz_headerp Pointer;
|
|
78
|
+
Dcl-S z_off_t Int(10); // Stream offsets
|
|
79
|
+
Dcl-S z_off64_t Int(20); // Stream offsets
|
|
80
|
+
|
|
81
|
+
//*************************************************************************
|
|
82
|
+
// Structures
|
|
83
|
+
//*************************************************************************
|
|
84
|
+
|
|
85
|
+
// The GZIP encode/decode stream support structure.
|
|
86
|
+
|
|
87
|
+
Dcl-Ds z_stream Align Based(z_streamp);
|
|
88
|
+
zs_next_in Pointer; // Next input byte
|
|
89
|
+
zs_avail_in Uns(10); // Byte cnt at next_in
|
|
90
|
+
zs_total_in Uns(10); // Total bytes read
|
|
91
|
+
zs_next_out Pointer; // Output buffer ptr
|
|
92
|
+
zs_avail_out Uns(10); // Room left @ next_out
|
|
93
|
+
zs_total_out Uns(10); // Total bytes written
|
|
94
|
+
zs_msg Pointer; // Last errmsg or null
|
|
95
|
+
zs_state Pointer; // Internal state
|
|
96
|
+
zs_zalloc Pointer(*PROC); // Int. state allocator
|
|
97
|
+
zs_free Pointer(*PROC); // Int. state dealloc.
|
|
98
|
+
zs_opaque Pointer; // Private alloc. data
|
|
99
|
+
zs_data_type Int(10); // ASC/BIN best guess
|
|
100
|
+
zs_adler Uns(10); // Uncompr. adler32 val
|
|
101
|
+
*N Uns(10); // Reserved
|
|
102
|
+
*N Uns(10); // Ptr. alignment
|
|
103
|
+
End-Ds;
|
|
104
|
+
|
|
105
|
+
//*************************************************************************
|
|
106
|
+
// Utility function prototypes
|
|
107
|
+
//*************************************************************************
|
|
108
|
+
|
|
109
|
+
Dcl-Pr compress Int(10) Extproc('compress');
|
|
110
|
+
dest Char(65535) Options(*VARSIZE); // Destination buffer
|
|
111
|
+
destLen Uns(10); // Destination length
|
|
112
|
+
source Char(65535) Const Options(*VARSIZE); // Source buffer
|
|
113
|
+
sourceLen Uns(10) Value; // Source length
|
|
114
|
+
End-Pr;
|
|
115
|
+
|
|
116
|
+
Dcl-Pr compress_z Int(10) Extproc('compress_z');
|
|
117
|
+
dest Char(65535) Options(*VARSIZE); // Destination buffer
|
|
118
|
+
destLen Uns(20); // Destination length
|
|
119
|
+
source Char(65535) Const Options(*VARSIZE); // Source buffer
|
|
120
|
+
sourceLen Uns(20) Value; // Source length
|
|
121
|
+
End-Pr;
|
|
122
|
+
|
|
123
|
+
Dcl-Pr compress2 Int(10) Extproc('compress2');
|
|
124
|
+
dest Char(65535) Options(*VARSIZE); // Destination buffer
|
|
125
|
+
destLen Uns(10); // Destination length
|
|
126
|
+
source Char(65535) Const Options(*VARSIZE); // Source buffer
|
|
127
|
+
sourceLen Uns(10) Value; // Source length
|
|
128
|
+
level Int(10) Value; // Compression level
|
|
129
|
+
End-Pr;
|
|
130
|
+
|
|
131
|
+
Dcl-Pr compress2_z Int(10) Extproc('compress2_z');
|
|
132
|
+
dest Char(65535) Options(*VARSIZE); // Destination buffer
|
|
133
|
+
destLen Uns(20); // Destination length
|
|
134
|
+
source Char(65535) Const Options(*VARSIZE); // Source buffer
|
|
135
|
+
sourceLen Uns(20) Value; // Source length
|
|
136
|
+
level Int(10) Value; // Compression level
|
|
137
|
+
End-Pr;
|
|
138
|
+
|
|
139
|
+
Dcl-Pr compressBound Uns(10) Extproc('compressBound');
|
|
140
|
+
sourceLen Uns(10) Value;
|
|
141
|
+
End-Pr;
|
|
142
|
+
|
|
143
|
+
Dcl-Pr compressBound_z Uns(10) Extproc('compressBound_z');
|
|
144
|
+
sourceLen Uns(20) Value;
|
|
145
|
+
End-Pr;
|
|
146
|
+
|
|
147
|
+
Dcl-Pr uncompress Int(10) Extproc('uncompress');
|
|
148
|
+
dest Char(65535) Options(*VARSIZE); // Destination buffer
|
|
149
|
+
destLen Uns(10); // Destination length
|
|
150
|
+
source Char(65535) Const Options(*VARSIZE); // Source buffer
|
|
151
|
+
sourceLen Uns(10) Value; // Source length
|
|
152
|
+
End-Pr;
|
|
153
|
+
|
|
154
|
+
Dcl-Pr uncompress_z Int(10) Extproc('uncompress_z');
|
|
155
|
+
dest Char(65535) Options(*VARSIZE); // Destination buffer
|
|
156
|
+
destLen Uns(20); // Destination length
|
|
157
|
+
source Char(65535) Const Options(*VARSIZE); // Source buffer
|
|
158
|
+
sourceLen Uns(20) Value; // Source length
|
|
159
|
+
End-Pr;
|
|
160
|
+
|
|
161
|
+
Dcl-Pr uncompress2 Int(10) Extproc('uncompress2');
|
|
162
|
+
dest Char(65535) Options(*VARSIZE); // Destination buffer
|
|
163
|
+
destLen Uns(10); // Destination length
|
|
164
|
+
source Char(65535) Const Options(*VARSIZE); // Source buffer
|
|
165
|
+
sourceLen Uns(10); // Source length
|
|
166
|
+
End-Pr;
|
|
167
|
+
|
|
168
|
+
Dcl-Pr uncompress2_z Int(10) Extproc('uncompress2_z');
|
|
169
|
+
dest Char(65535) Options(*VARSIZE); // Destination buffer
|
|
170
|
+
destLen Uns(20); // Destination length
|
|
171
|
+
source Char(65535) Const Options(*VARSIZE); // Source buffer
|
|
172
|
+
sourceLen Uns(20); // Source length
|
|
173
|
+
End-Pr;
|
|
174
|
+
|
|
175
|
+
/if not defined(LARGE_FILES)
|
|
176
|
+
Dcl-Pr gzopen Extproc('gzopen') Like(gzFile);
|
|
177
|
+
path Pointer Value Options(*STRING); // File pathname
|
|
178
|
+
mode Pointer Value Options(*STRING); // Open mode
|
|
179
|
+
End-Pr;
|
|
180
|
+
/else
|
|
181
|
+
Dcl-Pr gzopen Extproc('gzopen64') Like(gzFile);
|
|
182
|
+
path Pointer Value Options(*STRING); // File pathname
|
|
183
|
+
mode Pointer Value Options(*STRING); // Open mode
|
|
184
|
+
End-Pr;
|
|
185
|
+
|
|
186
|
+
Dcl-Pr gzopen64 Extproc('gzopen64') Like(gzFile);
|
|
187
|
+
path Pointer Value Options(*STRING); // File pathname
|
|
188
|
+
mode Pointer Value Options(*STRING); // Open mode
|
|
189
|
+
End-Pr;
|
|
190
|
+
/endif
|
|
191
|
+
|
|
192
|
+
Dcl-Pr gzdopen Extproc('gzdopen') Like(gzFile);
|
|
193
|
+
fd Int(10) Value; // File descriptor
|
|
194
|
+
mode Pointer Value Options(*STRING); // Open mode
|
|
195
|
+
End-Pr;
|
|
196
|
+
|
|
197
|
+
Dcl-Pr gzbuffer Int(10) Extproc('gzbuffer');
|
|
198
|
+
file Value Like(gzFile); // File pointer
|
|
199
|
+
size Uns(10) Value;
|
|
200
|
+
End-Pr;
|
|
201
|
+
|
|
202
|
+
Dcl-Pr gzsetparams Int(10) Extproc('gzsetparams');
|
|
203
|
+
file Value Like(gzFile); // File pointer
|
|
204
|
+
level Int(10) Value;
|
|
205
|
+
strategy Int(10) Value;
|
|
206
|
+
End-Pr;
|
|
207
|
+
|
|
208
|
+
Dcl-Pr gzread Int(10) Extproc('gzread');
|
|
209
|
+
file Value Like(gzFile); // File pointer
|
|
210
|
+
buf Char(65535) Options(*VARSIZE); // Buffer
|
|
211
|
+
len Uns(10) Value; // Buffer length
|
|
212
|
+
End-Pr;
|
|
213
|
+
|
|
214
|
+
Dcl-Pr gzfread Int(20) Extproc('gzfread');
|
|
215
|
+
buf Char(65535) Options(*VARSIZE); // Buffer
|
|
216
|
+
size Uns(20) Value; // Buffer length
|
|
217
|
+
nitems Uns(20) Value; // Buffer length
|
|
218
|
+
file Value Like(gzFile); // File pointer
|
|
219
|
+
End-Pr;
|
|
220
|
+
|
|
221
|
+
Dcl-Pr gzwrite Int(10) Extproc('gzwrite');
|
|
222
|
+
file Value Like(gzFile); // File pointer
|
|
223
|
+
buf Char(65535) Const Options(*VARSIZE); // Buffer
|
|
224
|
+
len Uns(10) Value; // Buffer length
|
|
225
|
+
End-Pr;
|
|
226
|
+
|
|
227
|
+
Dcl-Pr gzfwrite Int(20) Extproc('gzfwrite');
|
|
228
|
+
buf Char(65535) Options(*VARSIZE); // Buffer
|
|
229
|
+
size Uns(20) Value; // Buffer length
|
|
230
|
+
nitems Uns(20) Value; // Buffer length
|
|
231
|
+
file Value Like(gzFile); // File pointer
|
|
232
|
+
End-Pr;
|
|
233
|
+
|
|
234
|
+
Dcl-Pr gzputs Int(10) Extproc('gzputs');
|
|
235
|
+
file Value Like(gzFile); // File pointer
|
|
236
|
+
s Pointer Value Options(*STRING); // String to output
|
|
237
|
+
End-Pr;
|
|
238
|
+
|
|
239
|
+
Dcl-Pr gzgets Pointer Extproc('gzgets');
|
|
240
|
+
file Value Like(gzFile); // File pointer
|
|
241
|
+
buf Char(65535) Options(*VARSIZE); // Read buffer
|
|
242
|
+
len Int(10) Value; // Buffer length
|
|
243
|
+
End-Pr;
|
|
244
|
+
|
|
245
|
+
Dcl-Pr gzputc Int(10) Extproc('gzputc');
|
|
246
|
+
file Value Like(gzFile); // File pointer
|
|
247
|
+
c Int(10) Value; // Character to write
|
|
248
|
+
End-Pr;
|
|
249
|
+
|
|
250
|
+
Dcl-Pr gzgetc Int(10) Extproc('gzgetc');
|
|
251
|
+
file Value Like(gzFile); // File pointer
|
|
252
|
+
End-Pr;
|
|
253
|
+
|
|
254
|
+
Dcl-Pr gzgetc_ Int(10) Extproc('gzgetc_');
|
|
255
|
+
file Value Like(gzFile); // File pointer
|
|
256
|
+
End-Pr;
|
|
257
|
+
|
|
258
|
+
Dcl-Pr gzungetc Int(10) Extproc('gzungetc');
|
|
259
|
+
c Int(10) Value; // Character to push
|
|
260
|
+
file Value Like(gzFile); // File pointer
|
|
261
|
+
End-Pr;
|
|
262
|
+
|
|
263
|
+
Dcl-Pr gzflush Int(10) Extproc('gzflush');
|
|
264
|
+
file Value Like(gzFile); // File pointer
|
|
265
|
+
flush Int(10) Value; // Type of flush
|
|
266
|
+
End-Pr;
|
|
267
|
+
|
|
268
|
+
/if not defined(LARGE_FILES)
|
|
269
|
+
Dcl-Pr gzseek Extproc('gzseek') Like(z_off_t);
|
|
270
|
+
file Value Like(gzFile); // File pointer
|
|
271
|
+
offset Value Like(z_off_t); // Offset
|
|
272
|
+
whence Int(10) Value; // Origin
|
|
273
|
+
End-Pr;
|
|
274
|
+
/else
|
|
275
|
+
Dcl-Pr gzseek Extproc('gzseek64') Like(z_off_t);
|
|
276
|
+
file Value Like(gzFile); // File pointer
|
|
277
|
+
offset Value Like(z_off_t); // Offset
|
|
278
|
+
whence Int(10) Value; // Origin
|
|
279
|
+
End-Pr;
|
|
280
|
+
|
|
281
|
+
Dcl-Pr gzseek64 Extproc('gzseek64') Like(z_off64_t);
|
|
282
|
+
file Value Like(gzFile); // File pointer
|
|
283
|
+
offset Value Like(z_off64_t); // Offset
|
|
284
|
+
whence Int(10) Value; // Origin
|
|
285
|
+
End-Pr;
|
|
286
|
+
/endif
|
|
287
|
+
|
|
288
|
+
Dcl-Pr gzrewind Int(10) Extproc('gzrewind');
|
|
289
|
+
file Value Like(gzFile); // File pointer
|
|
290
|
+
End-Pr;
|
|
291
|
+
|
|
292
|
+
/if not defined(LARGE_FILES)
|
|
293
|
+
Dcl-Pr gztell Extproc('gztell') Like(z_off_t);
|
|
294
|
+
file Value Like(gzFile); // File pointer
|
|
295
|
+
End-Pr;
|
|
296
|
+
/else
|
|
297
|
+
Dcl-Pr gztell Extproc('gztell64') Like(z_off_t);
|
|
298
|
+
file Value Like(gzFile); // File pointer
|
|
299
|
+
End-Pr;
|
|
300
|
+
|
|
301
|
+
Dcl-Pr gztell64 Extproc('gztell64') Like(z_off64_t);
|
|
302
|
+
file Value Like(gzFile); // File pointer
|
|
303
|
+
End-Pr;
|
|
304
|
+
/endif
|
|
305
|
+
|
|
306
|
+
/if not defined(LARGE_FILES)
|
|
307
|
+
Dcl-Pr gzoffset Extproc('gzoffset') Like(z_off_t);
|
|
308
|
+
file Value Like(gzFile); // File pointer
|
|
309
|
+
End-Pr;
|
|
310
|
+
/else
|
|
311
|
+
Dcl-Pr gzoffset Extproc('gzoffset64') Like(z_off_t);
|
|
312
|
+
file Value Like(gzFile); // File pointer
|
|
313
|
+
End-Pr;
|
|
314
|
+
|
|
315
|
+
Dcl-Pr gzoffset64 Extproc('gzoffset64') Like(z_off64_t);
|
|
316
|
+
file Value Like(gzFile); // File pointer
|
|
317
|
+
End-Pr;
|
|
318
|
+
/endif
|
|
319
|
+
|
|
320
|
+
Dcl-Pr gzeof Int(10) Extproc('gzeof');
|
|
321
|
+
file Value Like(gzFile); // File pointer
|
|
322
|
+
End-Pr;
|
|
323
|
+
|
|
324
|
+
Dcl-Pr gzdirect Int(10) Extproc('gzdirect');
|
|
325
|
+
file Value Like(gzFile); // File pointer
|
|
326
|
+
End-Pr;
|
|
327
|
+
|
|
328
|
+
Dcl-Pr gzclose_r Int(10) Extproc('gzclose_r');
|
|
329
|
+
file Value Like(gzFile); // File pointer
|
|
330
|
+
End-Pr;
|
|
331
|
+
|
|
332
|
+
Dcl-Pr gzclose_w Int(10) Extproc('gzclose_w');
|
|
333
|
+
file Value Like(gzFile); // File pointer
|
|
334
|
+
End-Pr;
|
|
335
|
+
|
|
336
|
+
Dcl-Pr gzclose Int(10) Extproc('gzclose');
|
|
337
|
+
file Value Like(gzFile); // File pointer
|
|
338
|
+
End-Pr;
|
|
339
|
+
|
|
340
|
+
Dcl-Pr gzerror Pointer Extproc('gzerror'); // Error string
|
|
341
|
+
file Value Like(gzFile); // File pointer
|
|
342
|
+
errnum Int(10); // Error code
|
|
343
|
+
End-Pr;
|
|
344
|
+
|
|
345
|
+
Dcl-Pr gzclearerr Extproc('gzclearerr');
|
|
346
|
+
file Value Like(gzFile); // File pointer
|
|
347
|
+
End-Pr;
|
|
348
|
+
|
|
349
|
+
//*************************************************************************
|
|
350
|
+
// Basic function prototypes
|
|
351
|
+
//*************************************************************************
|
|
352
|
+
|
|
353
|
+
Dcl-Pr zlibVersion Pointer Extproc('zlibVersion'); // Version string
|
|
354
|
+
End-Pr;
|
|
355
|
+
|
|
356
|
+
Dcl-Pr deflateInit Int(10) Extproc('deflateInit_'); // Init. compression
|
|
357
|
+
strm Like(z_stream); // Compression stream
|
|
358
|
+
level Int(10) Value; // Compression level
|
|
359
|
+
version Pointer Value Options(*STRING); // Version string
|
|
360
|
+
stream_size Int(10) Value; // Stream struct. size
|
|
361
|
+
End-Pr;
|
|
362
|
+
|
|
363
|
+
Dcl-Pr deflate Int(10) Extproc('deflate'); // Compress data
|
|
364
|
+
strm Like(z_stream); // Compression stream
|
|
365
|
+
flush Int(10) Value; // Flush type required
|
|
366
|
+
End-Pr;
|
|
367
|
+
|
|
368
|
+
Dcl-Pr deflateEnd Int(10) Extproc('deflateEnd'); // Termin. compression
|
|
369
|
+
strm Like(z_stream); // Compression stream
|
|
370
|
+
End-Pr;
|
|
371
|
+
|
|
372
|
+
Dcl-Pr inflateInit Int(10) Extproc('inflateInit_'); // Init. expansion
|
|
373
|
+
strm Like(z_stream); // Expansion stream
|
|
374
|
+
version Pointer Value Options(*STRING); // Version string
|
|
375
|
+
stream_size Int(10) Value; // Stream struct. size
|
|
376
|
+
End-Pr;
|
|
377
|
+
|
|
378
|
+
Dcl-Pr inflate Int(10) Extproc('inflate'); // Expand data
|
|
379
|
+
strm Like(z_stream); // Expansion stream
|
|
380
|
+
flush Int(10) Value; // Flush type required
|
|
381
|
+
End-Pr;
|
|
382
|
+
|
|
383
|
+
Dcl-Pr inflateEnd Int(10) Extproc('inflateEnd'); // Termin. expansion
|
|
384
|
+
strm Like(z_stream); // Expansion stream
|
|
385
|
+
End-Pr;
|
|
386
|
+
|
|
387
|
+
//*************************************************************************
|
|
388
|
+
// Advanced function prototypes
|
|
389
|
+
//*************************************************************************
|
|
390
|
+
|
|
391
|
+
Dcl-Pr deflateInit2 Int(10) Extproc('deflateInit2_'); // Init. compression
|
|
392
|
+
strm Like(z_stream); // Compression stream
|
|
393
|
+
level Int(10) Value; // Compression level
|
|
394
|
+
method Int(10) Value; // Compression method
|
|
395
|
+
windowBits Int(10) Value; // log2(window size)
|
|
396
|
+
memLevel Int(10) Value; // Mem/cmpress tradeoff
|
|
397
|
+
strategy Int(10) Value; // Compression strategy
|
|
398
|
+
version Pointer Value Options(*STRING); // Version string
|
|
399
|
+
stream_size Int(10) Value; // Stream struct. size
|
|
400
|
+
End-Pr;
|
|
401
|
+
|
|
402
|
+
Dcl-Pr deflateSetDictionary Int(10) Extproc('deflateSetDictionary'); // Init. dictionary
|
|
403
|
+
strm Like(z_stream); // Compression stream
|
|
404
|
+
dictionary Char(65535) Const Options(*VARSIZE); // Dictionary bytes
|
|
405
|
+
dictLength Uns(10) Value; // Dictionary length
|
|
406
|
+
End-Pr;
|
|
407
|
+
|
|
408
|
+
Dcl-Pr deflateCopy Int(10) Extproc('deflateCopy'); // Compress strm 2 strm
|
|
409
|
+
dest Like(z_stream); // Destination stream
|
|
410
|
+
source Like(z_stream); // Source stream
|
|
411
|
+
End-Pr;
|
|
412
|
+
|
|
413
|
+
Dcl-Pr deflateReset Int(10) Extproc('deflateReset'); // End and init. stream
|
|
414
|
+
strm Like(z_stream); // Compression stream
|
|
415
|
+
End-Pr;
|
|
416
|
+
|
|
417
|
+
Dcl-Pr deflateParams Int(10) Extproc('deflateParams'); // Change level & strat
|
|
418
|
+
strm Like(z_stream); // Compression stream
|
|
419
|
+
level Int(10) Value; // Compression level
|
|
420
|
+
strategy Int(10) Value; // Compression strategy
|
|
421
|
+
End-Pr;
|
|
422
|
+
|
|
423
|
+
Dcl-Pr deflateTune Int(10) Extproc('deflateTune');
|
|
424
|
+
strm Like(z_stream); // Compression stream
|
|
425
|
+
good Int(10) Value;
|
|
426
|
+
lazy Int(10) Value;
|
|
427
|
+
nice Int(10) Value;
|
|
428
|
+
chain_ Int(10) Value;
|
|
429
|
+
End-Pr;
|
|
430
|
+
|
|
431
|
+
Dcl-Pr deflateBound Uns(10) Extproc('deflateBound'); // Change level & strat
|
|
432
|
+
strm Like(z_stream); // Compression stream
|
|
433
|
+
sourcelen Uns(10) Value; // Source length
|
|
434
|
+
End-Pr;
|
|
435
|
+
|
|
436
|
+
Dcl-Pr deflateBound_z Uns(10) Extproc('deflateBound_z'); // Change level & strat
|
|
437
|
+
strm Like(z_stream); // Compression stream
|
|
438
|
+
sourcelen Uns(20) Value; // Source length
|
|
439
|
+
End-Pr;
|
|
440
|
+
|
|
441
|
+
Dcl-Pr deflatePending Int(10) Extproc('deflatePending'); // Change level & strat
|
|
442
|
+
strm Like(z_stream); // Compression stream
|
|
443
|
+
pending Uns(10); // Pending bytes
|
|
444
|
+
bits Int(10); // Pending bits
|
|
445
|
+
End-Pr;
|
|
446
|
+
|
|
447
|
+
Dcl-Pr deflateUsed Int(10) Extproc('deflateUsed'); // Get used bits
|
|
448
|
+
strm Like(z_stream); // Compression stream
|
|
449
|
+
bits Int(10); // Used bits
|
|
450
|
+
End-Pr;
|
|
451
|
+
|
|
452
|
+
Dcl-Pr deflatePrime Int(10) Extproc('deflatePrime'); // Change level & strat
|
|
453
|
+
strm Like(z_stream); // Compression stream
|
|
454
|
+
bits Int(10) Value; // # of bits to insert
|
|
455
|
+
value Int(10) Value; // Bits to insert
|
|
456
|
+
End-Pr;
|
|
457
|
+
|
|
458
|
+
Dcl-Pr inflateInit2 Int(10) Extproc('inflateInit2_'); // Init. expansion
|
|
459
|
+
strm Like(z_stream); // Expansion stream
|
|
460
|
+
windowBits Int(10) Value; // log2(window size)
|
|
461
|
+
version Pointer Value Options(*STRING); // Version string
|
|
462
|
+
stream_size Int(10) Value; // Stream struct. size
|
|
463
|
+
End-Pr;
|
|
464
|
+
|
|
465
|
+
Dcl-Pr inflateSetDictionary Int(10) Extproc('inflateSetDictionary'); // Init. dictionary
|
|
466
|
+
strm Like(z_stream); // Expansion stream
|
|
467
|
+
dictionary Char(65535) Const Options(*VARSIZE); // Dictionary bytes
|
|
468
|
+
dictLength Uns(10) Value; // Dictionary length
|
|
469
|
+
End-Pr;
|
|
470
|
+
|
|
471
|
+
Dcl-Pr inflateGetDictionary Int(10) Extproc('inflateGetDictionary'); // Get dictionary
|
|
472
|
+
strm Like(z_stream); // Expansion stream
|
|
473
|
+
dictionary Char(65535) Options(*VARSIZE); // Dictionary bytes
|
|
474
|
+
dictLength Uns(10); // Dictionary length
|
|
475
|
+
End-Pr;
|
|
476
|
+
|
|
477
|
+
Dcl-Pr deflateGetDictionary Int(10) Extproc('deflateGetDictionary'); // Get dictionary
|
|
478
|
+
strm Like(z_stream); // Expansion stream
|
|
479
|
+
dictionary Char(65535) Options(*VARSIZE); // Dictionary bytes
|
|
480
|
+
dictLength Uns(10); // Dictionary length
|
|
481
|
+
End-Pr;
|
|
482
|
+
|
|
483
|
+
Dcl-Pr inflateSync Int(10) Extproc('inflateSync'); // Sync. expansion
|
|
484
|
+
strm Like(z_stream); // Expansion stream
|
|
485
|
+
End-Pr;
|
|
486
|
+
|
|
487
|
+
Dcl-Pr inflateCopy Int(10) Extproc('inflateCopy');
|
|
488
|
+
dest Like(z_stream); // Destination stream
|
|
489
|
+
source Like(z_stream); // Source stream
|
|
490
|
+
End-Pr;
|
|
491
|
+
|
|
492
|
+
Dcl-Pr inflateReset Int(10) Extproc('inflateReset'); // End and init. stream
|
|
493
|
+
strm Like(z_stream); // Expansion stream
|
|
494
|
+
End-Pr;
|
|
495
|
+
|
|
496
|
+
Dcl-Pr inflateReset2 Int(10) Extproc('inflateReset2'); // End and init. stream
|
|
497
|
+
strm Like(z_stream); // Expansion stream
|
|
498
|
+
windowBits Int(10) Value; // Log2(buffer size)
|
|
499
|
+
End-Pr;
|
|
500
|
+
|
|
501
|
+
Dcl-Pr inflatePrime Int(10) Extproc('inflatePrime'); // Insert bits
|
|
502
|
+
strm Like(z_stream); // Expansion stream
|
|
503
|
+
bits Int(10) Value; // Bit count
|
|
504
|
+
value Int(10) Value; // Bits to insert
|
|
505
|
+
End-Pr;
|
|
506
|
+
|
|
507
|
+
Dcl-Pr inflateMark Int(10) Extproc('inflateMark'); // Get inflate info
|
|
508
|
+
strm Like(z_stream); // Expansion stream
|
|
509
|
+
End-Pr;
|
|
510
|
+
|
|
511
|
+
Dcl-Pr inflateCodesUsed Uns(20) Extproc('inflateCodesUsed');
|
|
512
|
+
strm Like(z_stream); // Expansion stream
|
|
513
|
+
End-Pr;
|
|
514
|
+
|
|
515
|
+
Dcl-Pr inflateValidate Uns(20) Extproc('inflateValidate');
|
|
516
|
+
strm Like(z_stream); // Expansion stream
|
|
517
|
+
check Int(10) Value;
|
|
518
|
+
End-Pr;
|
|
519
|
+
|
|
520
|
+
Dcl-Pr inflateGetHeader Uns(10) Extproc('inflateGetHeader');
|
|
521
|
+
strm Like(z_stream); // Expansion stream
|
|
522
|
+
head Like(GZ_HEADERP);
|
|
523
|
+
End-Pr;
|
|
524
|
+
|
|
525
|
+
Dcl-Pr deflateSetHeader Uns(10) Extproc('deflateSetHeader');
|
|
526
|
+
strm Like(z_stream); // Expansion stream
|
|
527
|
+
head Like(GZ_HEADERP);
|
|
528
|
+
End-Pr;
|
|
529
|
+
|
|
530
|
+
Dcl-Pr inflateBackInit Int(10) Extproc('inflateBackInit_');
|
|
531
|
+
strm Like(z_stream); // Expansion stream
|
|
532
|
+
windowBits Int(10) Value; // Log2(buffer size)
|
|
533
|
+
window Char(65535) Options(*VARSIZE); // Buffer
|
|
534
|
+
version Pointer Value Options(*STRING); // Version string
|
|
535
|
+
stream_size Int(10) Value; // Stream struct. size
|
|
536
|
+
End-Pr;
|
|
537
|
+
|
|
538
|
+
Dcl-Pr inflateBack Int(10) Extproc('inflateBack');
|
|
539
|
+
strm Like(z_stream); // Expansion stream
|
|
540
|
+
in_ Pointer(*PROC) Value; // Input function
|
|
541
|
+
in_desc Pointer Value; // Input descriptor
|
|
542
|
+
out_ Pointer(*PROC) Value; // Output function
|
|
543
|
+
out_desc Pointer Value; // Output descriptor
|
|
544
|
+
End-Pr;
|
|
545
|
+
|
|
546
|
+
Dcl-Pr inflateBackEnd Int(10) Extproc('inflateBackend');
|
|
547
|
+
strm Like(z_stream); // Expansion stream
|
|
548
|
+
End-Pr;
|
|
549
|
+
|
|
550
|
+
Dcl-Pr zlibCompileFlags Uns(10) Extproc('zlibCompileFlags') End-Pr;
|
|
551
|
+
|
|
552
|
+
//*************************************************************************
|
|
553
|
+
// Checksum function prototypes
|
|
554
|
+
//*************************************************************************
|
|
555
|
+
|
|
556
|
+
Dcl-Pr adler32 Uns(10) Extproc('adler32'); // New checksum
|
|
557
|
+
adler Uns(10) Value; // Old checksum
|
|
558
|
+
buf Char(65535) Const Options(*VARSIZE); // Bytes to accumulate
|
|
559
|
+
len Uns(10) Value; // Buffer length
|
|
560
|
+
End-Pr;
|
|
561
|
+
|
|
562
|
+
Dcl-Pr adler32_combine Uns(10) Extproc('adler32_combine'); // New checksum
|
|
563
|
+
adler1 Uns(10) Value; // Old checksum
|
|
564
|
+
adler2 Uns(10) Value; // Old checksum
|
|
565
|
+
len2 Uns(20) Value; // Buffer length
|
|
566
|
+
End-Pr;
|
|
567
|
+
|
|
568
|
+
Dcl-Pr adler32_z Uns(10) Extproc('adler32_z'); // New checksum
|
|
569
|
+
adler Uns(10) Value; // Old checksum
|
|
570
|
+
buf Char(65535) Const Options(*VARSIZE); // Bytes to accumulate
|
|
571
|
+
len Uns(20) Value; // Buffer length
|
|
572
|
+
End-Pr;
|
|
573
|
+
|
|
574
|
+
Dcl-Pr crc32 Uns(10) Extproc('crc32'); // New checksum
|
|
575
|
+
crc Uns(10) Value; // Old checksum
|
|
576
|
+
buf Char(65535) Const Options(*VARSIZE); // Bytes to accumulate
|
|
577
|
+
len Uns(10) Value; // Buffer length
|
|
578
|
+
End-Pr;
|
|
579
|
+
|
|
580
|
+
Dcl-Pr crc32_combine Uns(10) Extproc('crc32_combine'); // New checksum
|
|
581
|
+
crc1 Uns(10) Value; // Old checksum
|
|
582
|
+
crc2 Uns(10) Value; // Old checksum
|
|
583
|
+
len2 Uns(20) Value; // 2nd Buffer length
|
|
584
|
+
End-Pr;
|
|
585
|
+
|
|
586
|
+
Dcl-Pr crc32_z Uns(10) Extproc('crc32_z'); // New checksum
|
|
587
|
+
crc Uns(10) Value; // Old checksum
|
|
588
|
+
buf Char(65535) Const Options(*VARSIZE); // Bytes to accumulate
|
|
589
|
+
len Uns(20) Value; // Buffer length
|
|
590
|
+
End-Pr;
|
|
591
|
+
|
|
592
|
+
Dcl-Pr crc32_combine_gen Uns(10) Extproc('crc32_combine_gen');
|
|
593
|
+
len Uns(20) Value; // 2nd Buffer length
|
|
594
|
+
End-Pr;
|
|
595
|
+
|
|
596
|
+
Dcl-Pr crc32_combine_gen64 Uns(10) Extproc('crc32_combine_gen64');
|
|
597
|
+
len Uns(20) Value; // 2nd Buffer length
|
|
598
|
+
End-Pr;
|
|
599
|
+
|
|
600
|
+
Dcl-Pr crc32_combine_op Uns(10) Extproc('crc32_combine_op'); // New checksum
|
|
601
|
+
crc1 Uns(10) Value; // Old checksum
|
|
602
|
+
crc2 Uns(10) Value; // Old checksum
|
|
603
|
+
op Uns(10) Value; // Operator
|
|
604
|
+
End-Pr;
|
|
605
|
+
|
|
606
|
+
//*************************************************************************
|
|
607
|
+
// Miscellaneous function prototypes
|
|
608
|
+
//*************************************************************************
|
|
609
|
+
|
|
610
|
+
Dcl-Pr zError Pointer Extproc('zError'); // Error string
|
|
611
|
+
err Int(10) Value; // Error code
|
|
612
|
+
End-Pr;
|
|
613
|
+
|
|
614
|
+
Dcl-Pr inflateSyncPoint Int(10) Extproc('inflateSyncPoint');
|
|
615
|
+
strm Like(z_stream); // Expansion stream
|
|
616
|
+
End-Pr;
|
|
617
|
+
|
|
618
|
+
Dcl-Pr get_crc_table Pointer Extproc('get_crc_table'); // Ptr to ulongs
|
|
619
|
+
End-Pr;
|
|
620
|
+
|
|
621
|
+
Dcl-Pr inflateUndermine Int(10) Extproc('inflateUndermine');
|
|
622
|
+
strm Like(z_stream); // Expansion stream
|
|
623
|
+
arg Int(10) Value; // Error code
|
|
624
|
+
End-Pr;
|
|
625
|
+
|
|
626
|
+
Dcl-Pr inflateResetKeep Int(10) Extproc('inflateResetKeep'); // End and init. stream
|
|
627
|
+
strm Like(z_stream); // Expansion stream
|
|
628
|
+
End-Pr;
|
|
629
|
+
|
|
630
|
+
Dcl-Pr deflateResetKeep Int(10) Extproc('deflateResetKeep'); // End and init. stream
|
|
631
|
+
strm Like(z_stream); // Expansion stream
|
|
632
|
+
End-Pr;
|
|
633
|
+
|
|
634
|
+
/endif
|