koffi 2.1.3 → 2.1.4
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/package.json +44 -68
- package/{LICENSE.txt → src/cnoke/LICENSE.txt} +0 -0
- package/src/cnoke/README.md +97 -0
- package/src/cnoke/assets/FindCNoke.cmake +71 -0
- package/src/cnoke/assets/win_delay_hook.c +34 -0
- package/src/cnoke/cnoke.js +968 -0
- package/src/cnoke/package.json +25 -0
- package/{vendor → src/core}/libcc/libcc.cc +38 -11
- package/{vendor → src/core}/libcc/libcc.hh +4 -2
- package/{CMakeLists.txt → src/koffi/CMakeLists.txt} +3 -3
- package/{ChangeLog.md → src/koffi/ChangeLog.md} +11 -0
- package/src/koffi/LICENSE.txt +661 -0
- package/{README.md → src/koffi/README.md} +0 -0
- package/{benchmark → src/koffi/benchmark}/CMakeLists.txt +9 -6
- package/{benchmark → src/koffi/benchmark}/atoi_koffi.js +0 -0
- package/{benchmark → src/koffi/benchmark}/atoi_napi.cc +1 -1
- package/{benchmark → src/koffi/benchmark}/atoi_napi.js +0 -0
- package/{benchmark → src/koffi/benchmark}/atoi_node_ffi.js +0 -0
- package/src/koffi/benchmark/benchmark.js +118 -0
- package/src/koffi/benchmark/rand_koffi.js +52 -0
- package/src/koffi/benchmark/rand_napi.cc +69 -0
- package/src/koffi/benchmark/rand_napi.js +47 -0
- package/src/koffi/benchmark/rand_node_ffi.js +55 -0
- package/{benchmark → src/koffi/benchmark}/raylib_cc.cc +2 -2
- package/{benchmark → src/koffi/benchmark}/raylib_cc.js +0 -0
- package/{benchmark → src/koffi/benchmark}/raylib_koffi.js +0 -0
- package/{benchmark → src/koffi/benchmark}/raylib_node_ffi.js +0 -0
- package/{benchmark → src/koffi/benchmark}/raylib_node_raylib.js +0 -0
- package/src/koffi/build/2.1.4/koffi_darwin_arm64.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_darwin_x64.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_freebsd_arm64.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_freebsd_ia32.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_freebsd_x64.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_linux_arm32hf.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_linux_arm64.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_linux_ia32.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_linux_riscv64hf64.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_linux_x64.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_openbsd_ia32.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_openbsd_x64.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_win32_arm64.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_win32_ia32.tar.gz +0 -0
- package/src/koffi/build/2.1.4/koffi_win32_x64.tar.gz +0 -0
- package/{doc → src/koffi/doc}/Makefile +0 -0
- package/{doc → src/koffi/doc}/benchmarks.md +0 -0
- package/{doc → src/koffi/doc}/benchmarks.xlsx +0 -0
- package/{doc → src/koffi/doc}/changes.md +0 -0
- package/{doc → src/koffi/doc}/conf.py +0 -0
- package/{doc → src/koffi/doc}/contribute.md +5 -5
- package/{doc → src/koffi/doc}/functions.md +0 -0
- package/{doc → src/koffi/doc}/index.rst +1 -1
- package/{doc → src/koffi/doc}/make.bat +0 -0
- package/{doc → src/koffi/doc}/memory.md +1 -0
- package/{doc → src/koffi/doc}/platforms.md +0 -0
- package/{doc → src/koffi/doc}/poetry.lock +0 -0
- package/{doc → src/koffi/doc}/pyproject.toml +0 -0
- package/{doc → src/koffi/doc}/start.md +0 -0
- package/{doc → src/koffi/doc}/static/bench_linux.png +0 -0
- package/{doc → src/koffi/doc}/static/bench_windows.png +0 -0
- package/{doc → src/koffi/doc}/static/custom.css +0 -0
- package/{doc → src/koffi/doc}/static/perf_linux_20220623.png +0 -0
- package/{doc → src/koffi/doc}/static/perf_linux_20220623_2.png +0 -0
- package/{doc → src/koffi/doc}/static/perf_linux_20220627.png +0 -0
- package/{doc → src/koffi/doc}/static/perf_linux_20220628.png +0 -0
- package/{doc → src/koffi/doc}/static/perf_linux_20220812.png +0 -0
- package/{doc → src/koffi/doc}/static/perf_windows_20220623.png +0 -0
- package/{doc → src/koffi/doc}/static/perf_windows_20220623_2.png +0 -0
- package/{doc → src/koffi/doc}/static/perf_windows_20220627.png +0 -0
- package/{doc → src/koffi/doc}/static/perf_windows_20220628.png +0 -0
- package/{doc → src/koffi/doc}/static/perf_windows_20220812.png +0 -0
- package/{doc → src/koffi/doc}/templates/badges.html +1 -1
- package/{doc → src/koffi/doc}/types.md +0 -0
- package/src/koffi/qemu/qemu/.gitkeep +0 -0
- package/{qemu → src/koffi/qemu}/qemu.js +217 -131
- package/{qemu → src/koffi/qemu}/registry/machines.json +24 -0
- package/{qemu → src/koffi/qemu}/registry/sha256sum.txt +0 -0
- package/src/{abi_arm32.cc → koffi/src/abi_arm32.cc} +1 -1
- package/src/{abi_arm32_fwd.S → koffi/src/abi_arm32_fwd.S} +0 -0
- package/src/{abi_arm64.cc → koffi/src/abi_arm64.cc} +1 -1
- package/src/{abi_arm64_fwd.S → koffi/src/abi_arm64_fwd.S} +0 -0
- package/src/{abi_arm64_fwd.asm → koffi/src/abi_arm64_fwd.asm} +0 -0
- package/src/{abi_riscv64.cc → koffi/src/abi_riscv64.cc} +1 -1
- package/src/{abi_riscv64_fwd.S → koffi/src/abi_riscv64_fwd.S} +0 -0
- package/src/{abi_x64_sysv.cc → koffi/src/abi_x64_sysv.cc} +1 -1
- package/src/{abi_x64_sysv_fwd.S → koffi/src/abi_x64_sysv_fwd.S} +0 -0
- package/src/{abi_x64_win.cc → koffi/src/abi_x64_win.cc} +1 -1
- package/src/{abi_x64_win_fwd.asm → koffi/src/abi_x64_win_fwd.asm} +0 -0
- package/src/{abi_x86.cc → koffi/src/abi_x86.cc} +1 -1
- package/src/{abi_x86_fwd.S → koffi/src/abi_x86_fwd.S} +0 -0
- package/src/{abi_x86_fwd.asm → koffi/src/abi_x86_fwd.asm} +0 -0
- package/src/{call.cc → koffi/src/call.cc} +1 -1
- package/src/{call.hh → koffi/src/call.hh} +2 -2
- package/src/{ffi.cc → koffi/src/ffi.cc} +34 -18
- package/src/{ffi.hh → koffi/src/ffi.hh} +5 -3
- package/src/{index.js → koffi/src/index.js} +0 -0
- package/src/{parser.cc → koffi/src/parser.cc} +1 -1
- package/src/{parser.hh → koffi/src/parser.hh} +1 -1
- package/src/{util.cc → koffi/src/util.cc} +1 -1
- package/src/{util.hh → koffi/src/util.hh} +1 -1
- package/{test → src/koffi/test}/CMakeLists.txt +14 -15
- package/{test → src/koffi/test}/async.js +0 -0
- package/{test → src/koffi/test}/callbacks.js +0 -0
- package/{test → src/koffi/test}/misc.c +13 -0
- package/{test → src/koffi/test}/misc.def +0 -0
- package/{test → src/koffi/test}/raylib.js +0 -0
- package/{test → src/koffi/test}/sqlite.js +1 -1
- package/{test → src/koffi/test}/sync.js +17 -0
- package/vendor/brotli/BUILD +144 -0
- package/vendor/brotli/CMakeLists.txt +421 -0
- package/vendor/brotli/CONTRIBUTING.md +27 -0
- package/vendor/brotli/LICENSE +19 -0
- package/vendor/brotli/MANIFEST.in +17 -0
- package/vendor/brotli/Makefile +55 -0
- package/vendor/brotli/Makefile.am +38 -0
- package/vendor/brotli/README +15 -0
- package/vendor/brotli/README.md +104 -0
- package/vendor/brotli/WORKSPACE +21 -0
- package/vendor/brotli/bootstrap +35 -0
- package/vendor/brotli/c/common/constants.c +15 -0
- package/vendor/brotli/c/common/constants.h +200 -0
- package/vendor/brotli/c/common/context.c +156 -0
- package/vendor/brotli/c/common/context.h +113 -0
- package/vendor/brotli/c/common/dictionary.c +5914 -0
- package/vendor/brotli/c/common/dictionary.h +64 -0
- package/vendor/brotli/c/common/platform.c +22 -0
- package/vendor/brotli/c/common/platform.h +594 -0
- package/vendor/brotli/c/common/transform.c +291 -0
- package/vendor/brotli/c/common/transform.h +85 -0
- package/vendor/brotli/c/common/version.h +26 -0
- package/vendor/brotli/c/dec/bit_reader.c +76 -0
- package/vendor/brotli/c/dec/bit_reader.h +351 -0
- package/vendor/brotli/c/dec/decode.c +2608 -0
- package/vendor/brotli/c/dec/huffman.c +339 -0
- package/vendor/brotli/c/dec/huffman.h +121 -0
- package/vendor/brotli/c/dec/prefix.h +732 -0
- package/vendor/brotli/c/dec/state.c +159 -0
- package/vendor/brotli/c/dec/state.h +365 -0
- package/vendor/brotli/c/enc/backward_references.c +145 -0
- package/vendor/brotli/c/enc/backward_references.h +39 -0
- package/vendor/brotli/c/enc/backward_references_hq.c +843 -0
- package/vendor/brotli/c/enc/backward_references_hq.h +95 -0
- package/vendor/brotli/c/enc/backward_references_inc.h +163 -0
- package/vendor/brotli/c/enc/bit_cost.c +35 -0
- package/vendor/brotli/c/enc/bit_cost.h +63 -0
- package/vendor/brotli/c/enc/bit_cost_inc.h +127 -0
- package/vendor/brotli/c/enc/block_encoder_inc.h +34 -0
- package/vendor/brotli/c/enc/block_splitter.c +194 -0
- package/vendor/brotli/c/enc/block_splitter.h +51 -0
- package/vendor/brotli/c/enc/block_splitter_inc.h +440 -0
- package/vendor/brotli/c/enc/brotli_bit_stream.c +1314 -0
- package/vendor/brotli/c/enc/brotli_bit_stream.h +84 -0
- package/vendor/brotli/c/enc/cluster.c +56 -0
- package/vendor/brotli/c/enc/cluster.h +48 -0
- package/vendor/brotli/c/enc/cluster_inc.h +320 -0
- package/vendor/brotli/c/enc/command.c +28 -0
- package/vendor/brotli/c/enc/command.h +190 -0
- package/vendor/brotli/c/enc/compress_fragment.c +790 -0
- package/vendor/brotli/c/enc/compress_fragment.h +61 -0
- package/vendor/brotli/c/enc/compress_fragment_two_pass.c +645 -0
- package/vendor/brotli/c/enc/compress_fragment_two_pass.h +54 -0
- package/vendor/brotli/c/enc/dictionary_hash.c +1846 -0
- package/vendor/brotli/c/enc/dictionary_hash.h +25 -0
- package/vendor/brotli/c/enc/encode.c +1927 -0
- package/vendor/brotli/c/enc/encoder_dict.c +33 -0
- package/vendor/brotli/c/enc/encoder_dict.h +43 -0
- package/vendor/brotli/c/enc/entropy_encode.c +503 -0
- package/vendor/brotli/c/enc/entropy_encode.h +122 -0
- package/vendor/brotli/c/enc/entropy_encode_static.h +539 -0
- package/vendor/brotli/c/enc/fast_log.c +105 -0
- package/vendor/brotli/c/enc/fast_log.h +66 -0
- package/vendor/brotli/c/enc/find_match_length.h +79 -0
- package/vendor/brotli/c/enc/hash.h +488 -0
- package/vendor/brotli/c/enc/hash_composite_inc.h +125 -0
- package/vendor/brotli/c/enc/hash_forgetful_chain_inc.h +293 -0
- package/vendor/brotli/c/enc/hash_longest_match64_inc.h +267 -0
- package/vendor/brotli/c/enc/hash_longest_match_inc.h +262 -0
- package/vendor/brotli/c/enc/hash_longest_match_quickly_inc.h +266 -0
- package/vendor/brotli/c/enc/hash_rolling_inc.h +212 -0
- package/vendor/brotli/c/enc/hash_to_binary_tree_inc.h +329 -0
- package/vendor/brotli/c/enc/histogram.c +100 -0
- package/vendor/brotli/c/enc/histogram.h +63 -0
- package/vendor/brotli/c/enc/histogram_inc.h +51 -0
- package/vendor/brotli/c/enc/literal_cost.c +175 -0
- package/vendor/brotli/c/enc/literal_cost.h +30 -0
- package/vendor/brotli/c/enc/memory.c +170 -0
- package/vendor/brotli/c/enc/memory.h +114 -0
- package/vendor/brotli/c/enc/metablock.c +663 -0
- package/vendor/brotli/c/enc/metablock.h +105 -0
- package/vendor/brotli/c/enc/metablock_inc.h +183 -0
- package/vendor/brotli/c/enc/params.h +46 -0
- package/vendor/brotli/c/enc/prefix.h +53 -0
- package/vendor/brotli/c/enc/quality.h +165 -0
- package/vendor/brotli/c/enc/ringbuffer.h +167 -0
- package/vendor/brotli/c/enc/static_dict.c +486 -0
- package/vendor/brotli/c/enc/static_dict.h +40 -0
- package/vendor/brotli/c/enc/static_dict_lut.h +5864 -0
- package/vendor/brotli/c/enc/utf8_util.c +85 -0
- package/vendor/brotli/c/enc/utf8_util.h +32 -0
- package/vendor/brotli/c/enc/write_bits.h +87 -0
- package/vendor/brotli/c/include/brotli/decode.h +344 -0
- package/vendor/brotli/c/include/brotli/encode.h +448 -0
- package/vendor/brotli/c/include/brotli/port.h +288 -0
- package/vendor/brotli/c/include/brotli/types.h +83 -0
- package/vendor/brotli/c/tools/brotli.c +1116 -0
- package/vendor/brotli/c/tools/brotli.md +107 -0
- package/vendor/brotli/compiler_config_setting.bzl +28 -0
- package/vendor/brotli/configure +8 -0
- package/vendor/brotli/configure-cmake +318 -0
- package/vendor/brotli/configure.ac +14 -0
- package/vendor/brotli/docs/brotli.1 +132 -0
- package/vendor/brotli/docs/constants.h.3 +47 -0
- package/vendor/brotli/docs/decode.h.3 +415 -0
- package/vendor/brotli/docs/encode.h.3 +586 -0
- package/vendor/brotli/docs/types.h.3 +117 -0
- package/vendor/brotli/premake5.lua +78 -0
- package/vendor/brotli/python/Makefile +57 -0
- package/vendor/brotli/python/README.md +54 -0
- package/vendor/brotli/python/_brotli.cc +753 -0
- package/vendor/brotli/python/bro.py +160 -0
- package/vendor/brotli/python/brotli.py +56 -0
- package/vendor/brotli/python/tests/__init__.py +0 -0
- package/vendor/brotli/python/tests/_test_utils.py +112 -0
- package/vendor/brotli/python/tests/bro_test.py +102 -0
- package/vendor/brotli/python/tests/compress_test.py +41 -0
- package/vendor/brotli/python/tests/compressor_test.py +94 -0
- package/vendor/brotli/python/tests/decompress_test.py +42 -0
- package/vendor/brotli/python/tests/decompressor_test.py +59 -0
- package/vendor/brotli/scripts/libbrotlicommon.pc.in +11 -0
- package/vendor/brotli/scripts/libbrotlidec.pc.in +12 -0
- package/vendor/brotli/scripts/libbrotlienc.pc.in +12 -0
- package/vendor/brotli/scripts/sources.lst +104 -0
- package/vendor/brotli/setup.cfg +5 -0
- package/vendor/brotli/setup.py +293 -0
- package/vendor/brotli/tests/Makefile +17 -0
- package/vendor/brotli/tests/compatibility_test.sh +25 -0
- package/vendor/brotli/tests/roundtrip_test.sh +36 -0
- package/vendor/brotli/tests/run-compatibility-test.cmake +31 -0
- package/vendor/brotli/tests/run-roundtrip-test.cmake +36 -0
- package/vendor/brotli/tests/testdata/empty +0 -0
- package/vendor/brotli/tests/testdata/empty.compressed +1 -0
- package/vendor/brotli/tests/testdata/ukkonooa +1 -0
- package/vendor/brotli/tests/testdata/ukkonooa.compressed +0 -0
- package/vendor/miniz/ChangeLog.md +235 -0
- package/vendor/miniz/LICENSE +22 -0
- package/vendor/miniz/examples/example1.c +105 -0
- package/vendor/miniz/examples/example2.c +164 -0
- package/vendor/miniz/examples/example3.c +269 -0
- package/vendor/miniz/examples/example4.c +102 -0
- package/vendor/miniz/examples/example5.c +327 -0
- package/vendor/miniz/examples/example6.c +166 -0
- package/vendor/miniz/miniz.c +7835 -0
- package/vendor/miniz/miniz.h +1422 -0
- package/vendor/miniz/readme.md +46 -0
- package/vendor/{sqlite3 → sqlite3mc}/sqlite3ext.h +18 -2
- package/vendor/{sqlite3/sqlite3.c → sqlite3mc/sqlite3mc.c} +60872 -4890
- package/vendor/sqlite3mc/sqlite3mc.def +312 -0
- package/vendor/{sqlite3/sqlite3.h → sqlite3mc/sqlite3mc.h} +480 -36
- package/build/qemu/2.1.3/koffi_darwin_arm64.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_darwin_x64.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_freebsd_arm64.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_freebsd_ia32.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_freebsd_x64.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_linux_arm32hf.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_linux_arm64.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_linux_ia32.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_linux_riscv64hf64.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_linux_x64.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_openbsd_ia32.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_openbsd_x64.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_win32_arm64.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_win32_ia32.tar.gz +0 -0
- package/build/qemu/2.1.3/koffi_win32_x64.tar.gz +0 -0
- package/vendor/_patches/glfw_001_fix_openbsd_xlib_soname.patch +0 -145
- package/vendor/raylib/projects/VS2019-Android/raylib_android/raylib_android.NativeActivity/raylib_android.NativeActivity.vcxproj +0 -226
- package/vendor/raylib/projects/VS2019-Android/raylib_android/raylib_android.NativeActivity/raylib_android.NativeActivity.vcxproj.filters +0 -10
- package/vendor/raylib/projects/VS2019-Android/raylib_android/raylib_android.NativeActivity/raylib_android.NativeActivity.vcxproj.user +0 -4
- package/vendor/raylib/projects/VS2019-Android/raylib_android.sln +0 -75
- package/vendor/raylib/projects/VS2022/examples/audio_module_playing.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/audio_multichannel_sound.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/audio_music_stream.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/audio_raw_stream.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/audio_sound_loading.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/audio_stream_effects.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_2d_camera.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_2d_camera_mouse_zoom.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_2d_camera_platformer.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_3d_camera_first_person.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_3d_camera_free.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_3d_camera_mode.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_3d_picking.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_basic_screen_manager.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_basic_window.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_custom_frame_control.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_custom_logging.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_drop_files.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_input_gamepad.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_input_gestures.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_input_keys.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_input_mouse.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_input_mouse_wheel.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_input_multitouch.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_loading_thread.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_random_values.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_scissor_test.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_split_screen.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_storage_values.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_vr_simulator.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_window_flags.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_window_letterbox.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/core_window_should_close.vcxproj +0 -390
- package/vendor/raylib/projects/VS2022/examples/core_world_screen.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/easings_testbed.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/embedded_files_loading.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_animation.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_billboard.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_box_collisions.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_cubicmap.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_first_person_maze.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_geometric_shapes.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_heightmap.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_loading.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_loading_gltf.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_loading_vox.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_mesh_generation.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_mesh_picking.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_orthographic_projection.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_rlgl_solar_system.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_skybox.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_waving_cubes.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/models_yaw_pitch_roll.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/rlgl_compute_shaders.vcxproj +0 -391
- package/vendor/raylib/projects/VS2022/examples/rlgl_standalone.vcxproj +0 -391
- package/vendor/raylib/projects/VS2022/examples/shaders_basic_lighting.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_custom_uniform.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_eratosthenes.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_fog.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_hot_reloading.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_julia_set.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_mesh_instancing.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_model_shader.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_multi_sample2d.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_palette_switch.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_postprocessing.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_raymarching.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_shapes_textures.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_simple_mask.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_spotlight.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_texture_drawing.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shaders_texture_waves.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_basic_shapes.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_bouncing_ball.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_collision_area.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_colors_palette.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_draw_circle_sector.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_draw_rectangle_rounded.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_draw_ring.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_easings_ball_anim.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_easings_box_anim.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_easings_rectangle_array.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_following_eyes.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_lines_bezier.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_logo_raylib.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_logo_raylib_anim.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/shapes_rectangle_scaling.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_codepoints_loading.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_draw_3d.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_font_filters.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_font_loading.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_font_sdf.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_font_spritefont.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_format_text.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_input_box.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_raylib_fonts.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_rectangle_bounds.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_unicode.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/text_writing_anim.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_background_scrolling.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_blend_modes.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_bunnymark.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_draw_tiled.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_fog_of_war.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_gif_player.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_image_drawing.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_image_generation.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_image_loading.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_image_processing.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_image_text.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_logo_raylib.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_mouse_painting.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_npatch_drawing.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_particles_blending.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_polygon.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_raw_data.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_sprite_anim.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_sprite_button.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_sprite_explosion.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_srcrec_dstrec.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/examples/textures_to_image.vcxproj +0 -387
- package/vendor/raylib/projects/VS2022/raylib/raylib.vcxproj +0 -340
- package/vendor/raylib/projects/VS2022/raylib.sln +0 -2347
- package/vendor/sqlite3/shell.c +0 -23496
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
.TH "decode.h" 3 "Thu Feb 22 2018" "Brotli" \" -*- nroff -*-
|
|
2
|
+
.ad l
|
|
3
|
+
.nh
|
|
4
|
+
.SH NAME
|
|
5
|
+
decode.h \- API for Brotli decompression\&.
|
|
6
|
+
|
|
7
|
+
.SH SYNOPSIS
|
|
8
|
+
.br
|
|
9
|
+
.PP
|
|
10
|
+
.SS "Macros"
|
|
11
|
+
|
|
12
|
+
.in +1c
|
|
13
|
+
.ti -1c
|
|
14
|
+
.RI "#define \fBBROTLI_DECODER_ERROR_CODES_LIST\fP(BROTLI_ERROR_CODE, SEPARATOR) "
|
|
15
|
+
.br
|
|
16
|
+
.RI "\fITemplate that evaluates items of \fBBrotliDecoderErrorCode\fP\&. \fP"
|
|
17
|
+
.ti -1c
|
|
18
|
+
.RI "#define \fBBROTLI_LAST_ERROR_CODE\fP BROTLI_DECODER_ERROR_UNREACHABLE"
|
|
19
|
+
.br
|
|
20
|
+
.RI "\fIThe value of the last error code, negative integer\&. \fP"
|
|
21
|
+
.in -1c
|
|
22
|
+
.SS "Typedefs"
|
|
23
|
+
|
|
24
|
+
.in +1c
|
|
25
|
+
.ti -1c
|
|
26
|
+
.RI "typedef enum \fBBrotliDecoderParameter\fP \fBBrotliDecoderParameter\fP"
|
|
27
|
+
.br
|
|
28
|
+
.RI "\fIOptions to be used with \fBBrotliDecoderSetParameter\fP\&. \fP"
|
|
29
|
+
.ti -1c
|
|
30
|
+
.RI "typedef struct BrotliDecoderStateStruct \fBBrotliDecoderState\fP"
|
|
31
|
+
.br
|
|
32
|
+
.RI "\fIOpaque structure that holds decoder state\&. \fP"
|
|
33
|
+
.in -1c
|
|
34
|
+
.SS "Enumerations"
|
|
35
|
+
.SS "Functions"
|
|
36
|
+
|
|
37
|
+
.in +1c
|
|
38
|
+
.ti -1c
|
|
39
|
+
.RI "\fBBrotliDecoderState\fP * \fBBrotliDecoderCreateInstance\fP (\fBbrotli_alloc_func\fP alloc_func, \fBbrotli_free_func\fP free_func, void *opaque)"
|
|
40
|
+
.br
|
|
41
|
+
.RI "\fICreates an instance of \fBBrotliDecoderState\fP and initializes it\&. \fP"
|
|
42
|
+
.ti -1c
|
|
43
|
+
.RI "\fBBrotliDecoderResult\fP \fBBrotliDecoderDecompress\fP (size_t encoded_size, const uint8_t encoded_buffer[encoded_size], size_t *decoded_size, uint8_t decoded_buffer[*decoded_size])"
|
|
44
|
+
.br
|
|
45
|
+
.RI "\fIPerforms one-shot memory-to-memory decompression\&. \fP"
|
|
46
|
+
.ti -1c
|
|
47
|
+
.RI "\fBBrotliDecoderResult\fP \fBBrotliDecoderDecompressStream\fP (\fBBrotliDecoderState\fP *state, size_t *available_in, const uint8_t **next_in, size_t *available_out, uint8_t **next_out, size_t *total_out)"
|
|
48
|
+
.br
|
|
49
|
+
.RI "\fIDecompresses the input stream to the output stream\&. \fP"
|
|
50
|
+
.ti -1c
|
|
51
|
+
.RI "void \fBBrotliDecoderDestroyInstance\fP (\fBBrotliDecoderState\fP *state)"
|
|
52
|
+
.br
|
|
53
|
+
.RI "\fIDeinitializes and frees \fBBrotliDecoderState\fP instance\&. \fP"
|
|
54
|
+
.ti -1c
|
|
55
|
+
.RI "const char * \fBBrotliDecoderErrorString\fP (\fBBrotliDecoderErrorCode\fP c)"
|
|
56
|
+
.br
|
|
57
|
+
.RI "\fIConverts error code to a c-string\&. \fP"
|
|
58
|
+
.ti -1c
|
|
59
|
+
.RI "\fBBrotliDecoderErrorCode\fP \fBBrotliDecoderGetErrorCode\fP (const \fBBrotliDecoderState\fP *state)"
|
|
60
|
+
.br
|
|
61
|
+
.RI "\fIAcquires a detailed error code\&. \fP"
|
|
62
|
+
.ti -1c
|
|
63
|
+
.RI "\fBBROTLI_BOOL\fP \fBBrotliDecoderHasMoreOutput\fP (const \fBBrotliDecoderState\fP *state)"
|
|
64
|
+
.br
|
|
65
|
+
.RI "\fIChecks if decoder has more output\&. \fP"
|
|
66
|
+
.ti -1c
|
|
67
|
+
.RI "\fBBROTLI_BOOL\fP \fBBrotliDecoderIsFinished\fP (const \fBBrotliDecoderState\fP *state)"
|
|
68
|
+
.br
|
|
69
|
+
.RI "\fIChecks if decoder instance reached the final state\&. \fP"
|
|
70
|
+
.ti -1c
|
|
71
|
+
.RI "\fBBROTLI_BOOL\fP \fBBrotliDecoderIsUsed\fP (const \fBBrotliDecoderState\fP *state)"
|
|
72
|
+
.br
|
|
73
|
+
.RI "\fIChecks if instance has already consumed input\&. \fP"
|
|
74
|
+
.ti -1c
|
|
75
|
+
.RI "\fBBROTLI_BOOL\fP \fBBrotliDecoderSetParameter\fP (\fBBrotliDecoderState\fP *state, \fBBrotliDecoderParameter\fP param, uint32_t value)"
|
|
76
|
+
.br
|
|
77
|
+
.RI "\fISets the specified parameter to the given decoder instance\&. \fP"
|
|
78
|
+
.ti -1c
|
|
79
|
+
.RI "const uint8_t * \fBBrotliDecoderTakeOutput\fP (\fBBrotliDecoderState\fP *state, size_t *size)"
|
|
80
|
+
.br
|
|
81
|
+
.RI "\fIAcquires pointer to internal output buffer\&. \fP"
|
|
82
|
+
.ti -1c
|
|
83
|
+
.RI "uint32_t \fBBrotliDecoderVersion\fP (void)"
|
|
84
|
+
.br
|
|
85
|
+
.RI "\fIGets a decoder library version\&. \fP"
|
|
86
|
+
.in -1c
|
|
87
|
+
.SH "Detailed Description"
|
|
88
|
+
.PP
|
|
89
|
+
API for Brotli decompression\&.
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
.SH "Macro Definition Documentation"
|
|
93
|
+
.PP
|
|
94
|
+
.SS "#define BROTLI_DECODER_ERROR_CODES_LIST(BROTLI_ERROR_CODE, SEPARATOR)"
|
|
95
|
+
|
|
96
|
+
.PP
|
|
97
|
+
Template that evaluates items of \fBBrotliDecoderErrorCode\fP\&. Example:
|
|
98
|
+
.PP
|
|
99
|
+
.nf
|
|
100
|
+
// Log Brotli error code\&.
|
|
101
|
+
switch (brotliDecoderErrorCode) {
|
|
102
|
+
#define CASE_(PREFIX, NAME, CODE) \
|
|
103
|
+
case BROTLI_DECODER ## PREFIX ## NAME: \
|
|
104
|
+
LOG(INFO) << "error code:" << #NAME; \
|
|
105
|
+
break;
|
|
106
|
+
#define NEWLINE_
|
|
107
|
+
BROTLI_DECODER_ERROR_CODES_LIST(CASE_, NEWLINE_)
|
|
108
|
+
#undef CASE_
|
|
109
|
+
#undef NEWLINE_
|
|
110
|
+
default: LOG(FATAL) << "unknown brotli error code";
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.fi
|
|
114
|
+
.PP
|
|
115
|
+
|
|
116
|
+
.SS "#define BROTLI_LAST_ERROR_CODE BROTLI_DECODER_ERROR_UNREACHABLE"
|
|
117
|
+
|
|
118
|
+
.PP
|
|
119
|
+
The value of the last error code, negative integer\&. All other error code values are in the range from \fBBROTLI_LAST_ERROR_CODE\fP to \fC-1\fP\&. There are also 4 other possible non-error codes \fC0\fP \&.\&. \fC3\fP in \fBBrotliDecoderErrorCode\fP enumeration\&.
|
|
120
|
+
.SH "Typedef Documentation"
|
|
121
|
+
.PP
|
|
122
|
+
.SS "typedef enum \fBBrotliDecoderParameter\fP \fBBrotliDecoderParameter\fP"
|
|
123
|
+
|
|
124
|
+
.PP
|
|
125
|
+
Options to be used with \fBBrotliDecoderSetParameter\fP\&.
|
|
126
|
+
.SS "typedef struct BrotliDecoderStateStruct \fBBrotliDecoderState\fP"
|
|
127
|
+
|
|
128
|
+
.PP
|
|
129
|
+
Opaque structure that holds decoder state\&. Allocated and initialized with \fBBrotliDecoderCreateInstance\fP\&. Cleaned up and deallocated with \fBBrotliDecoderDestroyInstance\fP\&.
|
|
130
|
+
.SH "Enumeration Type Documentation"
|
|
131
|
+
.PP
|
|
132
|
+
.SS "enum \fBBrotliDecoderErrorCode\fP"
|
|
133
|
+
|
|
134
|
+
.PP
|
|
135
|
+
Error code for detailed logging / production debugging\&. See \fBBrotliDecoderGetErrorCode\fP and \fBBROTLI_LAST_ERROR_CODE\fP\&.
|
|
136
|
+
.SS "enum \fBBrotliDecoderParameter\fP"
|
|
137
|
+
|
|
138
|
+
.PP
|
|
139
|
+
Options to be used with \fBBrotliDecoderSetParameter\fP\&.
|
|
140
|
+
.PP
|
|
141
|
+
\fBEnumerator\fP
|
|
142
|
+
.in +1c
|
|
143
|
+
.TP
|
|
144
|
+
\fB\fIBROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION \fP\fP
|
|
145
|
+
Disable 'canny' ring buffer allocation strategy\&. Ring buffer is allocated according to window size, despite the real size of the content\&.
|
|
146
|
+
.TP
|
|
147
|
+
\fB\fIBROTLI_DECODER_PARAM_LARGE_WINDOW \fP\fP
|
|
148
|
+
Flag that determines if 'Large Window Brotli' is used\&.
|
|
149
|
+
.SS "enum \fBBrotliDecoderResult\fP"
|
|
150
|
+
|
|
151
|
+
.PP
|
|
152
|
+
Result type for \fBBrotliDecoderDecompress\fP and \fBBrotliDecoderDecompressStream\fP functions\&.
|
|
153
|
+
.PP
|
|
154
|
+
\fBEnumerator\fP
|
|
155
|
+
.in +1c
|
|
156
|
+
.TP
|
|
157
|
+
\fB\fIBROTLI_DECODER_RESULT_ERROR \fP\fP
|
|
158
|
+
Decoding error, e\&.g\&. corrupted input or memory allocation problem\&.
|
|
159
|
+
.TP
|
|
160
|
+
\fB\fIBROTLI_DECODER_RESULT_SUCCESS \fP\fP
|
|
161
|
+
Decoding successfully completed\&.
|
|
162
|
+
.TP
|
|
163
|
+
\fB\fIBROTLI_DECODER_RESULT_NEEDS_MORE_INPUT \fP\fP
|
|
164
|
+
Partially done; should be called again with more input\&.
|
|
165
|
+
.TP
|
|
166
|
+
\fB\fIBROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT \fP\fP
|
|
167
|
+
Partially done; should be called again with more output\&.
|
|
168
|
+
.SH "Function Documentation"
|
|
169
|
+
.PP
|
|
170
|
+
.SS "\fBBrotliDecoderState\fP* BrotliDecoderCreateInstance (\fBbrotli_alloc_func\fP alloc_func, \fBbrotli_free_func\fP free_func, void * opaque)"
|
|
171
|
+
|
|
172
|
+
.PP
|
|
173
|
+
Creates an instance of \fBBrotliDecoderState\fP and initializes it\&. The instance can be used once for decoding and should then be destroyed with \fBBrotliDecoderDestroyInstance\fP, it cannot be reused for a new decoding session\&.
|
|
174
|
+
.PP
|
|
175
|
+
\fCalloc_func\fP and \fCfree_func\fP \fBMUST\fP be both zero or both non-zero\&. In the case they are both zero, default memory allocators are used\&. \fCopaque\fP is passed to \fCalloc_func\fP and \fCfree_func\fP when they are called\&. \fCfree_func\fP has to return without doing anything when asked to free a NULL pointer\&.
|
|
176
|
+
.PP
|
|
177
|
+
\fBParameters:\fP
|
|
178
|
+
.RS 4
|
|
179
|
+
\fIalloc_func\fP custom memory allocation function
|
|
180
|
+
.br
|
|
181
|
+
\fIfree_func\fP custom memory free function
|
|
182
|
+
.br
|
|
183
|
+
\fIopaque\fP custom memory manager handle
|
|
184
|
+
.RE
|
|
185
|
+
.PP
|
|
186
|
+
\fBReturns:\fP
|
|
187
|
+
.RS 4
|
|
188
|
+
\fC0\fP if instance can not be allocated or initialized
|
|
189
|
+
.PP
|
|
190
|
+
pointer to initialized \fBBrotliDecoderState\fP otherwise
|
|
191
|
+
.RE
|
|
192
|
+
.PP
|
|
193
|
+
|
|
194
|
+
.SS "\fBBrotliDecoderResult\fP BrotliDecoderDecompress (size_t encoded_size, const uint8_t encoded_buffer[encoded_size], size_t * decoded_size, uint8_t decoded_buffer[*decoded_size])"
|
|
195
|
+
|
|
196
|
+
.PP
|
|
197
|
+
Performs one-shot memory-to-memory decompression\&. Decompresses the data in \fCencoded_buffer\fP into \fCdecoded_buffer\fP, and sets \fC*decoded_size\fP to the decompressed length\&.
|
|
198
|
+
.PP
|
|
199
|
+
\fBParameters:\fP
|
|
200
|
+
.RS 4
|
|
201
|
+
\fIencoded_size\fP size of \fCencoded_buffer\fP
|
|
202
|
+
.br
|
|
203
|
+
\fIencoded_buffer\fP compressed data buffer with at least \fCencoded_size\fP addressable bytes
|
|
204
|
+
.br
|
|
205
|
+
\fIdecoded_size\fP \fBin:\fP size of \fCdecoded_buffer\fP;
|
|
206
|
+
.br
|
|
207
|
+
\fBout:\fP length of decompressed data written to \fCdecoded_buffer\fP
|
|
208
|
+
.br
|
|
209
|
+
\fIdecoded_buffer\fP decompressed data destination buffer
|
|
210
|
+
.RE
|
|
211
|
+
.PP
|
|
212
|
+
\fBReturns:\fP
|
|
213
|
+
.RS 4
|
|
214
|
+
\fBBROTLI_DECODER_RESULT_ERROR\fP if input is corrupted, memory allocation failed, or \fCdecoded_buffer\fP is not large enough;
|
|
215
|
+
.PP
|
|
216
|
+
\fBBROTLI_DECODER_RESULT_SUCCESS\fP otherwise
|
|
217
|
+
.RE
|
|
218
|
+
.PP
|
|
219
|
+
|
|
220
|
+
.SS "\fBBrotliDecoderResult\fP BrotliDecoderDecompressStream (\fBBrotliDecoderState\fP * state, size_t * available_in, const uint8_t ** next_in, size_t * available_out, uint8_t ** next_out, size_t * total_out)"
|
|
221
|
+
|
|
222
|
+
.PP
|
|
223
|
+
Decompresses the input stream to the output stream\&. The values \fC*available_in\fP and \fC*available_out\fP must specify the number of bytes addressable at \fC*next_in\fP and \fC*next_out\fP respectively\&. When \fC*available_out\fP is \fC0\fP, \fCnext_out\fP is allowed to be \fCNULL\fP\&.
|
|
224
|
+
.PP
|
|
225
|
+
After each call, \fC*available_in\fP will be decremented by the amount of input bytes consumed, and the \fC*next_in\fP pointer will be incremented by that amount\&. Similarly, \fC*available_out\fP will be decremented by the amount of output bytes written, and the \fC*next_out\fP pointer will be incremented by that amount\&.
|
|
226
|
+
.PP
|
|
227
|
+
\fCtotal_out\fP, if it is not a null-pointer, will be set to the number of bytes decompressed since the last \fCstate\fP initialization\&.
|
|
228
|
+
.PP
|
|
229
|
+
\fBNote:\fP
|
|
230
|
+
.RS 4
|
|
231
|
+
Input is never overconsumed, so \fCnext_in\fP and \fCavailable_in\fP could be passed to the next consumer after decoding is complete\&.
|
|
232
|
+
.RE
|
|
233
|
+
.PP
|
|
234
|
+
\fBParameters:\fP
|
|
235
|
+
.RS 4
|
|
236
|
+
\fIstate\fP decoder instance
|
|
237
|
+
.br
|
|
238
|
+
\fIavailable_in\fP \fBin:\fP amount of available input;
|
|
239
|
+
.br
|
|
240
|
+
\fBout:\fP amount of unused input
|
|
241
|
+
.br
|
|
242
|
+
\fInext_in\fP pointer to the next compressed byte
|
|
243
|
+
.br
|
|
244
|
+
\fIavailable_out\fP \fBin:\fP length of output buffer;
|
|
245
|
+
.br
|
|
246
|
+
\fBout:\fP remaining size of output buffer
|
|
247
|
+
.br
|
|
248
|
+
\fInext_out\fP output buffer cursor; can be \fCNULL\fP if \fCavailable_out\fP is \fC0\fP
|
|
249
|
+
.br
|
|
250
|
+
\fItotal_out\fP number of bytes decompressed so far; can be \fCNULL\fP
|
|
251
|
+
.RE
|
|
252
|
+
.PP
|
|
253
|
+
\fBReturns:\fP
|
|
254
|
+
.RS 4
|
|
255
|
+
\fBBROTLI_DECODER_RESULT_ERROR\fP if input is corrupted, memory allocation failed, arguments were invalid, etc\&.; use \fBBrotliDecoderGetErrorCode\fP to get detailed error code
|
|
256
|
+
.PP
|
|
257
|
+
\fBBROTLI_DECODER_RESULT_NEEDS_MORE_INPUT\fP decoding is blocked until more input data is provided
|
|
258
|
+
.PP
|
|
259
|
+
\fBBROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT\fP decoding is blocked until more output space is provided
|
|
260
|
+
.PP
|
|
261
|
+
\fBBROTLI_DECODER_RESULT_SUCCESS\fP decoding is finished, no more input might be consumed and no more output will be produced
|
|
262
|
+
.RE
|
|
263
|
+
.PP
|
|
264
|
+
|
|
265
|
+
.SS "void BrotliDecoderDestroyInstance (\fBBrotliDecoderState\fP * state)"
|
|
266
|
+
|
|
267
|
+
.PP
|
|
268
|
+
Deinitializes and frees \fBBrotliDecoderState\fP instance\&.
|
|
269
|
+
.PP
|
|
270
|
+
\fBParameters:\fP
|
|
271
|
+
.RS 4
|
|
272
|
+
\fIstate\fP decoder instance to be cleaned up and deallocated
|
|
273
|
+
.RE
|
|
274
|
+
.PP
|
|
275
|
+
|
|
276
|
+
.SS "\fBBrotliDecoderErrorCode\fP BrotliDecoderGetErrorCode (const \fBBrotliDecoderState\fP * state)"
|
|
277
|
+
|
|
278
|
+
.PP
|
|
279
|
+
Acquires a detailed error code\&. Should be used only after \fBBrotliDecoderDecompressStream\fP returns \fBBROTLI_DECODER_RESULT_ERROR\fP\&.
|
|
280
|
+
.PP
|
|
281
|
+
See also \fBBrotliDecoderErrorString\fP
|
|
282
|
+
.PP
|
|
283
|
+
\fBParameters:\fP
|
|
284
|
+
.RS 4
|
|
285
|
+
\fIstate\fP decoder instance
|
|
286
|
+
.RE
|
|
287
|
+
.PP
|
|
288
|
+
\fBReturns:\fP
|
|
289
|
+
.RS 4
|
|
290
|
+
last saved error code
|
|
291
|
+
.RE
|
|
292
|
+
.PP
|
|
293
|
+
|
|
294
|
+
.SS "\fBBROTLI_BOOL\fP BrotliDecoderHasMoreOutput (const \fBBrotliDecoderState\fP * state)"
|
|
295
|
+
|
|
296
|
+
.PP
|
|
297
|
+
Checks if decoder has more output\&.
|
|
298
|
+
.PP
|
|
299
|
+
\fBParameters:\fP
|
|
300
|
+
.RS 4
|
|
301
|
+
\fIstate\fP decoder instance
|
|
302
|
+
.RE
|
|
303
|
+
.PP
|
|
304
|
+
\fBReturns:\fP
|
|
305
|
+
.RS 4
|
|
306
|
+
\fBBROTLI_TRUE\fP, if decoder has some unconsumed output
|
|
307
|
+
.PP
|
|
308
|
+
\fBBROTLI_FALSE\fP otherwise
|
|
309
|
+
.RE
|
|
310
|
+
.PP
|
|
311
|
+
|
|
312
|
+
.SS "\fBBROTLI_BOOL\fP BrotliDecoderIsFinished (const \fBBrotliDecoderState\fP * state)"
|
|
313
|
+
|
|
314
|
+
.PP
|
|
315
|
+
Checks if decoder instance reached the final state\&.
|
|
316
|
+
.PP
|
|
317
|
+
\fBParameters:\fP
|
|
318
|
+
.RS 4
|
|
319
|
+
\fIstate\fP decoder instance
|
|
320
|
+
.RE
|
|
321
|
+
.PP
|
|
322
|
+
\fBReturns:\fP
|
|
323
|
+
.RS 4
|
|
324
|
+
\fBBROTLI_TRUE\fP if decoder is in a state where it reached the end of the input and produced all of the output
|
|
325
|
+
.PP
|
|
326
|
+
\fBBROTLI_FALSE\fP otherwise
|
|
327
|
+
.RE
|
|
328
|
+
.PP
|
|
329
|
+
|
|
330
|
+
.SS "\fBBROTLI_BOOL\fP BrotliDecoderIsUsed (const \fBBrotliDecoderState\fP * state)"
|
|
331
|
+
|
|
332
|
+
.PP
|
|
333
|
+
Checks if instance has already consumed input\&. Instance that returns \fBBROTLI_FALSE\fP is considered 'fresh' and could be reused\&.
|
|
334
|
+
.PP
|
|
335
|
+
\fBParameters:\fP
|
|
336
|
+
.RS 4
|
|
337
|
+
\fIstate\fP decoder instance
|
|
338
|
+
.RE
|
|
339
|
+
.PP
|
|
340
|
+
\fBReturns:\fP
|
|
341
|
+
.RS 4
|
|
342
|
+
\fBBROTLI_TRUE\fP if decoder has already used some input bytes
|
|
343
|
+
.PP
|
|
344
|
+
\fBBROTLI_FALSE\fP otherwise
|
|
345
|
+
.RE
|
|
346
|
+
.PP
|
|
347
|
+
|
|
348
|
+
.SS "\fBBROTLI_BOOL\fP BrotliDecoderSetParameter (\fBBrotliDecoderState\fP * state, \fBBrotliDecoderParameter\fP param, uint32_t value)"
|
|
349
|
+
|
|
350
|
+
.PP
|
|
351
|
+
Sets the specified parameter to the given decoder instance\&.
|
|
352
|
+
.PP
|
|
353
|
+
\fBParameters:\fP
|
|
354
|
+
.RS 4
|
|
355
|
+
\fIstate\fP decoder instance
|
|
356
|
+
.br
|
|
357
|
+
\fIparam\fP parameter to set
|
|
358
|
+
.br
|
|
359
|
+
\fIvalue\fP new parameter value
|
|
360
|
+
.RE
|
|
361
|
+
.PP
|
|
362
|
+
\fBReturns:\fP
|
|
363
|
+
.RS 4
|
|
364
|
+
\fBBROTLI_FALSE\fP if parameter is unrecognized, or value is invalid
|
|
365
|
+
.PP
|
|
366
|
+
\fBBROTLI_TRUE\fP if value is accepted
|
|
367
|
+
.RE
|
|
368
|
+
.PP
|
|
369
|
+
|
|
370
|
+
.SS "const uint8_t* BrotliDecoderTakeOutput (\fBBrotliDecoderState\fP * state, size_t * size)"
|
|
371
|
+
|
|
372
|
+
.PP
|
|
373
|
+
Acquires pointer to internal output buffer\&. This method is used to make language bindings easier and more efficient:
|
|
374
|
+
.IP "1." 4
|
|
375
|
+
push data to \fBBrotliDecoderDecompressStream\fP, until \fBBROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT\fP is reported
|
|
376
|
+
.IP "2." 4
|
|
377
|
+
use \fBBrotliDecoderTakeOutput\fP to peek bytes and copy to language-specific entity
|
|
378
|
+
.PP
|
|
379
|
+
.PP
|
|
380
|
+
Also this could be useful if there is an output stream that is able to consume all the provided data (e\&.g\&. when data is saved to file system)\&.
|
|
381
|
+
.PP
|
|
382
|
+
\fBAttention:\fP
|
|
383
|
+
.RS 4
|
|
384
|
+
After every call to \fBBrotliDecoderTakeOutput\fP \fC*size\fP bytes of output are considered consumed for all consecutive calls to the instance methods; returned pointer becomes invalidated as well\&.
|
|
385
|
+
.RE
|
|
386
|
+
.PP
|
|
387
|
+
\fBNote:\fP
|
|
388
|
+
.RS 4
|
|
389
|
+
Decoder output is not guaranteed to be contiguous\&. This means that after the size-unrestricted call to \fBBrotliDecoderTakeOutput\fP, immediate next call to \fBBrotliDecoderTakeOutput\fP may return more data\&.
|
|
390
|
+
.RE
|
|
391
|
+
.PP
|
|
392
|
+
\fBParameters:\fP
|
|
393
|
+
.RS 4
|
|
394
|
+
\fIstate\fP decoder instance
|
|
395
|
+
.br
|
|
396
|
+
\fIsize\fP \fBin:\fP number of bytes caller is ready to take, \fC0\fP if any amount could be handled;
|
|
397
|
+
.br
|
|
398
|
+
\fBout:\fP amount of data pointed by returned pointer and considered consumed;
|
|
399
|
+
.br
|
|
400
|
+
out value is never greater than in value, unless it is \fC0\fP
|
|
401
|
+
.RE
|
|
402
|
+
.PP
|
|
403
|
+
\fBReturns:\fP
|
|
404
|
+
.RS 4
|
|
405
|
+
pointer to output data
|
|
406
|
+
.RE
|
|
407
|
+
.PP
|
|
408
|
+
|
|
409
|
+
.SS "uint32_t BrotliDecoderVersion (void)"
|
|
410
|
+
|
|
411
|
+
.PP
|
|
412
|
+
Gets a decoder library version\&. Look at BROTLI_VERSION for more information\&.
|
|
413
|
+
.SH "Author"
|
|
414
|
+
.PP
|
|
415
|
+
Generated automatically by Doxygen for Brotli from the source code\&.
|