koffi 2.3.6 → 2.3.8

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 (280) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/package.json +2 -2
  3. package/src/cnoke/cnoke.js +3 -7
  4. package/src/cnoke/src/builder.js +7 -4
  5. package/src/cnoke/src/index.js +2 -2
  6. package/src/koffi/build/2.3.8/koffi_darwin_arm64/koffi.node +0 -0
  7. package/src/koffi/build/2.3.8/koffi_darwin_x64/koffi.node +0 -0
  8. package/src/koffi/build/2.3.8/koffi_freebsd_arm64/koffi.node +0 -0
  9. package/src/koffi/build/2.3.8/koffi_freebsd_ia32/koffi.node +0 -0
  10. package/src/koffi/build/2.3.8/koffi_freebsd_x64/koffi.node +0 -0
  11. package/src/koffi/build/2.3.8/koffi_linux_arm32hf/koffi.node +0 -0
  12. package/src/koffi/build/2.3.8/koffi_linux_arm64/koffi.node +0 -0
  13. package/src/koffi/build/2.3.8/koffi_linux_ia32/koffi.node +0 -0
  14. package/src/koffi/build/2.3.8/koffi_linux_riscv64hf64/koffi.node +0 -0
  15. package/src/koffi/build/2.3.8/koffi_linux_x64/koffi.node +0 -0
  16. package/src/koffi/build/2.3.8/koffi_openbsd_ia32/koffi.node +0 -0
  17. package/src/koffi/build/2.3.8/koffi_openbsd_x64/koffi.node +0 -0
  18. package/src/koffi/build/2.3.8/koffi_win32_arm64/koffi.node +0 -0
  19. package/src/koffi/build/2.3.8/koffi_win32_ia32/koffi.node +0 -0
  20. package/src/koffi/build/2.3.8/koffi_win32_x64/koffi.node +0 -0
  21. package/src/koffi/src/abi_arm64.cc +8 -2
  22. package/src/koffi/src/abi_x64_win.cc +8 -2
  23. package/src/koffi/src/abi_x86.cc +8 -2
  24. package/src/koffi/src/ffi.cc +3 -22
  25. package/src/koffi/src/index.d.ts +1 -1
  26. package/src/koffi/src/index.js +1 -0
  27. package/src/koffi/src/win32.hh +10 -4
  28. package/src/koffi/build/2.3.6/koffi_darwin_arm64/koffi.node +0 -0
  29. package/src/koffi/build/2.3.6/koffi_darwin_x64/koffi.node +0 -0
  30. package/src/koffi/build/2.3.6/koffi_freebsd_arm64/koffi.node +0 -0
  31. package/src/koffi/build/2.3.6/koffi_freebsd_ia32/koffi.node +0 -0
  32. package/src/koffi/build/2.3.6/koffi_freebsd_x64/koffi.node +0 -0
  33. package/src/koffi/build/2.3.6/koffi_linux_arm32hf/koffi.node +0 -0
  34. package/src/koffi/build/2.3.6/koffi_linux_arm64/koffi.node +0 -0
  35. package/src/koffi/build/2.3.6/koffi_linux_ia32/koffi.node +0 -0
  36. package/src/koffi/build/2.3.6/koffi_linux_riscv64hf64/koffi.node +0 -0
  37. package/src/koffi/build/2.3.6/koffi_linux_x64/koffi.node +0 -0
  38. package/src/koffi/build/2.3.6/koffi_openbsd_ia32/koffi.node +0 -0
  39. package/src/koffi/build/2.3.6/koffi_openbsd_x64/koffi.node +0 -0
  40. package/src/koffi/build/2.3.6/koffi_win32_arm64/koffi.node +0 -0
  41. package/src/koffi/build/2.3.6/koffi_win32_arm64/koffi.pdb +0 -0
  42. package/src/koffi/build/2.3.6/koffi_win32_ia32/koffi.node +0 -0
  43. package/src/koffi/build/2.3.6/koffi_win32_ia32/koffi.pdb +0 -0
  44. package/src/koffi/build/2.3.6/koffi_win32_x64/koffi.node +0 -0
  45. package/src/koffi/build/2.3.6/koffi_win32_x64/koffi.pdb +0 -0
  46. package/vendor/brotli/BUILD +0 -144
  47. package/vendor/brotli/CMakeLists.txt +0 -421
  48. package/vendor/brotli/CONTRIBUTING.md +0 -27
  49. package/vendor/brotli/LICENSE +0 -19
  50. package/vendor/brotli/MANIFEST.in +0 -17
  51. package/vendor/brotli/Makefile +0 -55
  52. package/vendor/brotli/Makefile.am +0 -38
  53. package/vendor/brotli/README +0 -15
  54. package/vendor/brotli/README.md +0 -104
  55. package/vendor/brotli/WORKSPACE +0 -21
  56. package/vendor/brotli/bootstrap +0 -35
  57. package/vendor/brotli/c/common/constants.c +0 -15
  58. package/vendor/brotli/c/common/constants.h +0 -200
  59. package/vendor/brotli/c/common/context.c +0 -156
  60. package/vendor/brotli/c/common/context.h +0 -113
  61. package/vendor/brotli/c/common/dictionary.c +0 -5914
  62. package/vendor/brotli/c/common/dictionary.h +0 -64
  63. package/vendor/brotli/c/common/platform.c +0 -22
  64. package/vendor/brotli/c/common/platform.h +0 -596
  65. package/vendor/brotli/c/common/transform.c +0 -291
  66. package/vendor/brotli/c/common/transform.h +0 -85
  67. package/vendor/brotli/c/common/version.h +0 -26
  68. package/vendor/brotli/c/dec/bit_reader.c +0 -76
  69. package/vendor/brotli/c/dec/bit_reader.h +0 -351
  70. package/vendor/brotli/c/dec/decode.c +0 -2608
  71. package/vendor/brotli/c/dec/huffman.c +0 -339
  72. package/vendor/brotli/c/dec/huffman.h +0 -121
  73. package/vendor/brotli/c/dec/prefix.h +0 -732
  74. package/vendor/brotli/c/dec/state.c +0 -159
  75. package/vendor/brotli/c/dec/state.h +0 -365
  76. package/vendor/brotli/c/enc/backward_references.c +0 -145
  77. package/vendor/brotli/c/enc/backward_references.h +0 -39
  78. package/vendor/brotli/c/enc/backward_references_hq.c +0 -843
  79. package/vendor/brotli/c/enc/backward_references_hq.h +0 -95
  80. package/vendor/brotli/c/enc/backward_references_inc.h +0 -163
  81. package/vendor/brotli/c/enc/bit_cost.c +0 -35
  82. package/vendor/brotli/c/enc/bit_cost.h +0 -63
  83. package/vendor/brotli/c/enc/bit_cost_inc.h +0 -127
  84. package/vendor/brotli/c/enc/block_encoder_inc.h +0 -34
  85. package/vendor/brotli/c/enc/block_splitter.c +0 -194
  86. package/vendor/brotli/c/enc/block_splitter.h +0 -51
  87. package/vendor/brotli/c/enc/block_splitter_inc.h +0 -440
  88. package/vendor/brotli/c/enc/brotli_bit_stream.c +0 -1314
  89. package/vendor/brotli/c/enc/brotli_bit_stream.h +0 -84
  90. package/vendor/brotli/c/enc/cluster.c +0 -56
  91. package/vendor/brotli/c/enc/cluster.h +0 -48
  92. package/vendor/brotli/c/enc/cluster_inc.h +0 -320
  93. package/vendor/brotli/c/enc/command.c +0 -28
  94. package/vendor/brotli/c/enc/command.h +0 -190
  95. package/vendor/brotli/c/enc/compress_fragment.c +0 -790
  96. package/vendor/brotli/c/enc/compress_fragment.h +0 -61
  97. package/vendor/brotli/c/enc/compress_fragment_two_pass.c +0 -645
  98. package/vendor/brotli/c/enc/compress_fragment_two_pass.h +0 -54
  99. package/vendor/brotli/c/enc/dictionary_hash.c +0 -1846
  100. package/vendor/brotli/c/enc/dictionary_hash.h +0 -25
  101. package/vendor/brotli/c/enc/encode.c +0 -1927
  102. package/vendor/brotli/c/enc/encoder_dict.c +0 -33
  103. package/vendor/brotli/c/enc/encoder_dict.h +0 -43
  104. package/vendor/brotli/c/enc/entropy_encode.c +0 -503
  105. package/vendor/brotli/c/enc/entropy_encode.h +0 -122
  106. package/vendor/brotli/c/enc/entropy_encode_static.h +0 -539
  107. package/vendor/brotli/c/enc/fast_log.c +0 -105
  108. package/vendor/brotli/c/enc/fast_log.h +0 -66
  109. package/vendor/brotli/c/enc/find_match_length.h +0 -79
  110. package/vendor/brotli/c/enc/hash.h +0 -488
  111. package/vendor/brotli/c/enc/hash_composite_inc.h +0 -125
  112. package/vendor/brotli/c/enc/hash_forgetful_chain_inc.h +0 -293
  113. package/vendor/brotli/c/enc/hash_longest_match64_inc.h +0 -267
  114. package/vendor/brotli/c/enc/hash_longest_match_inc.h +0 -262
  115. package/vendor/brotli/c/enc/hash_longest_match_quickly_inc.h +0 -266
  116. package/vendor/brotli/c/enc/hash_rolling_inc.h +0 -212
  117. package/vendor/brotli/c/enc/hash_to_binary_tree_inc.h +0 -329
  118. package/vendor/brotli/c/enc/histogram.c +0 -100
  119. package/vendor/brotli/c/enc/histogram.h +0 -63
  120. package/vendor/brotli/c/enc/histogram_inc.h +0 -51
  121. package/vendor/brotli/c/enc/literal_cost.c +0 -175
  122. package/vendor/brotli/c/enc/literal_cost.h +0 -30
  123. package/vendor/brotli/c/enc/memory.c +0 -170
  124. package/vendor/brotli/c/enc/memory.h +0 -114
  125. package/vendor/brotli/c/enc/metablock.c +0 -663
  126. package/vendor/brotli/c/enc/metablock.h +0 -105
  127. package/vendor/brotli/c/enc/metablock_inc.h +0 -183
  128. package/vendor/brotli/c/enc/params.h +0 -46
  129. package/vendor/brotli/c/enc/prefix.h +0 -53
  130. package/vendor/brotli/c/enc/quality.h +0 -165
  131. package/vendor/brotli/c/enc/ringbuffer.h +0 -167
  132. package/vendor/brotli/c/enc/static_dict.c +0 -486
  133. package/vendor/brotli/c/enc/static_dict.h +0 -40
  134. package/vendor/brotli/c/enc/static_dict_lut.h +0 -5864
  135. package/vendor/brotli/c/enc/utf8_util.c +0 -85
  136. package/vendor/brotli/c/enc/utf8_util.h +0 -32
  137. package/vendor/brotli/c/enc/write_bits.h +0 -87
  138. package/vendor/brotli/c/include/brotli/decode.h +0 -344
  139. package/vendor/brotli/c/include/brotli/encode.h +0 -448
  140. package/vendor/brotli/c/include/brotli/port.h +0 -288
  141. package/vendor/brotli/c/include/brotli/types.h +0 -83
  142. package/vendor/brotli/c/tools/brotli.c +0 -1116
  143. package/vendor/brotli/c/tools/brotli.md +0 -107
  144. package/vendor/brotli/compiler_config_setting.bzl +0 -28
  145. package/vendor/brotli/configure +0 -8
  146. package/vendor/brotli/configure-cmake +0 -318
  147. package/vendor/brotli/configure.ac +0 -14
  148. package/vendor/brotli/docs/brotli.1 +0 -132
  149. package/vendor/brotli/docs/constants.h.3 +0 -47
  150. package/vendor/brotli/docs/decode.h.3 +0 -415
  151. package/vendor/brotli/docs/encode.h.3 +0 -586
  152. package/vendor/brotli/docs/types.h.3 +0 -117
  153. package/vendor/brotli/premake5.lua +0 -78
  154. package/vendor/brotli/python/Makefile +0 -57
  155. package/vendor/brotli/python/README.md +0 -54
  156. package/vendor/brotli/python/_brotli.cc +0 -753
  157. package/vendor/brotli/python/bro.py +0 -160
  158. package/vendor/brotli/python/brotli.py +0 -56
  159. package/vendor/brotli/python/tests/__init__.py +0 -0
  160. package/vendor/brotli/python/tests/_test_utils.py +0 -112
  161. package/vendor/brotli/python/tests/bro_test.py +0 -102
  162. package/vendor/brotli/python/tests/compress_test.py +0 -41
  163. package/vendor/brotli/python/tests/compressor_test.py +0 -94
  164. package/vendor/brotli/python/tests/decompress_test.py +0 -42
  165. package/vendor/brotli/python/tests/decompressor_test.py +0 -59
  166. package/vendor/brotli/scripts/libbrotlicommon.pc.in +0 -11
  167. package/vendor/brotli/scripts/libbrotlidec.pc.in +0 -12
  168. package/vendor/brotli/scripts/libbrotlienc.pc.in +0 -12
  169. package/vendor/brotli/scripts/sources.lst +0 -104
  170. package/vendor/brotli/setup.cfg +0 -5
  171. package/vendor/brotli/setup.py +0 -293
  172. package/vendor/brotli/tests/Makefile +0 -17
  173. package/vendor/brotli/tests/compatibility_test.sh +0 -25
  174. package/vendor/brotli/tests/roundtrip_test.sh +0 -36
  175. package/vendor/brotli/tests/run-compatibility-test.cmake +0 -31
  176. package/vendor/brotli/tests/run-roundtrip-test.cmake +0 -36
  177. package/vendor/brotli/tests/testdata/empty +0 -0
  178. package/vendor/brotli/tests/testdata/empty.compressed +0 -1
  179. package/vendor/brotli/tests/testdata/ukkonooa +0 -1
  180. package/vendor/brotli/tests/testdata/ukkonooa.compressed +0 -0
  181. package/vendor/dragonbox/CMakeLists.txt +0 -123
  182. package/vendor/dragonbox/LICENSE-Apache2-LLVM +0 -218
  183. package/vendor/dragonbox/LICENSE-Boost +0 -23
  184. package/vendor/dragonbox/README.md +0 -277
  185. package/vendor/dragonbox/cmake/dragonboxConfig.cmake +0 -1
  186. package/vendor/dragonbox/include/dragonbox/dragonbox.h +0 -2674
  187. package/vendor/dragonbox/include/dragonbox/dragonbox_to_chars.h +0 -108
  188. package/vendor/dragonbox/other_files/Dragonbox.pdf +0 -0
  189. package/vendor/dragonbox/other_files/Dragonbox_old.pdf +0 -0
  190. package/vendor/dragonbox/other_files/milo_benchmark.png +0 -0
  191. package/vendor/dragonbox/other_files/unknown_win64_vc2019.html +0 -540
  192. package/vendor/dragonbox/other_files/unknown_win64_vc2019_randomdigit_time.png +0 -0
  193. package/vendor/dragonbox/source/dragonbox_to_chars.cpp +0 -303
  194. package/vendor/dragonbox/subproject/3rdparty/grisu_exact/CMakeLists.txt +0 -24
  195. package/vendor/dragonbox/subproject/3rdparty/grisu_exact/fp_to_chars.cpp +0 -238
  196. package/vendor/dragonbox/subproject/3rdparty/grisu_exact/fp_to_chars.h +0 -95
  197. package/vendor/dragonbox/subproject/3rdparty/grisu_exact/grisu_exact.h +0 -2666
  198. package/vendor/dragonbox/subproject/3rdparty/ryu/CMakeLists.txt +0 -16
  199. package/vendor/dragonbox/subproject/3rdparty/ryu/ryu/common.h +0 -114
  200. package/vendor/dragonbox/subproject/3rdparty/ryu/ryu/d2s.c +0 -509
  201. package/vendor/dragonbox/subproject/3rdparty/ryu/ryu/d2s_full_table.h +0 -367
  202. package/vendor/dragonbox/subproject/3rdparty/ryu/ryu/d2s_intrinsics.h +0 -357
  203. package/vendor/dragonbox/subproject/3rdparty/ryu/ryu/digit_table.h +0 -35
  204. package/vendor/dragonbox/subproject/3rdparty/ryu/ryu/f2s.c +0 -345
  205. package/vendor/dragonbox/subproject/3rdparty/ryu/ryu/f2s_full_table.h +0 -55
  206. package/vendor/dragonbox/subproject/3rdparty/ryu/ryu/f2s_intrinsics.h +0 -128
  207. package/vendor/dragonbox/subproject/3rdparty/ryu/ryu/ryu.h +0 -46
  208. package/vendor/dragonbox/subproject/3rdparty/schubfach/CMakeLists.txt +0 -22
  209. package/vendor/dragonbox/subproject/3rdparty/schubfach/schubfach_32.cc +0 -699
  210. package/vendor/dragonbox/subproject/3rdparty/schubfach/schubfach_32.h +0 -31
  211. package/vendor/dragonbox/subproject/3rdparty/schubfach/schubfach_64.cc +0 -1354
  212. package/vendor/dragonbox/subproject/3rdparty/schubfach/schubfach_64.h +0 -31
  213. package/vendor/dragonbox/subproject/3rdparty/shaded_plots/example_shaded_plots.m +0 -68
  214. package/vendor/dragonbox/subproject/3rdparty/shaded_plots/license.txt +0 -25
  215. package/vendor/dragonbox/subproject/3rdparty/shaded_plots/plot_distribution.m +0 -92
  216. package/vendor/dragonbox/subproject/3rdparty/shaded_plots/plot_distribution_prctile.m +0 -121
  217. package/vendor/dragonbox/subproject/3rdparty/shaded_plots/plot_histogram_shaded.m +0 -99
  218. package/vendor/dragonbox/subproject/3rdparty/shaded_plots/plot_shaded.m +0 -93
  219. package/vendor/dragonbox/subproject/benchmark/CMakeLists.txt +0 -65
  220. package/vendor/dragonbox/subproject/benchmark/include/benchmark.h +0 -40
  221. package/vendor/dragonbox/subproject/benchmark/matlab/plot_benchmarks.m +0 -22
  222. package/vendor/dragonbox/subproject/benchmark/matlab/plot_digit_benchmark.m +0 -78
  223. package/vendor/dragonbox/subproject/benchmark/matlab/plot_uniform_benchmark.m +0 -95
  224. package/vendor/dragonbox/subproject/benchmark/results/digits_benchmark_binary32_clang.png +0 -0
  225. package/vendor/dragonbox/subproject/benchmark/results/digits_benchmark_binary32_msvc.png +0 -0
  226. package/vendor/dragonbox/subproject/benchmark/results/digits_benchmark_binary64_clang.png +0 -0
  227. package/vendor/dragonbox/subproject/benchmark/results/digits_benchmark_binary64_msvc.png +0 -0
  228. package/vendor/dragonbox/subproject/benchmark/results/uniform_benchmark_binary32_clang.png +0 -0
  229. package/vendor/dragonbox/subproject/benchmark/results/uniform_benchmark_binary32_msvc.png +0 -0
  230. package/vendor/dragonbox/subproject/benchmark/results/uniform_benchmark_binary64_clang.png +0 -0
  231. package/vendor/dragonbox/subproject/benchmark/results/uniform_benchmark_binary64_msvc.png +0 -0
  232. package/vendor/dragonbox/subproject/benchmark/source/benchmark.cpp +0 -238
  233. package/vendor/dragonbox/subproject/benchmark/source/dragonbox.cpp +0 -30
  234. package/vendor/dragonbox/subproject/benchmark/source/grisu_exact.cpp +0 -36
  235. package/vendor/dragonbox/subproject/benchmark/source/ryu.cpp +0 -27
  236. package/vendor/dragonbox/subproject/benchmark/source/schubfach.cpp +0 -31
  237. package/vendor/dragonbox/subproject/common/CMakeLists.txt +0 -42
  238. package/vendor/dragonbox/subproject/common/include/best_rational_approx.h +0 -97
  239. package/vendor/dragonbox/subproject/common/include/big_uint.h +0 -218
  240. package/vendor/dragonbox/subproject/common/include/continued_fractions.h +0 -174
  241. package/vendor/dragonbox/subproject/common/include/good_rational_approx.h +0 -267
  242. package/vendor/dragonbox/subproject/common/include/random_float.h +0 -182
  243. package/vendor/dragonbox/subproject/common/include/rational_continued_fractions.h +0 -57
  244. package/vendor/dragonbox/subproject/common/source/big_uint.cpp +0 -602
  245. package/vendor/dragonbox/subproject/meta/CMakeLists.txt +0 -41
  246. package/vendor/dragonbox/subproject/meta/results/binary32_generated_cache.txt +0 -82
  247. package/vendor/dragonbox/subproject/meta/results/binary64_compressed_cache_error_table.txt +0 -10
  248. package/vendor/dragonbox/subproject/meta/results/binary64_generated_cache.txt +0 -623
  249. package/vendor/dragonbox/subproject/meta/source/generate_cache.cpp +0 -126
  250. package/vendor/dragonbox/subproject/meta/source/live_test.cpp +0 -81
  251. package/vendor/dragonbox/subproject/meta/source/perf_test.cpp +0 -104
  252. package/vendor/dragonbox/subproject/meta/source/sandbox.cpp +0 -20
  253. package/vendor/dragonbox/subproject/test/CMakeLists.txt +0 -70
  254. package/vendor/dragonbox/subproject/test/results/binary32.csv +0 -255
  255. package/vendor/dragonbox/subproject/test/results/binary64.csv +0 -2047
  256. package/vendor/dragonbox/subproject/test/results/plot_required_bits.m +0 -18
  257. package/vendor/dragonbox/subproject/test/source/test_all_shorter_interval_cases.cpp +0 -88
  258. package/vendor/dragonbox/subproject/test/source/uniform_random_test.cpp +0 -95
  259. package/vendor/dragonbox/subproject/test/source/verify_cache_precision.cpp +0 -338
  260. package/vendor/dragonbox/subproject/test/source/verify_compressed_cache.cpp +0 -154
  261. package/vendor/dragonbox/subproject/test/source/verify_fast_multiplication.cpp +0 -168
  262. package/vendor/dragonbox/subproject/test/source/verify_log_computation.cpp +0 -251
  263. package/vendor/dragonbox/subproject/test/source/verify_magic_division.cpp +0 -113
  264. package/vendor/miniz/ChangeLog.md +0 -239
  265. package/vendor/miniz/LICENSE +0 -22
  266. package/vendor/miniz/examples/example1.c +0 -105
  267. package/vendor/miniz/examples/example2.c +0 -164
  268. package/vendor/miniz/examples/example3.c +0 -269
  269. package/vendor/miniz/examples/example4.c +0 -102
  270. package/vendor/miniz/examples/example5.c +0 -327
  271. package/vendor/miniz/examples/example6.c +0 -166
  272. package/vendor/miniz/miniz.c +0 -7835
  273. package/vendor/miniz/miniz.h +0 -1422
  274. package/vendor/miniz/readme.md +0 -46
  275. /package/src/koffi/build/{2.3.6 → 2.3.8}/koffi_win32_arm64/koffi.exp +0 -0
  276. /package/src/koffi/build/{2.3.6 → 2.3.8}/koffi_win32_arm64/koffi.lib +0 -0
  277. /package/src/koffi/build/{2.3.6 → 2.3.8}/koffi_win32_ia32/koffi.exp +0 -0
  278. /package/src/koffi/build/{2.3.6 → 2.3.8}/koffi_win32_ia32/koffi.lib +0 -0
  279. /package/src/koffi/build/{2.3.6 → 2.3.8}/koffi_win32_x64/koffi.exp +0 -0
  280. /package/src/koffi/build/{2.3.6 → 2.3.8}/koffi_win32_x64/koffi.lib +0 -0
@@ -1,107 +0,0 @@
1
- brotli(1) -- brotli, unbrotli - compress or decompress files
2
- ================================================================
3
-
4
- SYNOPSIS
5
- --------
6
-
7
- `brotli` [*OPTION|FILE*]...
8
-
9
- `unbrotli` is equivalent to `brotli --decompress`
10
-
11
- DESCRIPTION
12
- -----------
13
- `brotli` is a generic-purpose lossless compression algorithm that compresses
14
- data using a combination of a modern variant of the **LZ77** algorithm, Huffman
15
- coding and 2-nd order context modeling, with a compression ratio comparable to
16
- the best currently available general-purpose compression methods. It is similar
17
- in speed with deflate but offers more dense compression.
18
-
19
- `brotli` command line syntax similar to `gzip (1)` and `zstd (1)`.
20
- Unlike `gzip (1)`, source files are preserved by default. It is possible to
21
- remove them after processing by using the `--rm` _option_.
22
-
23
- Arguments that look like "`--name`" or "`--name=value`" are _options_. Every
24
- _option_ has a short form "`-x`" or "`-x value`". Multiple short form _options_
25
- could be coalesced:
26
-
27
- * "`--decompress --stdout --suffix=.b`" works the same as
28
- * "`-d -s -S .b`" and
29
- * "`-dsS .b`"
30
-
31
- `brotli` has 3 operation modes:
32
-
33
- * default mode is compression;
34
- * `--decompress` option activates decompression mode;
35
- * `--test` option switches to integrity test mode; this option is equivalent to
36
- "`--decompress --stdout`" except that the decompressed data is discarded
37
- instead of being written to standard output.
38
-
39
- Every non-option argument is a _file_ entry. If no _files_ are given or _file_
40
- is "`-`", `brotli` reads from standard input. All arguments after "`--`" are
41
- _file_ entries.
42
-
43
- Unless `--stdout` or `--output` is specified, _files_ are written to a new file
44
- whose name is derived from the source _file_ name:
45
-
46
- * when compressing, a suffix is appended to the source filename to
47
- get the target filename
48
- * when decompressing, a suffix is removed from the source filename to
49
- get the target filename
50
-
51
- Default suffix is `.br`, but it could be specified with `--suffix` option.
52
-
53
- Conflicting or duplicate _options_ are not allowed.
54
-
55
- OPTIONS
56
- -------
57
-
58
- * `-#`:
59
- compression level (0-9); bigger values cause denser, but slower compression
60
- * `-c`, `--stdout`:
61
- write on standard output
62
- * `-d`, `--decompress`:
63
- decompress mode
64
- * `-f`, `--force`:
65
- force output file overwrite
66
- * `-h`, `--help`:
67
- display this help and exit
68
- * `-j`, `--rm`:
69
- remove source file(s); `gzip (1)`-like behaviour
70
- * `-k`, `--keep`:
71
- keep source file(s); `zstd (1)`-like behaviour
72
- * `-n`, `--no-copy-stat`:
73
- do not copy source file(s) attributes
74
- * `-o FILE`, `--output=FILE`
75
- output file; valid only if there is a single input entry
76
- * `-q NUM`, `--quality=NUM`:
77
- compression level (0-11); bigger values cause denser, but slower compression
78
- * `-t`, `--test`:
79
- test file integrity mode
80
- * `-v`, `--verbose`:
81
- increase output verbosity
82
- * `-w NUM`, `--lgwin=NUM`:
83
- set LZ77 window size (0, 10-24) (default: 22); window size is
84
- `(2**NUM - 16)`; 0 lets compressor decide over the optimal value; bigger
85
- windows size improve density; decoder might require up to window size
86
- memory to operate
87
- * `-S SUF`, `--suffix=SUF`:
88
- output file suffix (default: `.br`)
89
- * `-V`, `--version`:
90
- display version and exit
91
- * `-Z`, `--best`:
92
- use best compression level (default); same as "`-q 11`"
93
-
94
- SEE ALSO
95
- --------
96
-
97
- `brotli` file format is defined in
98
- [RFC 7932](https://www.ietf.org/rfc/rfc7932.txt).
99
-
100
- `brotli` is open-sourced under the
101
- [MIT License](https://opensource.org/licenses/MIT).
102
-
103
- Mailing list: https://groups.google.com/forum/#!forum/brotli
104
-
105
- BUGS
106
- ----
107
- Report bugs at: https://github.com/google/brotli/issues
@@ -1,28 +0,0 @@
1
- # Copyright 2018 Google Inc. All Rights Reserved.
2
- #
3
- # Distributed under MIT license.
4
- # See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
5
-
6
- """Creates config_setting that allows selecting based on 'compiler' value."""
7
-
8
- def create_msvc_config():
9
- # The "do_not_use_tools_cpp_compiler_present" attribute exists to
10
- # distinguish between older versions of Bazel that do not support
11
- # "@bazel_tools//tools/cpp:compiler" flag_value, and newer ones that do.
12
- # In the future, the only way to select on the compiler will be through
13
- # flag_values{"@bazel_tools//tools/cpp:compiler"} and the else branch can
14
- # be removed.
15
- if hasattr(cc_common, "do_not_use_tools_cpp_compiler_present"):
16
- native.config_setting(
17
- name = "msvc",
18
- flag_values = {
19
- "@bazel_tools//tools/cpp:compiler": "msvc-cl",
20
- },
21
- visibility = ["//visibility:public"],
22
- )
23
- else:
24
- native.config_setting(
25
- name = "msvc",
26
- values = {"compiler": "msvc-cl"},
27
- visibility = ["//visibility:public"],
28
- )
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- echo "Use Autotools, Bazel, CMake or Premake5 to generate projects / build files."
3
- echo " Bazel: http://www.bazel.build/"
4
- echo " CMake: https://cmake.org/"
5
- echo " Premake5: https://premake.github.io/"
6
- echo "To generate Autotools 'configure' file run './bootstrap'."
7
- echo "Run './configure-cmake' for Autotools-like CMake configuration."
8
- echo "Or simply run 'make' to build and test command line tool."
@@ -1,318 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- # Autotools-style (./configure) wrapper for CMake
4
- # <https://github.com/nemequ/configure-cmake>
5
- #
6
- # *** IMPORTANT ***
7
- #
8
- # You must include the GNUInstallDirs module (which comes with
9
- # CMake) in your project. Just put "include (GNUInstallDirs)" in
10
- # you CMakeLists.txt and you should be good.
11
- #
12
- # This script was originally written for Squash
13
- # <https://quixdb.github.io/squash/> by Evan Nemerson
14
- # <evan@nemerson.com>, but has been spun off into a separate
15
- # repository. Please feel free to copy it into your own repository,
16
- # though I would appreciate it if you would post improvements, bugs,
17
- # feature requests, etc. to the issue tracker at
18
- # <https://github.com/nemequ/configure-cmake/issues>.
19
- #
20
- # To the extent possible under law, the author(s) hereby waive all
21
- # copyright and related or neighboring rights to this work. For
22
- # details, see <https://creativecommons.org/publicdomain/zero/1.0/>
23
-
24
- TOP_SRCDIR="$(dirname $0)"
25
-
26
- if [ "${CMAKE_CMD}" = "" ]; then
27
- CMAKE_CMD="cmake"
28
- fi
29
-
30
- BUILD_TYPE="Debug"
31
- PREFIX=/usr/local
32
- LIBDIR=
33
- CMAKE_ARGS=
34
-
35
- if [ -e "${TOP_SRCDIR}/scripts/.configure-custom.sh" ]; then
36
- . "${TOP_SRCDIR}/scripts/.configure-custom.sh"
37
- fi
38
-
39
- quote() {
40
- echo "$1" | sed -e "s|'|'\\\\''|g; 1s/^/'/; \$s/\$/'/"
41
- }
42
-
43
- extract_var_string() {
44
- VAR_NAME=$1
45
- VAR_NAME=$(echo $1 | sed -e 's/[ \t]*$//')
46
- if [ "x$2" != "x" ]; then
47
- VAR_VALUE=$2
48
- else
49
- VAR_VALUE=yes
50
- fi
51
-
52
- if [ "x$3" != "x" ]; then
53
- VAR_UC_NAME=$3
54
- else
55
- VAR_UC_NAME=$(echo "$1" | tr '[:lower:]' '[:upper:]' | tr -c '[:alnum:]' '_' | sed 's/_$//g')
56
- fi
57
- }
58
-
59
- set_config_var() {
60
- is_with=n
61
- case "$1" in
62
- "--enable-"*)
63
- name="${1#--enable-}"
64
- cfg="${ENABLE_VARS}"
65
- ;;
66
- "--disable-"*)
67
- name="${1#--disable-}";
68
- cfg="${DISABLE_VARS}";
69
- ;;
70
- "--with-"*)
71
- # IFS="=" read -ra WITHARGS <<< "${1}"
72
- name="${1#--with-}"
73
- cfg="${WITH_VARS}"
74
- is_with=y
75
- ;;
76
- esac
77
-
78
- found=n
79
- for varstring in $cfg; do
80
- extract_var_string $(echo "${varstring}" | tr '|' ' ')
81
- if [ "x$VAR_NAME" = "x$name" ]; then
82
- found=y
83
- break;
84
- fi
85
- done
86
-
87
- if [ "$found" = "y" ]; then
88
- if [ "x$is_with" = "xy" ]; then
89
- CMAKE_ARGS="$CMAKE_ARGS -D${VAR_UC_NAME}=$(quote "$2")"
90
- else
91
- CMAKE_ARGS="$CMAKE_ARGS -D${VAR_UC_NAME}=$(quote "${VAR_VALUE}")"
92
- fi
93
- else
94
- echo "Unknown parameter: ${1}"
95
- exit 1
96
- fi
97
- }
98
-
99
- prefix_to_offset() {
100
- expr $(echo "${1}" | awk '{ print length }') + 1
101
- }
102
-
103
- print_help() {
104
- cat <<EOF >&2
105
- -h, --help display this help and exit
106
- --disable-debug disable debugging mode
107
- --pass-thru pass remaining arguments through to CMake
108
-
109
- --prefix=PREFIX install architecture-independent files in PREFIX
110
- [$PREFIX]
111
- --bindir=DIR user executables [PREFIX/bin]
112
- --sbindir=DIR system admin executables [PREFIX/sbin]
113
- --libexecdir=DIR program executables [PREFIX/libexec]
114
- --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
115
- --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
116
- --localstatedir=DIR modifiable single-machine data [PREFIX/var]
117
- --libdir=DIR object code libraries [PREFIX/lib]
118
- --includedir=DIR C header files [PREFIX/include]
119
- --oldincludedir=DIR C header files for non-gcc [/usr/include]
120
- --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
121
- --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
122
- --infodir=DIR info documentation [DATAROOTDIR/info]
123
- --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
124
- --mandir=DIR man documentation [DATAROOTDIR/man]
125
- --docdir=DIR documentation root [DATAROOTDIR/doc/PROJECT_NAME]
126
- EOF
127
-
128
- first=y
129
- for varstring in ${ENABLE_VARS}; do
130
- if [ $first = 'y' ]; then
131
- echo ""
132
- first=n
133
- fi
134
- extract_var_string $(echo "${varstring}" | tr '|' ' ')
135
- var_doc_name="ENABLE_${VAR_UC_NAME}_DOC"
136
- eval "docstring=\$$var_doc_name"
137
- if [ "x${docstring}" = "x" ]; then
138
- printf " --enable-%-14s enable %s support\n" "${VAR_NAME}" "$(echo -n "${VAR_NAME}" | tr '-' ' ')"
139
- else
140
- printf " --enable-%-14s %s\n" "${VAR_NAME}" "$docstring"
141
- fi
142
- done
143
-
144
- first=y
145
- for varstring in ${DISABLE_VARS}; do
146
- if [ $first = 'y' ]; then
147
- echo ""
148
- first=n
149
- fi
150
- extract_var_string $(echo "${varstring}" | tr '|' ' ')
151
- var_doc_name="DISABLE_${VAR_UC_NAME}_DOC"
152
- eval "docstring=\$$var_doc_name"
153
- if [ "x${docstring}" = "x" ]; then
154
- printf " --disable-%-13s disable %s support\n" "${VAR_NAME}" "$(echo -n "${VAR_NAME}" | tr '-' ' ')"
155
- else
156
- printf " --disable-%-13s %s\n" "${VAR_NAME}" "$docstring"
157
- fi
158
- done
159
-
160
- first=y
161
- for varstring in ${WITH_VARS}; do
162
- if [ $first = 'y' ]; then
163
- echo ""
164
- first=n
165
- fi
166
- extract_var_string $(echo "${varstring}" | tr '|' ' ')
167
- var_doc_name="WITH_${VAR_UC_NAME}_DOC"
168
- eval "docstring=\$$var_doc_name"
169
- paraminfo="${VAR_NAME}=${VAR_VALUE}"
170
- if [ "x${docstring}" = "x" ]; then
171
- printf " --with-%-16s enable %s support\n" "$paraminfo" "$(echo -n "${VAR_NAME}" | tr '-' ' ')"
172
- else
173
- printf " --with-%-16s %s\n" "$paraminfo" "$docstring"
174
- fi
175
- done
176
-
177
- exit 0
178
- }
179
-
180
- while [ $# != 0 ]; do
181
- case "$1" in
182
- "--prefix="*)
183
- PREFIX="${1#*=}";;
184
- "--prefix")
185
- PREFIX="${2}"; shift;;
186
- "--bindir="*)
187
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_BINDIR=$(quote "${1#*=}")";;
188
- "--bindir")
189
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_BINDIR=$(quote "$2")"; shift;;
190
- "--sbindir="*)
191
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_SBINDIR=$(quote "${1#*=}")";;
192
- "--sbindir")
193
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_SBINDIR=$(quote "$2")"; shift;;
194
- "--libexecdir="*)
195
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_LIBEXECDIR=$(quote "${1#*=}")";;
196
- "--libexecdir")
197
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_LIBEXECDIR=$(quote "$2")"; shift;;
198
- "--sysconfdir="*)
199
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_SYSCONFDIR=$(quote "${1#*=}")";;
200
- "--sysconfdir")
201
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_SYSCONFDIR=$(quote "$2")"; shift;;
202
- "--sharedstatedir="*)
203
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_SHAREDSTATEDIR=$(quote "${1#*=}")";;
204
- "--sharedstatedir")
205
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_SHAREDSTATEDIR=$(quote "$2")"; shift;;
206
- "--localstatedir="*)
207
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_LOCALSTATEDIR=$(quote "${1#*=}")";;
208
- "--localstatedir")
209
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_LOCALSTATEDIR=$(quote "$2")"; shift;;
210
- "--libdir="*)
211
- LIBDIR="${1#*=}";;
212
- "--libdir")
213
- LIBDIR="${2}"; shift;;
214
- "--includedir="*)
215
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_INCLUDEDIR=$(quote "${1#*=}")";;
216
- "--includedir")
217
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_INCLUDEDIR=$(quote "$2")"; shift;;
218
- "--oldincludedir="*)
219
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_OLDINCLUDEDIR=$(quote "${1#*=}")";;
220
- "--oldincludedir")
221
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_OLDINCLUDEDIR=$(quote "$2")"; shift;;
222
- "--datarootdir="*)
223
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_DATAROOTDIR=$(quote "${1#*=}")";;
224
- "--datarootdir")
225
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_DATAROOTDIR=$(quote "$2")"; shift;;
226
- "--datadir="*)
227
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_DATADIR=$(quote "${1#*=}")";;
228
- "--datadir")
229
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_DATADIR=$(quote "$2")"; shift;;
230
- "--infodir="*)
231
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_INFODIR=$(quote "${1#*=}")";;
232
- "--infodir")
233
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_INFODIR=$(quote "$2")"; shift;;
234
- "--localedir="*)
235
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_LOCALEDIR=$(quote "${1#*=}")";;
236
- "--localedir")
237
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_LOCALEDIR=$(quote "$2")"; shift;;
238
- "--mandir="*)
239
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_MANDIR=$(quote "${1#*=}")";;
240
- "--mandir")
241
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_MANDIR=$(quote "$2")"; shift;;
242
- "--docdir="*)
243
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_DOCDIR=$(quote "${1#*=}")";;
244
- "--docdir")
245
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_INSTALL_DOCDIR=$(quote "$2")"; shift;;
246
-
247
- "CC="*)
248
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_C_COMPILER=$(quote "${1#*=}")";;
249
- "CXX="*)
250
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_CXX_COMPILER=$(quote "${1#*=}")";;
251
- "CFLAGS="*)
252
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_C_FLAGS=$(quote "${1#*=}")";;
253
- "CXXFLAGS="*)
254
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_CXX_FLAGS=$(quote "${1#*=}")";;
255
- "LDFLAGS="*)
256
- LDFLAGS="$LDFLAGS ${1#*=}";;
257
-
258
- "--help")
259
- print_help;;
260
- "-h")
261
- print_help;;
262
-
263
- # This flag is the only one which may be a bit surprising to
264
- # people. Autotools always builds with debugging symbols enabled
265
- # (AFAIK), but for cmake you have to do -DCMAKE_BUILD_TYPE=Debug.
266
- # Unfortunately this can change other things as well, so although
267
- # I realize there is no --disable-debug flag I thought it would be
268
- # prudent to support one here.
269
- "--disable-debug")
270
- BUILD_TYPE="Release";;
271
-
272
- "--pass-thru")
273
- shift;
274
- while [ $# != 0 ]; do
275
- CMAKE_ARGS="$CMAKE_ARGS $(quote "${1}")";
276
- shift;
277
- done;;
278
-
279
- "--enable-"*)
280
- set_config_var "$1"
281
- ;;
282
-
283
- "--disable-"*)
284
- set_config_var "$1"
285
- ;;
286
-
287
- "--with-"*)
288
- name=$(echo "${1#--with-}" | awk '{split($1,v,"="); print v[1]}')
289
- case "${1}" in
290
- "--with-${name}="*)
291
- set_config_var "--with-${name}" "${1#--with-${name}=}";;
292
- "--with-${name}")
293
- set_config_var "$1" "$2";
294
- shift;;
295
- esac
296
- ;;
297
-
298
- *)
299
- echo "$0: error: unrecognized option: \`$1'" >&2
300
- echo "Try \`$0 --help' for more information" >&2
301
- exit -1
302
- esac;
303
- shift
304
- done
305
-
306
- if [ "x${LIBDIR}" = "x" ]; then
307
- LIBDIR="${PREFIX}/lib"
308
- fi
309
-
310
- # Unlike CFLAGS/CXXFLAGS/CC/CXX, LDFLAGS isn't handled by CMake, so we
311
- # need to parse it here.
312
- if [ "x${LDFLAGS}" != "x" ]; then
313
- for varname in EXE MODULE SHARED STATIC; do
314
- CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_${varname}_LINKER_FLAGS=$(quote "$LDFLAGS")"
315
- done
316
- fi
317
-
318
- eval "${CMAKE_CMD}" "${TOP_SRCDIR}" -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" -DCMAKE_INSTALL_PREFIX="${PREFIX}" -DCMAKE_INSTALL_LIBDIR="${LIBDIR}" ${CMAKE_ARGS}
@@ -1,14 +0,0 @@
1
- AC_PREREQ(2.57)
2
-
3
- dnl Actual version is substituted by bootstrap
4
- AC_INIT([brotli], [0.0.0], [https://groups.google.com/forum/#!forum/brotli])
5
-
6
- AM_INIT_AUTOMAKE()
7
- AC_CONFIG_MACRO_DIR([m4])
8
-
9
- AC_PROG_CC
10
- LT_INIT
11
-
12
- AC_CONFIG_FILES([Makefile scripts/libbrotlicommon.pc scripts/libbrotlidec.pc scripts/libbrotlienc.pc])
13
-
14
- AC_OUTPUT
@@ -1,132 +0,0 @@
1
- .TH "BROTLI" "1" "February 2018" "brotli 1.0.0" "User commands"
2
- .SH "NAME"
3
- \fBbrotli\fR \- brotli, unbrotli \- compress or decompress files
4
- .SH SYNOPSIS
5
- .P
6
- \fBbrotli\fP [\fIOPTION|FILE\fR]\.\.\.
7
- .P
8
- \fBunbrotli\fP is equivalent to \fBbrotli \-\-decompress\fP
9
- .SH DESCRIPTION
10
- .P
11
- \fBbrotli\fP is a generic\-purpose lossless compression algorithm that compresses
12
- data using a combination of a modern variant of the \fBLZ77\fR algorithm, Huffman
13
- coding and 2\-nd order context modeling, with a compression ratio comparable to
14
- the best currently available general\-purpose compression methods\. It is similar
15
- in speed with deflate but offers more dense compression\.
16
- .P
17
- \fBbrotli\fP command line syntax similar to \fBgzip (1)\fP and \fBzstd (1)\fP\|\.
18
- Unlike \fBgzip (1)\fP, source files are preserved by default\. It is possible to
19
- remove them after processing by using the \fB\-\-rm\fP \fIoption\fR\|\.
20
- .P
21
- Arguments that look like "\fB\-\-name\fP" or "\fB\-\-name=value\fP" are \fIoptions\fR\|\. Every
22
- \fIoption\fR has a short form "\fB\-x\fP" or "\fB\-x value\fP"\. Multiple short form \fIoptions\fR
23
- could be coalesced:
24
- .RS 0
25
- .IP \(bu 2
26
- "\fB\-\-decompress \-\-stdout \-\-suffix=\.b\fP" works the same as
27
- .IP \(bu 2
28
- "\fB\-d \-s \-S \.b\fP" and
29
- .IP \(bu 2
30
- "\fB\-dsS \.b\fP"
31
-
32
- .RE
33
- .P
34
- \fBbrotli\fP has 3 operation modes:
35
- .RS 0
36
- .IP \(bu 2
37
- default mode is compression;
38
- .IP \(bu 2
39
- \fB\-\-decompress\fP option activates decompression mode;
40
- .IP \(bu 2
41
- \fB\-\-test\fP option switches to integrity test mode; this option is equivalent to
42
- "\fB\-\-decompress \-\-stdout\fP" except that the decompressed data is discarded
43
- instead of being written to standard output\.
44
-
45
- .RE
46
- .P
47
- Every non\-option argument is a \fIfile\fR entry\. If no \fIfiles\fR are given or \fIfile\fR
48
- is "\fB\-\fP", \fBbrotli\fP reads from standard input\. All arguments after "\fB\-\-\fP" are
49
- \fIfile\fR entries\.
50
- .P
51
- Unless \fB\-\-stdout\fP or \fB\-\-output\fP is specified, \fIfiles\fR are written to a new file
52
- whose name is derived from the source \fIfile\fR name:
53
- .RS 0
54
- .IP \(bu 2
55
- when compressing, a suffix is appended to the source filename to
56
- get the target filename
57
- .IP \(bu 2
58
- when decompressing, a suffix is removed from the source filename to
59
- get the target filename
60
-
61
- .RE
62
- .P
63
- Default suffix is \fB\|\.br\fP, but it could be specified with \fB\-\-suffix\fP option\.
64
- .P
65
- Conflicting or duplicate \fIoptions\fR are not allowed\.
66
- .SH OPTIONS
67
- .RS 0
68
- .IP \(bu 2
69
- \fB\-#\fP:
70
- compression level (0\-9); bigger values cause denser, but slower compression
71
- .IP \(bu 2
72
- \fB\-c\fP, \fB\-\-stdout\fP:
73
- write on standard output
74
- .IP \(bu 2
75
- \fB\-d\fP, \fB\-\-decompress\fP:
76
- decompress mode
77
- .IP \(bu 2
78
- \fB\-f\fP, \fB\-\-force\fP:
79
- force output file overwrite
80
- .IP \(bu 2
81
- \fB\-h\fP, \fB\-\-help\fP:
82
- display this help and exit
83
- .IP \(bu 2
84
- \fB\-j\fP, \fB\-\-rm\fP:
85
- remove source file(s); \fBgzip (1)\fP\-like behaviour
86
- .IP \(bu 2
87
- \fB\-k\fP, \fB\-\-keep\fP:
88
- keep source file(s); \fBzstd (1)\fP\-like behaviour
89
- .IP \(bu 2
90
- \fB\-n\fP, \fB\-\-no\-copy\-stat\fP:
91
- do not copy source file(s) attributes
92
- .IP \(bu 2
93
- \fB\-o FILE\fP, \fB\-\-output=FILE\fP
94
- output file; valid only if there is a single input entry
95
- .IP \(bu 2
96
- \fB\-q NUM\fP, \fB\-\-quality=NUM\fP:
97
- compression level (0\-11); bigger values cause denser, but slower compression
98
- .IP \(bu 2
99
- \fB\-t\fP, \fB\-\-test\fP:
100
- test file integrity mode
101
- .IP \(bu 2
102
- \fB\-v\fP, \fB\-\-verbose\fP:
103
- increase output verbosity
104
- .IP \(bu 2
105
- \fB\-w NUM\fP, \fB\-\-lgwin=NUM\fP:
106
- set LZ77 window size (0, 10\-24) (default: 22); window size is
107
- \fB(2**NUM \- 16)\fP; 0 lets compressor decide over the optimal value; bigger
108
- windows size improve density; decoder might require up to window size
109
- memory to operate
110
- .IP \(bu 2
111
- \fB\-S SUF\fP, \fB\-\-suffix=SUF\fP:
112
- output file suffix (default: \fB\|\.br\fP)
113
- .IP \(bu 2
114
- \fB\-V\fP, \fB\-\-version\fP:
115
- display version and exit
116
- .IP \(bu 2
117
- \fB\-Z\fP, \fB\-\-best\fP:
118
- use best compression level (default); same as "\fB\-q 11\fP"
119
-
120
- .RE
121
- .SH SEE ALSO
122
- .P
123
- \fBbrotli\fP file format is defined in
124
- RFC 7932 \fIhttps://www\.ietf\.org/rfc/rfc7932\.txt\fR\|\.
125
- .P
126
- \fBbrotli\fP is open\-sourced under the
127
- MIT License \fIhttps://opensource\.org/licenses/MIT\fR\|\.
128
- .P
129
- Mailing list: https://groups\.google\.com/forum/#!forum/brotli
130
- .SH BUGS
131
- .P
132
- Report bugs at: https://github\.com/google/brotli/issues
@@ -1,47 +0,0 @@
1
- .TH "constants.h" 3 "Wed May 13 2020" "Brotli" \" -*- nroff -*-
2
- .ad l
3
- .nh
4
- .SH NAME
5
- constants.h \- Common constants used in decoder and encoder API\&.
6
-
7
- .SH SYNOPSIS
8
- .br
9
- .PP
10
- .SS "Macros"
11
-
12
- .in +1c
13
- .ti -1c
14
- .RI "#define \fBBROTLI_LARGE_MAX_DISTANCE_BITS\fP 62U"
15
- .br
16
- .RI "\fIThe theoretical maximum number of distance bits specified for large window brotli, for 64-bit encoders and decoders\&. \fP"
17
- .ti -1c
18
- .RI "#define \fBBROTLI_LARGE_MAX_WBITS\fP 30"
19
- .br
20
- .RI "\fIThe maximum supported large brotli window bits by the encoder and decoder\&. \fP"
21
- .ti -1c
22
- .RI "#define \fBBROTLI_MAX_NPOSTFIX\fP 3"
23
- .br
24
- .RI "\fIMaximal number of 'postfix' bits\&. \fP"
25
- .in -1c
26
- .SH "Detailed Description"
27
- .PP
28
- Common constants used in decoder and encoder API\&.
29
-
30
-
31
- .SH "Macro Definition Documentation"
32
- .PP
33
- .SS "#define BROTLI_LARGE_MAX_DISTANCE_BITS 62U"
34
-
35
- .PP
36
- The theoretical maximum number of distance bits specified for large window brotli, for 64-bit encoders and decoders\&. Even when in practice 32-bit encoders and decoders only support up to 30 max distance bits, the value is set to 62 because it affects the large window brotli file format\&. Specifically, it affects the encoding of simple huffman tree for distances, see Specification RFC 7932 chapter 3\&.4\&.
37
- .SS "#define BROTLI_LARGE_MAX_WBITS 30"
38
-
39
- .PP
40
- The maximum supported large brotli window bits by the encoder and decoder\&. Large window brotli allows up to 62 bits, however the current encoder and decoder, designed for 32-bit integers, only support up to 30 bits maximum\&.
41
- .SS "#define BROTLI_MAX_NPOSTFIX 3"
42
-
43
- .PP
44
- Maximal number of 'postfix' bits\&. Number of 'postfix' bits is stored as 2 bits in meta-block header\&.
45
- .SH "Author"
46
- .PP
47
- Generated automatically by Doxygen for Brotli from the source code\&.