laag-xz 5.2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +57 -0
- data/LICENSE.txt +65 -0
- data/README.org +34 -0
- data/ext/laag/xz/extconf.rb +21 -0
- data/laag-xz.gemspec +20 -0
- data/lib/laag/xz.rb +29 -0
- data/vendor/git.tukaani.org/xz/.gitignore +66 -0
- data/vendor/git.tukaani.org/xz/AUTHORS +27 -0
- data/vendor/git.tukaani.org/xz/COPYING +65 -0
- data/vendor/git.tukaani.org/xz/COPYING.GPLv2 +339 -0
- data/vendor/git.tukaani.org/xz/COPYING.GPLv3 +674 -0
- data/vendor/git.tukaani.org/xz/COPYING.LGPLv2.1 +502 -0
- data/vendor/git.tukaani.org/xz/ChangeLog +7 -0
- data/vendor/git.tukaani.org/xz/Doxyfile.in +1234 -0
- data/vendor/git.tukaani.org/xz/INSTALL +618 -0
- data/vendor/git.tukaani.org/xz/INSTALL.generic +365 -0
- data/vendor/git.tukaani.org/xz/Makefile.am +110 -0
- data/vendor/git.tukaani.org/xz/NEWS +571 -0
- data/vendor/git.tukaani.org/xz/PACKAGERS +231 -0
- data/vendor/git.tukaani.org/xz/README +308 -0
- data/vendor/git.tukaani.org/xz/THANKS +124 -0
- data/vendor/git.tukaani.org/xz/TODO +111 -0
- data/vendor/git.tukaani.org/xz/autogen.sh +22 -0
- data/vendor/git.tukaani.org/xz/build-aux/manconv.sh +58 -0
- data/vendor/git.tukaani.org/xz/build-aux/version.sh +24 -0
- data/vendor/git.tukaani.org/xz/configure.ac +900 -0
- data/vendor/git.tukaani.org/xz/debug/Makefile.am +30 -0
- data/vendor/git.tukaani.org/xz/debug/README +17 -0
- data/vendor/git.tukaani.org/xz/debug/crc32.c +39 -0
- data/vendor/git.tukaani.org/xz/debug/full_flush.c +103 -0
- data/vendor/git.tukaani.org/xz/debug/hex2bin.c +53 -0
- data/vendor/git.tukaani.org/xz/debug/known_sizes.c +129 -0
- data/vendor/git.tukaani.org/xz/debug/memusage.c +51 -0
- data/vendor/git.tukaani.org/xz/debug/repeat.c +36 -0
- data/vendor/git.tukaani.org/xz/debug/sync_flush.c +125 -0
- data/vendor/git.tukaani.org/xz/debug/translation.bash +100 -0
- data/vendor/git.tukaani.org/xz/doc/examples/00_README.txt +31 -0
- data/vendor/git.tukaani.org/xz/doc/examples/01_compress_easy.c +297 -0
- data/vendor/git.tukaani.org/xz/doc/examples/02_decompress.c +287 -0
- data/vendor/git.tukaani.org/xz/doc/examples/03_compress_custom.c +193 -0
- data/vendor/git.tukaani.org/xz/doc/examples/04_compress_easy_mt.c +206 -0
- data/vendor/git.tukaani.org/xz/doc/examples/Makefile +24 -0
- data/vendor/git.tukaani.org/xz/doc/examples_old/xz_pipe_comp.c +127 -0
- data/vendor/git.tukaani.org/xz/doc/examples_old/xz_pipe_decomp.c +123 -0
- data/vendor/git.tukaani.org/xz/doc/faq.txt +224 -0
- data/vendor/git.tukaani.org/xz/doc/history.txt +150 -0
- data/vendor/git.tukaani.org/xz/doc/lzma-file-format.txt +166 -0
- data/vendor/git.tukaani.org/xz/doc/xz-file-format.txt +1150 -0
- data/vendor/git.tukaani.org/xz/dos/INSTALL.txt +79 -0
- data/vendor/git.tukaani.org/xz/dos/Makefile +147 -0
- data/vendor/git.tukaani.org/xz/dos/README.txt +123 -0
- data/vendor/git.tukaani.org/xz/dos/config.h +136 -0
- data/vendor/git.tukaani.org/xz/extra/7z2lzma/7z2lzma.bash +115 -0
- data/vendor/git.tukaani.org/xz/extra/scanlzma/scanlzma.c +88 -0
- data/vendor/git.tukaani.org/xz/lib/Makefile.am +32 -0
- data/vendor/git.tukaani.org/xz/lib/getopt.c +1197 -0
- data/vendor/git.tukaani.org/xz/lib/getopt.in.h +226 -0
- data/vendor/git.tukaani.org/xz/lib/getopt1.c +171 -0
- data/vendor/git.tukaani.org/xz/lib/getopt_int.h +131 -0
- data/vendor/git.tukaani.org/xz/m4/.gitignore +38 -0
- data/vendor/git.tukaani.org/xz/m4/ax_check_capsicum.m4 +85 -0
- data/vendor/git.tukaani.org/xz/m4/ax_pthread.m4 +332 -0
- data/vendor/git.tukaani.org/xz/m4/getopt.m4 +71 -0
- data/vendor/git.tukaani.org/xz/m4/posix-shell.m4 +63 -0
- data/vendor/git.tukaani.org/xz/m4/tuklib_common.m4 +22 -0
- data/vendor/git.tukaani.org/xz/m4/tuklib_cpucores.m4 +176 -0
- data/vendor/git.tukaani.org/xz/m4/tuklib_integer.m4 +74 -0
- data/vendor/git.tukaani.org/xz/m4/tuklib_mbstr.m4 +30 -0
- data/vendor/git.tukaani.org/xz/m4/tuklib_physmem.m4 +212 -0
- data/vendor/git.tukaani.org/xz/m4/tuklib_progname.m4 +25 -0
- data/vendor/git.tukaani.org/xz/macosx/build.sh +113 -0
- data/vendor/git.tukaani.org/xz/po/.gitignore +31 -0
- data/vendor/git.tukaani.org/xz/po/LINGUAS +6 -0
- data/vendor/git.tukaani.org/xz/po/Makevars +46 -0
- data/vendor/git.tukaani.org/xz/po/POTFILES.in +13 -0
- data/vendor/git.tukaani.org/xz/po/cs.po +949 -0
- data/vendor/git.tukaani.org/xz/po/de.po +993 -0
- data/vendor/git.tukaani.org/xz/po/fr.po +978 -0
- data/vendor/git.tukaani.org/xz/po/it.po +1067 -0
- data/vendor/git.tukaani.org/xz/po/pl.po +968 -0
- data/vendor/git.tukaani.org/xz/po/vi.po +1039 -0
- data/vendor/git.tukaani.org/xz/src/Makefile.am +42 -0
- data/vendor/git.tukaani.org/xz/src/common/common_w32res.rc +50 -0
- data/vendor/git.tukaani.org/xz/src/common/mythread.h +521 -0
- data/vendor/git.tukaani.org/xz/src/common/sysdefs.h +202 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_common.h +71 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_config.h +7 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_cpucores.c +100 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_cpucores.h +23 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_exit.c +57 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_exit.h +25 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_gettext.h +44 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_integer.h +534 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_mbstr.h +66 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_mbstr_fw.c +31 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_mbstr_width.c +64 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_open_stdxxx.c +57 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_open_stdxxx.h +23 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_physmem.c +216 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_physmem.h +28 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_progname.c +50 -0
- data/vendor/git.tukaani.org/xz/src/common/tuklib_progname.h +32 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/Makefile.am +122 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/Makefile.am +23 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma.h +325 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/base.h +659 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/bcj.h +90 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/block.h +581 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/check.h +150 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/container.h +632 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/delta.h +77 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/filter.h +425 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/hardware.h +64 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/index.h +686 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/index_hash.h +107 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/lzma12.h +420 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/stream_flags.h +223 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/version.h +121 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/api/lzma/vli.h +166 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/Makefile.inc +53 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/check.c +174 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/check.h +172 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc32_fast.c +82 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc32_small.c +61 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc32_table.c +19 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc32_table_be.h +525 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc32_table_le.h +525 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc32_tablegen.c +117 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc32_x86.S +304 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc64_fast.c +72 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc64_small.c +53 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc64_table.c +19 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc64_table_be.h +521 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc64_table_le.h +521 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc64_tablegen.c +88 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc64_x86.S +287 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/crc_macros.h +30 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/check/sha256.c +196 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/Makefile.inc +79 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/alone_decoder.c +243 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/alone_decoder.h +23 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/alone_encoder.c +163 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/auto_decoder.c +195 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/block_buffer_decoder.c +80 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/block_buffer_encoder.c +337 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/block_buffer_encoder.h +24 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/block_decoder.c +257 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/block_decoder.h +22 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/block_encoder.c +223 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/block_encoder.h +47 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/block_header_decoder.c +124 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/block_header_encoder.c +132 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/block_util.c +90 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/common.c +445 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/common.h +314 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/easy_buffer_encoder.c +27 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/easy_decoder_memusage.c +24 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/easy_encoder.c +24 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/easy_encoder_memusage.c +24 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/easy_preset.c +27 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/easy_preset.h +32 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/filter_buffer_decoder.c +88 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/filter_buffer_encoder.c +55 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/filter_common.c +337 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/filter_common.h +48 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/filter_decoder.c +184 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/filter_decoder.h +23 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/filter_encoder.c +286 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/filter_encoder.h +27 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/filter_flags_decoder.c +46 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/filter_flags_encoder.c +56 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/hardware_cputhreads.c +22 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/hardware_physmem.c +25 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/index.c +1250 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/index.h +73 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/index_decoder.c +352 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/index_encoder.c +256 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/index_encoder.h +23 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/index_hash.c +334 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/memcmplen.h +175 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/outqueue.c +184 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/outqueue.h +156 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/stream_buffer_decoder.c +91 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/stream_buffer_encoder.c +141 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/stream_decoder.c +467 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/stream_decoder.h +22 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/stream_encoder.c +340 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/stream_encoder_mt.c +1143 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/stream_flags_common.c +47 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/stream_flags_common.h +33 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/stream_flags_decoder.c +82 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/stream_flags_encoder.c +86 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/vli_decoder.c +86 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/vli_encoder.c +69 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/common/vli_size.c +30 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/delta/Makefile.inc +23 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/delta/delta_common.c +73 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/delta/delta_common.h +20 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/delta/delta_decoder.c +78 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/delta/delta_decoder.h +26 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/delta/delta_encoder.c +125 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/delta/delta_encoder.h +24 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/delta/delta_private.h +37 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/liblzma.map +108 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/liblzma.pc.in +19 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/liblzma_w32res.rc +12 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lz/Makefile.inc +22 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lz/lz_decoder.c +306 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lz/lz_decoder.h +234 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lz/lz_encoder.c +616 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lz/lz_encoder.h +327 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lz/lz_encoder_hash.h +108 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lz/lz_encoder_hash_table.h +68 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lz/lz_encoder_mf.c +744 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/Makefile.inc +47 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/fastpos.h +141 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/fastpos_table.c +519 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/fastpos_tablegen.c +56 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma2_decoder.c +310 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma2_decoder.h +29 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma2_encoder.c +410 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma2_encoder.h +43 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma_common.h +224 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma_decoder.c +1064 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma_decoder.h +53 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma_encoder.c +677 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma_encoder.h +58 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma_encoder_optimum_fast.c +170 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma_encoder_optimum_normal.c +855 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma_encoder_presets.c +64 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/lzma/lzma_encoder_private.h +148 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/rangecoder/Makefile.inc +21 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/rangecoder/price.h +92 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/rangecoder/price_table.c +22 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/rangecoder/price_tablegen.c +87 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/rangecoder/range_common.h +71 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/rangecoder/range_decoder.h +185 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/rangecoder/range_encoder.h +231 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/Makefile.inc +47 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/arm.c +71 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/armthumb.c +76 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/ia64.c +112 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/powerpc.c +75 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/simple_coder.c +282 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/simple_coder.h +72 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/simple_decoder.c +40 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/simple_decoder.h +22 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/simple_encoder.c +38 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/simple_encoder.h +23 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/simple_private.h +74 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/sparc.c +83 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/simple/x86.c +159 -0
- data/vendor/git.tukaani.org/xz/src/liblzma/validate_map.sh +68 -0
- data/vendor/git.tukaani.org/xz/src/lzmainfo/Makefile.am +39 -0
- data/vendor/git.tukaani.org/xz/src/lzmainfo/lzmainfo.1 +60 -0
- data/vendor/git.tukaani.org/xz/src/lzmainfo/lzmainfo.c +219 -0
- data/vendor/git.tukaani.org/xz/src/lzmainfo/lzmainfo_w32res.rc +12 -0
- data/vendor/git.tukaani.org/xz/src/scripts/Makefile.am +55 -0
- data/vendor/git.tukaani.org/xz/src/scripts/xzdiff.1 +77 -0
- data/vendor/git.tukaani.org/xz/src/scripts/xzdiff.in +200 -0
- data/vendor/git.tukaani.org/xz/src/scripts/xzgrep.1 +98 -0
- data/vendor/git.tukaani.org/xz/src/scripts/xzgrep.in +215 -0
- data/vendor/git.tukaani.org/xz/src/scripts/xzless.1 +69 -0
- data/vendor/git.tukaani.org/xz/src/scripts/xzless.in +58 -0
- data/vendor/git.tukaani.org/xz/src/scripts/xzmore.1 +55 -0
- data/vendor/git.tukaani.org/xz/src/scripts/xzmore.in +78 -0
- data/vendor/git.tukaani.org/xz/src/xz/Makefile.am +111 -0
- data/vendor/git.tukaani.org/xz/src/xz/args.c +700 -0
- data/vendor/git.tukaani.org/xz/src/xz/args.h +44 -0
- data/vendor/git.tukaani.org/xz/src/xz/coder.c +936 -0
- data/vendor/git.tukaani.org/xz/src/xz/coder.h +76 -0
- data/vendor/git.tukaani.org/xz/src/xz/file_io.c +1300 -0
- data/vendor/git.tukaani.org/xz/src/xz/file_io.h +156 -0
- data/vendor/git.tukaani.org/xz/src/xz/hardware.c +150 -0
- data/vendor/git.tukaani.org/xz/src/xz/hardware.h +37 -0
- data/vendor/git.tukaani.org/xz/src/xz/list.c +1192 -0
- data/vendor/git.tukaani.org/xz/src/xz/list.h +18 -0
- data/vendor/git.tukaani.org/xz/src/xz/main.c +330 -0
- data/vendor/git.tukaani.org/xz/src/xz/main.h +30 -0
- data/vendor/git.tukaani.org/xz/src/xz/message.c +1258 -0
- data/vendor/git.tukaani.org/xz/src/xz/message.h +167 -0
- data/vendor/git.tukaani.org/xz/src/xz/mytime.c +89 -0
- data/vendor/git.tukaani.org/xz/src/xz/mytime.h +47 -0
- data/vendor/git.tukaani.org/xz/src/xz/options.c +363 -0
- data/vendor/git.tukaani.org/xz/src/xz/options.h +31 -0
- data/vendor/git.tukaani.org/xz/src/xz/private.h +66 -0
- data/vendor/git.tukaani.org/xz/src/xz/signals.c +209 -0
- data/vendor/git.tukaani.org/xz/src/xz/signals.h +43 -0
- data/vendor/git.tukaani.org/xz/src/xz/suffix.c +399 -0
- data/vendor/git.tukaani.org/xz/src/xz/suffix.h +28 -0
- data/vendor/git.tukaani.org/xz/src/xz/util.c +288 -0
- data/vendor/git.tukaani.org/xz/src/xz/util.h +123 -0
- data/vendor/git.tukaani.org/xz/src/xz/xz.1 +2786 -0
- data/vendor/git.tukaani.org/xz/src/xz/xz_w32res.rc +12 -0
- data/vendor/git.tukaani.org/xz/src/xzdec/Makefile.am +82 -0
- data/vendor/git.tukaani.org/xz/src/xzdec/lzmadec_w32res.rc +12 -0
- data/vendor/git.tukaani.org/xz/src/xzdec/xzdec.1 +146 -0
- data/vendor/git.tukaani.org/xz/src/xzdec/xzdec.c +323 -0
- data/vendor/git.tukaani.org/xz/src/xzdec/xzdec_w32res.rc +12 -0
- data/vendor/git.tukaani.org/xz/tests/Makefile.am +57 -0
- data/vendor/git.tukaani.org/xz/tests/bcj_test.c +65 -0
- data/vendor/git.tukaani.org/xz/tests/compress_prepared_bcj_sparc +0 -0
- data/vendor/git.tukaani.org/xz/tests/compress_prepared_bcj_x86 +0 -0
- data/vendor/git.tukaani.org/xz/tests/create_compress_files.c +158 -0
- data/vendor/git.tukaani.org/xz/tests/files/README +240 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-0-backward_size.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-0-empty-truncated.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-0-footer_magic.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-0-header_magic.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-0-nonempty_index.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-0cat-alone.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-0cat-header_magic.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-0catpad-empty.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-0pad-empty.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-block_header-1.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-block_header-2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-block_header-3.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-block_header-4.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-block_header-5.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-block_header-6.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-check-crc32.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-check-crc64.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-check-sha256.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-lzma2-1.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-lzma2-2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-lzma2-3.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-lzma2-4.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-lzma2-5.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-lzma2-6.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-lzma2-7.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-lzma2-8.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-stream_flags-1.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-stream_flags-2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-stream_flags-3.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-vli-1.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-1-vli-2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-2-compressed_data_padding.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-2-index-1.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-2-index-2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-2-index-3.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-2-index-4.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/bad-2-index-5.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-0-empty.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-0cat-empty.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-0catpad-empty.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-0pad-empty.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-3delta-lzma2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-block_header-1.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-block_header-2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-block_header-3.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-check-crc32.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-check-crc64.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-check-none.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-check-sha256.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-delta-lzma2.tiff.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-lzma2-1.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-lzma2-2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-lzma2-3.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-lzma2-4.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-lzma2-5.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-sparc-lzma2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-1-x86-lzma2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/good-2-lzma2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/unsupported-block_header.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/unsupported-check.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/unsupported-filter_flags-1.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/unsupported-filter_flags-2.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/files/unsupported-filter_flags-3.xz +0 -0
- data/vendor/git.tukaani.org/xz/tests/test_bcj_exact_size.c +113 -0
- data/vendor/git.tukaani.org/xz/tests/test_block_header.c +240 -0
- data/vendor/git.tukaani.org/xz/tests/test_check.c +83 -0
- data/vendor/git.tukaani.org/xz/tests/test_compress.sh +142 -0
- data/vendor/git.tukaani.org/xz/tests/test_files.sh +57 -0
- data/vendor/git.tukaani.org/xz/tests/test_filter_flags.c +258 -0
- data/vendor/git.tukaani.org/xz/tests/test_index.c +689 -0
- data/vendor/git.tukaani.org/xz/tests/test_scripts.sh +76 -0
- data/vendor/git.tukaani.org/xz/tests/test_stream_flags.c +180 -0
- data/vendor/git.tukaani.org/xz/tests/tests.h +124 -0
- data/vendor/git.tukaani.org/xz/tests/xzgrep_expected_output +39 -0
- data/vendor/git.tukaani.org/xz/windows/INSTALL-MSVC.txt +47 -0
- data/vendor/git.tukaani.org/xz/windows/INSTALL-MinGW.txt +138 -0
- data/vendor/git.tukaani.org/xz/windows/README-Windows.txt +122 -0
- data/vendor/git.tukaani.org/xz/windows/build.bash +203 -0
- data/vendor/git.tukaani.org/xz/windows/vs2013/config.h +148 -0
- data/vendor/git.tukaani.org/xz/windows/vs2013/liblzma.vcxproj +354 -0
- data/vendor/git.tukaani.org/xz/windows/vs2013/liblzma_dll.vcxproj +383 -0
- data/vendor/git.tukaani.org/xz/windows/vs2013/xz_win.sln +48 -0
- data/vendor/git.tukaani.org/xz/windows/vs2017/config.h +148 -0
- data/vendor/git.tukaani.org/xz/windows/vs2017/liblzma.vcxproj +355 -0
- data/vendor/git.tukaani.org/xz/windows/vs2017/liblzma_dll.vcxproj +384 -0
- data/vendor/git.tukaani.org/xz/windows/vs2017/xz_win.sln +48 -0
- metadata +457 -0
@@ -0,0 +1,64 @@
|
|
1
|
+
/**
|
2
|
+
* \file lzma/hardware.h
|
3
|
+
* \brief Hardware information
|
4
|
+
*
|
5
|
+
* Since liblzma can consume a lot of system resources, it also provides
|
6
|
+
* ways to limit the resource usage. Applications linking against liblzma
|
7
|
+
* need to do the actual decisions how much resources to let liblzma to use.
|
8
|
+
* To ease making these decisions, liblzma provides functions to find out
|
9
|
+
* the relevant capabilities of the underlaying hardware. Currently there
|
10
|
+
* is only a function to find out the amount of RAM, but in the future there
|
11
|
+
* will be also a function to detect how many concurrent threads the system
|
12
|
+
* can run.
|
13
|
+
*
|
14
|
+
* \note On some operating systems, these function may temporarily
|
15
|
+
* load a shared library or open file descriptor(s) to find out
|
16
|
+
* the requested hardware information. Unless the application
|
17
|
+
* assumes that specific file descriptors are not touched by
|
18
|
+
* other threads, this should have no effect on thread safety.
|
19
|
+
* Possible operations involving file descriptors will restart
|
20
|
+
* the syscalls if they return EINTR.
|
21
|
+
*/
|
22
|
+
|
23
|
+
/*
|
24
|
+
* Author: Lasse Collin
|
25
|
+
*
|
26
|
+
* This file has been put into the public domain.
|
27
|
+
* You can do whatever you want with this file.
|
28
|
+
*
|
29
|
+
* See ../lzma.h for information about liblzma as a whole.
|
30
|
+
*/
|
31
|
+
|
32
|
+
#ifndef LZMA_H_INTERNAL
|
33
|
+
# error Never include this file directly. Use <lzma.h> instead.
|
34
|
+
#endif
|
35
|
+
|
36
|
+
|
37
|
+
/**
|
38
|
+
* \brief Get the total amount of physical memory (RAM) in bytes
|
39
|
+
*
|
40
|
+
* This function may be useful when determining a reasonable memory
|
41
|
+
* usage limit for decompressing or how much memory it is OK to use
|
42
|
+
* for compressing.
|
43
|
+
*
|
44
|
+
* \return On success, the total amount of physical memory in bytes
|
45
|
+
* is returned. If the amount of RAM cannot be determined,
|
46
|
+
* zero is returned. This can happen if an error occurs
|
47
|
+
* or if there is no code in liblzma to detect the amount
|
48
|
+
* of RAM on the specific operating system.
|
49
|
+
*/
|
50
|
+
extern LZMA_API(uint64_t) lzma_physmem(void) lzma_nothrow;
|
51
|
+
|
52
|
+
|
53
|
+
/**
|
54
|
+
* \brief Get the number of processor cores or threads
|
55
|
+
*
|
56
|
+
* This function may be useful when determining how many threads to use.
|
57
|
+
* If the hardware supports more than one thread per CPU core, the number
|
58
|
+
* of hardware threads is returned if that information is available.
|
59
|
+
*
|
60
|
+
* \brief On success, the number of available CPU threads or cores is
|
61
|
+
* returned. If this information isn't available or an error
|
62
|
+
* occurs, zero is returned.
|
63
|
+
*/
|
64
|
+
extern LZMA_API(uint32_t) lzma_cputhreads(void) lzma_nothrow;
|
@@ -0,0 +1,686 @@
|
|
1
|
+
/**
|
2
|
+
* \file lzma/index.h
|
3
|
+
* \brief Handling of .xz Index and related information
|
4
|
+
*/
|
5
|
+
|
6
|
+
/*
|
7
|
+
* Author: Lasse Collin
|
8
|
+
*
|
9
|
+
* This file has been put into the public domain.
|
10
|
+
* You can do whatever you want with this file.
|
11
|
+
*
|
12
|
+
* See ../lzma.h for information about liblzma as a whole.
|
13
|
+
*/
|
14
|
+
|
15
|
+
#ifndef LZMA_H_INTERNAL
|
16
|
+
# error Never include this file directly. Use <lzma.h> instead.
|
17
|
+
#endif
|
18
|
+
|
19
|
+
|
20
|
+
/**
|
21
|
+
* \brief Opaque data type to hold the Index(es) and other information
|
22
|
+
*
|
23
|
+
* lzma_index often holds just one .xz Index and possibly the Stream Flags
|
24
|
+
* of the same Stream and size of the Stream Padding field. However,
|
25
|
+
* multiple lzma_indexes can be concatenated with lzma_index_cat() and then
|
26
|
+
* there may be information about multiple Streams in the same lzma_index.
|
27
|
+
*
|
28
|
+
* Notes about thread safety: Only one thread may modify lzma_index at
|
29
|
+
* a time. All functions that take non-const pointer to lzma_index
|
30
|
+
* modify it. As long as no thread is modifying the lzma_index, getting
|
31
|
+
* information from the same lzma_index can be done from multiple threads
|
32
|
+
* at the same time with functions that take a const pointer to
|
33
|
+
* lzma_index or use lzma_index_iter. The same iterator must be used
|
34
|
+
* only by one thread at a time, of course, but there can be as many
|
35
|
+
* iterators for the same lzma_index as needed.
|
36
|
+
*/
|
37
|
+
typedef struct lzma_index_s lzma_index;
|
38
|
+
|
39
|
+
|
40
|
+
/**
|
41
|
+
* \brief Iterator to get information about Blocks and Streams
|
42
|
+
*/
|
43
|
+
typedef struct {
|
44
|
+
struct {
|
45
|
+
/**
|
46
|
+
* \brief Pointer to Stream Flags
|
47
|
+
*
|
48
|
+
* This is NULL if Stream Flags have not been set for
|
49
|
+
* this Stream with lzma_index_stream_flags().
|
50
|
+
*/
|
51
|
+
const lzma_stream_flags *flags;
|
52
|
+
|
53
|
+
const void *reserved_ptr1;
|
54
|
+
const void *reserved_ptr2;
|
55
|
+
const void *reserved_ptr3;
|
56
|
+
|
57
|
+
/**
|
58
|
+
* \brief Stream number in the lzma_index
|
59
|
+
*
|
60
|
+
* The first Stream is 1.
|
61
|
+
*/
|
62
|
+
lzma_vli number;
|
63
|
+
|
64
|
+
/**
|
65
|
+
* \brief Number of Blocks in the Stream
|
66
|
+
*
|
67
|
+
* If this is zero, the block structure below has
|
68
|
+
* undefined values.
|
69
|
+
*/
|
70
|
+
lzma_vli block_count;
|
71
|
+
|
72
|
+
/**
|
73
|
+
* \brief Compressed start offset of this Stream
|
74
|
+
*
|
75
|
+
* The offset is relative to the beginning of the lzma_index
|
76
|
+
* (i.e. usually the beginning of the .xz file).
|
77
|
+
*/
|
78
|
+
lzma_vli compressed_offset;
|
79
|
+
|
80
|
+
/**
|
81
|
+
* \brief Uncompressed start offset of this Stream
|
82
|
+
*
|
83
|
+
* The offset is relative to the beginning of the lzma_index
|
84
|
+
* (i.e. usually the beginning of the .xz file).
|
85
|
+
*/
|
86
|
+
lzma_vli uncompressed_offset;
|
87
|
+
|
88
|
+
/**
|
89
|
+
* \brief Compressed size of this Stream
|
90
|
+
*
|
91
|
+
* This includes all headers except the possible
|
92
|
+
* Stream Padding after this Stream.
|
93
|
+
*/
|
94
|
+
lzma_vli compressed_size;
|
95
|
+
|
96
|
+
/**
|
97
|
+
* \brief Uncompressed size of this Stream
|
98
|
+
*/
|
99
|
+
lzma_vli uncompressed_size;
|
100
|
+
|
101
|
+
/**
|
102
|
+
* \brief Size of Stream Padding after this Stream
|
103
|
+
*
|
104
|
+
* If it hasn't been set with lzma_index_stream_padding(),
|
105
|
+
* this defaults to zero. Stream Padding is always
|
106
|
+
* a multiple of four bytes.
|
107
|
+
*/
|
108
|
+
lzma_vli padding;
|
109
|
+
|
110
|
+
lzma_vli reserved_vli1;
|
111
|
+
lzma_vli reserved_vli2;
|
112
|
+
lzma_vli reserved_vli3;
|
113
|
+
lzma_vli reserved_vli4;
|
114
|
+
} stream;
|
115
|
+
|
116
|
+
struct {
|
117
|
+
/**
|
118
|
+
* \brief Block number in the file
|
119
|
+
*
|
120
|
+
* The first Block is 1.
|
121
|
+
*/
|
122
|
+
lzma_vli number_in_file;
|
123
|
+
|
124
|
+
/**
|
125
|
+
* \brief Compressed start offset of this Block
|
126
|
+
*
|
127
|
+
* This offset is relative to the beginning of the
|
128
|
+
* lzma_index (i.e. usually the beginning of the .xz file).
|
129
|
+
* Normally this is where you should seek in the .xz file
|
130
|
+
* to start decompressing this Block.
|
131
|
+
*/
|
132
|
+
lzma_vli compressed_file_offset;
|
133
|
+
|
134
|
+
/**
|
135
|
+
* \brief Uncompressed start offset of this Block
|
136
|
+
*
|
137
|
+
* This offset is relative to the beginning of the lzma_index
|
138
|
+
* (i.e. usually the beginning of the .xz file).
|
139
|
+
*
|
140
|
+
* When doing random-access reading, it is possible that
|
141
|
+
* the target offset is not exactly at Block boundary. One
|
142
|
+
* will need to compare the target offset against
|
143
|
+
* uncompressed_file_offset or uncompressed_stream_offset,
|
144
|
+
* and possibly decode and throw away some amount of data
|
145
|
+
* before reaching the target offset.
|
146
|
+
*/
|
147
|
+
lzma_vli uncompressed_file_offset;
|
148
|
+
|
149
|
+
/**
|
150
|
+
* \brief Block number in this Stream
|
151
|
+
*
|
152
|
+
* The first Block is 1.
|
153
|
+
*/
|
154
|
+
lzma_vli number_in_stream;
|
155
|
+
|
156
|
+
/**
|
157
|
+
* \brief Compressed start offset of this Block
|
158
|
+
*
|
159
|
+
* This offset is relative to the beginning of the Stream
|
160
|
+
* containing this Block.
|
161
|
+
*/
|
162
|
+
lzma_vli compressed_stream_offset;
|
163
|
+
|
164
|
+
/**
|
165
|
+
* \brief Uncompressed start offset of this Block
|
166
|
+
*
|
167
|
+
* This offset is relative to the beginning of the Stream
|
168
|
+
* containing this Block.
|
169
|
+
*/
|
170
|
+
lzma_vli uncompressed_stream_offset;
|
171
|
+
|
172
|
+
/**
|
173
|
+
* \brief Uncompressed size of this Block
|
174
|
+
*
|
175
|
+
* You should pass this to the Block decoder if you will
|
176
|
+
* decode this Block. It will allow the Block decoder to
|
177
|
+
* validate the uncompressed size.
|
178
|
+
*/
|
179
|
+
lzma_vli uncompressed_size;
|
180
|
+
|
181
|
+
/**
|
182
|
+
* \brief Unpadded size of this Block
|
183
|
+
*
|
184
|
+
* You should pass this to the Block decoder if you will
|
185
|
+
* decode this Block. It will allow the Block decoder to
|
186
|
+
* validate the unpadded size.
|
187
|
+
*/
|
188
|
+
lzma_vli unpadded_size;
|
189
|
+
|
190
|
+
/**
|
191
|
+
* \brief Total compressed size
|
192
|
+
*
|
193
|
+
* This includes all headers and padding in this Block.
|
194
|
+
* This is useful if you need to know how many bytes
|
195
|
+
* the Block decoder will actually read.
|
196
|
+
*/
|
197
|
+
lzma_vli total_size;
|
198
|
+
|
199
|
+
lzma_vli reserved_vli1;
|
200
|
+
lzma_vli reserved_vli2;
|
201
|
+
lzma_vli reserved_vli3;
|
202
|
+
lzma_vli reserved_vli4;
|
203
|
+
|
204
|
+
const void *reserved_ptr1;
|
205
|
+
const void *reserved_ptr2;
|
206
|
+
const void *reserved_ptr3;
|
207
|
+
const void *reserved_ptr4;
|
208
|
+
} block;
|
209
|
+
|
210
|
+
/*
|
211
|
+
* Internal data which is used to store the state of the iterator.
|
212
|
+
* The exact format may vary between liblzma versions, so don't
|
213
|
+
* touch these in any way.
|
214
|
+
*/
|
215
|
+
union {
|
216
|
+
const void *p;
|
217
|
+
size_t s;
|
218
|
+
lzma_vli v;
|
219
|
+
} internal[6];
|
220
|
+
} lzma_index_iter;
|
221
|
+
|
222
|
+
|
223
|
+
/**
|
224
|
+
* \brief Operation mode for lzma_index_iter_next()
|
225
|
+
*/
|
226
|
+
typedef enum {
|
227
|
+
LZMA_INDEX_ITER_ANY = 0,
|
228
|
+
/**<
|
229
|
+
* \brief Get the next Block or Stream
|
230
|
+
*
|
231
|
+
* Go to the next Block if the current Stream has at least
|
232
|
+
* one Block left. Otherwise go to the next Stream even if
|
233
|
+
* it has no Blocks. If the Stream has no Blocks
|
234
|
+
* (lzma_index_iter.stream.block_count == 0),
|
235
|
+
* lzma_index_iter.block will have undefined values.
|
236
|
+
*/
|
237
|
+
|
238
|
+
LZMA_INDEX_ITER_STREAM = 1,
|
239
|
+
/**<
|
240
|
+
* \brief Get the next Stream
|
241
|
+
*
|
242
|
+
* Go to the next Stream even if the current Stream has
|
243
|
+
* unread Blocks left. If the next Stream has at least one
|
244
|
+
* Block, the iterator will point to the first Block.
|
245
|
+
* If there are no Blocks, lzma_index_iter.block will have
|
246
|
+
* undefined values.
|
247
|
+
*/
|
248
|
+
|
249
|
+
LZMA_INDEX_ITER_BLOCK = 2,
|
250
|
+
/**<
|
251
|
+
* \brief Get the next Block
|
252
|
+
*
|
253
|
+
* Go to the next Block if the current Stream has at least
|
254
|
+
* one Block left. If the current Stream has no Blocks left,
|
255
|
+
* the next Stream with at least one Block is located and
|
256
|
+
* the iterator will be made to point to the first Block of
|
257
|
+
* that Stream.
|
258
|
+
*/
|
259
|
+
|
260
|
+
LZMA_INDEX_ITER_NONEMPTY_BLOCK = 3
|
261
|
+
/**<
|
262
|
+
* \brief Get the next non-empty Block
|
263
|
+
*
|
264
|
+
* This is like LZMA_INDEX_ITER_BLOCK except that it will
|
265
|
+
* skip Blocks whose Uncompressed Size is zero.
|
266
|
+
*/
|
267
|
+
|
268
|
+
} lzma_index_iter_mode;
|
269
|
+
|
270
|
+
|
271
|
+
/**
|
272
|
+
* \brief Calculate memory usage of lzma_index
|
273
|
+
*
|
274
|
+
* On disk, the size of the Index field depends on both the number of Records
|
275
|
+
* stored and how big values the Records store (due to variable-length integer
|
276
|
+
* encoding). When the Index is kept in lzma_index structure, the memory usage
|
277
|
+
* depends only on the number of Records/Blocks stored in the Index(es), and
|
278
|
+
* in case of concatenated lzma_indexes, the number of Streams. The size in
|
279
|
+
* RAM is almost always significantly bigger than in the encoded form on disk.
|
280
|
+
*
|
281
|
+
* This function calculates an approximate amount of memory needed hold
|
282
|
+
* the given number of Streams and Blocks in lzma_index structure. This
|
283
|
+
* value may vary between CPU architectures and also between liblzma versions
|
284
|
+
* if the internal implementation is modified.
|
285
|
+
*/
|
286
|
+
extern LZMA_API(uint64_t) lzma_index_memusage(
|
287
|
+
lzma_vli streams, lzma_vli blocks) lzma_nothrow;
|
288
|
+
|
289
|
+
|
290
|
+
/**
|
291
|
+
* \brief Calculate the memory usage of an existing lzma_index
|
292
|
+
*
|
293
|
+
* This is a shorthand for lzma_index_memusage(lzma_index_stream_count(i),
|
294
|
+
* lzma_index_block_count(i)).
|
295
|
+
*/
|
296
|
+
extern LZMA_API(uint64_t) lzma_index_memused(const lzma_index *i)
|
297
|
+
lzma_nothrow;
|
298
|
+
|
299
|
+
|
300
|
+
/**
|
301
|
+
* \brief Allocate and initialize a new lzma_index structure
|
302
|
+
*
|
303
|
+
* \return On success, a pointer to an empty initialized lzma_index is
|
304
|
+
* returned. If allocation fails, NULL is returned.
|
305
|
+
*/
|
306
|
+
extern LZMA_API(lzma_index *) lzma_index_init(const lzma_allocator *allocator)
|
307
|
+
lzma_nothrow;
|
308
|
+
|
309
|
+
|
310
|
+
/**
|
311
|
+
* \brief Deallocate lzma_index
|
312
|
+
*
|
313
|
+
* If i is NULL, this does nothing.
|
314
|
+
*/
|
315
|
+
extern LZMA_API(void) lzma_index_end(
|
316
|
+
lzma_index *i, const lzma_allocator *allocator) lzma_nothrow;
|
317
|
+
|
318
|
+
|
319
|
+
/**
|
320
|
+
* \brief Add a new Block to lzma_index
|
321
|
+
*
|
322
|
+
* \param i Pointer to a lzma_index structure
|
323
|
+
* \param allocator Pointer to lzma_allocator, or NULL to
|
324
|
+
* use malloc()
|
325
|
+
* \param unpadded_size Unpadded Size of a Block. This can be
|
326
|
+
* calculated with lzma_block_unpadded_size()
|
327
|
+
* after encoding or decoding the Block.
|
328
|
+
* \param uncompressed_size Uncompressed Size of a Block. This can be
|
329
|
+
* taken directly from lzma_block structure
|
330
|
+
* after encoding or decoding the Block.
|
331
|
+
*
|
332
|
+
* Appending a new Block does not invalidate iterators. For example,
|
333
|
+
* if an iterator was pointing to the end of the lzma_index, after
|
334
|
+
* lzma_index_append() it is possible to read the next Block with
|
335
|
+
* an existing iterator.
|
336
|
+
*
|
337
|
+
* \return - LZMA_OK
|
338
|
+
* - LZMA_MEM_ERROR
|
339
|
+
* - LZMA_DATA_ERROR: Compressed or uncompressed size of the
|
340
|
+
* Stream or size of the Index field would grow too big.
|
341
|
+
* - LZMA_PROG_ERROR
|
342
|
+
*/
|
343
|
+
extern LZMA_API(lzma_ret) lzma_index_append(
|
344
|
+
lzma_index *i, const lzma_allocator *allocator,
|
345
|
+
lzma_vli unpadded_size, lzma_vli uncompressed_size)
|
346
|
+
lzma_nothrow lzma_attr_warn_unused_result;
|
347
|
+
|
348
|
+
|
349
|
+
/**
|
350
|
+
* \brief Set the Stream Flags
|
351
|
+
*
|
352
|
+
* Set the Stream Flags of the last (and typically the only) Stream
|
353
|
+
* in lzma_index. This can be useful when reading information from the
|
354
|
+
* lzma_index, because to decode Blocks, knowing the integrity check type
|
355
|
+
* is needed.
|
356
|
+
*
|
357
|
+
* The given Stream Flags are copied into internal preallocated structure
|
358
|
+
* in the lzma_index, thus the caller doesn't need to keep the *stream_flags
|
359
|
+
* available after calling this function.
|
360
|
+
*
|
361
|
+
* \return - LZMA_OK
|
362
|
+
* - LZMA_OPTIONS_ERROR: Unsupported stream_flags->version.
|
363
|
+
* - LZMA_PROG_ERROR
|
364
|
+
*/
|
365
|
+
extern LZMA_API(lzma_ret) lzma_index_stream_flags(
|
366
|
+
lzma_index *i, const lzma_stream_flags *stream_flags)
|
367
|
+
lzma_nothrow lzma_attr_warn_unused_result;
|
368
|
+
|
369
|
+
|
370
|
+
/**
|
371
|
+
* \brief Get the types of integrity Checks
|
372
|
+
*
|
373
|
+
* If lzma_index_stream_flags() is used to set the Stream Flags for
|
374
|
+
* every Stream, lzma_index_checks() can be used to get a bitmask to
|
375
|
+
* indicate which Check types have been used. It can be useful e.g. if
|
376
|
+
* showing the Check types to the user.
|
377
|
+
*
|
378
|
+
* The bitmask is 1 << check_id, e.g. CRC32 is 1 << 1 and SHA-256 is 1 << 10.
|
379
|
+
*/
|
380
|
+
extern LZMA_API(uint32_t) lzma_index_checks(const lzma_index *i)
|
381
|
+
lzma_nothrow lzma_attr_pure;
|
382
|
+
|
383
|
+
|
384
|
+
/**
|
385
|
+
* \brief Set the amount of Stream Padding
|
386
|
+
*
|
387
|
+
* Set the amount of Stream Padding of the last (and typically the only)
|
388
|
+
* Stream in the lzma_index. This is needed when planning to do random-access
|
389
|
+
* reading within multiple concatenated Streams.
|
390
|
+
*
|
391
|
+
* By default, the amount of Stream Padding is assumed to be zero bytes.
|
392
|
+
*
|
393
|
+
* \return - LZMA_OK
|
394
|
+
* - LZMA_DATA_ERROR: The file size would grow too big.
|
395
|
+
* - LZMA_PROG_ERROR
|
396
|
+
*/
|
397
|
+
extern LZMA_API(lzma_ret) lzma_index_stream_padding(
|
398
|
+
lzma_index *i, lzma_vli stream_padding)
|
399
|
+
lzma_nothrow lzma_attr_warn_unused_result;
|
400
|
+
|
401
|
+
|
402
|
+
/**
|
403
|
+
* \brief Get the number of Streams
|
404
|
+
*/
|
405
|
+
extern LZMA_API(lzma_vli) lzma_index_stream_count(const lzma_index *i)
|
406
|
+
lzma_nothrow lzma_attr_pure;
|
407
|
+
|
408
|
+
|
409
|
+
/**
|
410
|
+
* \brief Get the number of Blocks
|
411
|
+
*
|
412
|
+
* This returns the total number of Blocks in lzma_index. To get number
|
413
|
+
* of Blocks in individual Streams, use lzma_index_iter.
|
414
|
+
*/
|
415
|
+
extern LZMA_API(lzma_vli) lzma_index_block_count(const lzma_index *i)
|
416
|
+
lzma_nothrow lzma_attr_pure;
|
417
|
+
|
418
|
+
|
419
|
+
/**
|
420
|
+
* \brief Get the size of the Index field as bytes
|
421
|
+
*
|
422
|
+
* This is needed to verify the Backward Size field in the Stream Footer.
|
423
|
+
*/
|
424
|
+
extern LZMA_API(lzma_vli) lzma_index_size(const lzma_index *i)
|
425
|
+
lzma_nothrow lzma_attr_pure;
|
426
|
+
|
427
|
+
|
428
|
+
/**
|
429
|
+
* \brief Get the total size of the Stream
|
430
|
+
*
|
431
|
+
* If multiple lzma_indexes have been combined, this works as if the Blocks
|
432
|
+
* were in a single Stream. This is useful if you are going to combine
|
433
|
+
* Blocks from multiple Streams into a single new Stream.
|
434
|
+
*/
|
435
|
+
extern LZMA_API(lzma_vli) lzma_index_stream_size(const lzma_index *i)
|
436
|
+
lzma_nothrow lzma_attr_pure;
|
437
|
+
|
438
|
+
|
439
|
+
/**
|
440
|
+
* \brief Get the total size of the Blocks
|
441
|
+
*
|
442
|
+
* This doesn't include the Stream Header, Stream Footer, Stream Padding,
|
443
|
+
* or Index fields.
|
444
|
+
*/
|
445
|
+
extern LZMA_API(lzma_vli) lzma_index_total_size(const lzma_index *i)
|
446
|
+
lzma_nothrow lzma_attr_pure;
|
447
|
+
|
448
|
+
|
449
|
+
/**
|
450
|
+
* \brief Get the total size of the file
|
451
|
+
*
|
452
|
+
* When no lzma_indexes have been combined with lzma_index_cat() and there is
|
453
|
+
* no Stream Padding, this function is identical to lzma_index_stream_size().
|
454
|
+
* If multiple lzma_indexes have been combined, this includes also the headers
|
455
|
+
* of each separate Stream and the possible Stream Padding fields.
|
456
|
+
*/
|
457
|
+
extern LZMA_API(lzma_vli) lzma_index_file_size(const lzma_index *i)
|
458
|
+
lzma_nothrow lzma_attr_pure;
|
459
|
+
|
460
|
+
|
461
|
+
/**
|
462
|
+
* \brief Get the uncompressed size of the file
|
463
|
+
*/
|
464
|
+
extern LZMA_API(lzma_vli) lzma_index_uncompressed_size(const lzma_index *i)
|
465
|
+
lzma_nothrow lzma_attr_pure;
|
466
|
+
|
467
|
+
|
468
|
+
/**
|
469
|
+
* \brief Initialize an iterator
|
470
|
+
*
|
471
|
+
* \param iter Pointer to a lzma_index_iter structure
|
472
|
+
* \param i lzma_index to which the iterator will be associated
|
473
|
+
*
|
474
|
+
* This function associates the iterator with the given lzma_index, and calls
|
475
|
+
* lzma_index_iter_rewind() on the iterator.
|
476
|
+
*
|
477
|
+
* This function doesn't allocate any memory, thus there is no
|
478
|
+
* lzma_index_iter_end(). The iterator is valid as long as the
|
479
|
+
* associated lzma_index is valid, that is, until lzma_index_end() or
|
480
|
+
* using it as source in lzma_index_cat(). Specifically, lzma_index doesn't
|
481
|
+
* become invalid if new Blocks are added to it with lzma_index_append() or
|
482
|
+
* if it is used as the destination in lzma_index_cat().
|
483
|
+
*
|
484
|
+
* It is safe to make copies of an initialized lzma_index_iter, for example,
|
485
|
+
* to easily restart reading at some particular position.
|
486
|
+
*/
|
487
|
+
extern LZMA_API(void) lzma_index_iter_init(
|
488
|
+
lzma_index_iter *iter, const lzma_index *i) lzma_nothrow;
|
489
|
+
|
490
|
+
|
491
|
+
/**
|
492
|
+
* \brief Rewind the iterator
|
493
|
+
*
|
494
|
+
* Rewind the iterator so that next call to lzma_index_iter_next() will
|
495
|
+
* return the first Block or Stream.
|
496
|
+
*/
|
497
|
+
extern LZMA_API(void) lzma_index_iter_rewind(lzma_index_iter *iter)
|
498
|
+
lzma_nothrow;
|
499
|
+
|
500
|
+
|
501
|
+
/**
|
502
|
+
* \brief Get the next Block or Stream
|
503
|
+
*
|
504
|
+
* \param iter Iterator initialized with lzma_index_iter_init()
|
505
|
+
* \param mode Specify what kind of information the caller wants
|
506
|
+
* to get. See lzma_index_iter_mode for details.
|
507
|
+
*
|
508
|
+
* \return If next Block or Stream matching the mode was found, *iter
|
509
|
+
* is updated and this function returns false. If no Block or
|
510
|
+
* Stream matching the mode is found, *iter is not modified
|
511
|
+
* and this function returns true. If mode is set to an unknown
|
512
|
+
* value, *iter is not modified and this function returns true.
|
513
|
+
*/
|
514
|
+
extern LZMA_API(lzma_bool) lzma_index_iter_next(
|
515
|
+
lzma_index_iter *iter, lzma_index_iter_mode mode)
|
516
|
+
lzma_nothrow lzma_attr_warn_unused_result;
|
517
|
+
|
518
|
+
|
519
|
+
/**
|
520
|
+
* \brief Locate a Block
|
521
|
+
*
|
522
|
+
* If it is possible to seek in the .xz file, it is possible to parse
|
523
|
+
* the Index field(s) and use lzma_index_iter_locate() to do random-access
|
524
|
+
* reading with granularity of Block size.
|
525
|
+
*
|
526
|
+
* \param iter Iterator that was earlier initialized with
|
527
|
+
* lzma_index_iter_init().
|
528
|
+
* \param target Uncompressed target offset which the caller would
|
529
|
+
* like to locate from the Stream
|
530
|
+
*
|
531
|
+
* If the target is smaller than the uncompressed size of the Stream (can be
|
532
|
+
* checked with lzma_index_uncompressed_size()):
|
533
|
+
* - Information about the Stream and Block containing the requested
|
534
|
+
* uncompressed offset is stored into *iter.
|
535
|
+
* - Internal state of the iterator is adjusted so that
|
536
|
+
* lzma_index_iter_next() can be used to read subsequent Blocks or Streams.
|
537
|
+
* - This function returns false.
|
538
|
+
*
|
539
|
+
* If target is greater than the uncompressed size of the Stream, *iter
|
540
|
+
* is not modified, and this function returns true.
|
541
|
+
*/
|
542
|
+
extern LZMA_API(lzma_bool) lzma_index_iter_locate(
|
543
|
+
lzma_index_iter *iter, lzma_vli target) lzma_nothrow;
|
544
|
+
|
545
|
+
|
546
|
+
/**
|
547
|
+
* \brief Concatenate lzma_indexes
|
548
|
+
*
|
549
|
+
* Concatenating lzma_indexes is useful when doing random-access reading in
|
550
|
+
* multi-Stream .xz file, or when combining multiple Streams into single
|
551
|
+
* Stream.
|
552
|
+
*
|
553
|
+
* \param dest lzma_index after which src is appended
|
554
|
+
* \param src lzma_index to be appended after dest. If this
|
555
|
+
* function succeeds, the memory allocated for src
|
556
|
+
* is freed or moved to be part of dest, and all
|
557
|
+
* iterators pointing to src will become invalid.
|
558
|
+
* \param allocator Custom memory allocator; can be NULL to use
|
559
|
+
* malloc() and free().
|
560
|
+
*
|
561
|
+
* \return - LZMA_OK: lzma_indexes were concatenated successfully.
|
562
|
+
* src is now a dangling pointer.
|
563
|
+
* - LZMA_DATA_ERROR: *dest would grow too big.
|
564
|
+
* - LZMA_MEM_ERROR
|
565
|
+
* - LZMA_PROG_ERROR
|
566
|
+
*/
|
567
|
+
extern LZMA_API(lzma_ret) lzma_index_cat(lzma_index *dest, lzma_index *src,
|
568
|
+
const lzma_allocator *allocator)
|
569
|
+
lzma_nothrow lzma_attr_warn_unused_result;
|
570
|
+
|
571
|
+
|
572
|
+
/**
|
573
|
+
* \brief Duplicate lzma_index
|
574
|
+
*
|
575
|
+
* \return A copy of the lzma_index, or NULL if memory allocation failed.
|
576
|
+
*/
|
577
|
+
extern LZMA_API(lzma_index *) lzma_index_dup(
|
578
|
+
const lzma_index *i, const lzma_allocator *allocator)
|
579
|
+
lzma_nothrow lzma_attr_warn_unused_result;
|
580
|
+
|
581
|
+
|
582
|
+
/**
|
583
|
+
* \brief Initialize .xz Index encoder
|
584
|
+
*
|
585
|
+
* \param strm Pointer to properly prepared lzma_stream
|
586
|
+
* \param i Pointer to lzma_index which should be encoded.
|
587
|
+
*
|
588
|
+
* The valid `action' values for lzma_code() are LZMA_RUN and LZMA_FINISH.
|
589
|
+
* It is enough to use only one of them (you can choose freely).
|
590
|
+
*
|
591
|
+
* \return - LZMA_OK: Initialization succeeded, continue with lzma_code().
|
592
|
+
* - LZMA_MEM_ERROR
|
593
|
+
* - LZMA_PROG_ERROR
|
594
|
+
*/
|
595
|
+
extern LZMA_API(lzma_ret) lzma_index_encoder(
|
596
|
+
lzma_stream *strm, const lzma_index *i)
|
597
|
+
lzma_nothrow lzma_attr_warn_unused_result;
|
598
|
+
|
599
|
+
|
600
|
+
/**
|
601
|
+
* \brief Initialize .xz Index decoder
|
602
|
+
*
|
603
|
+
* \param strm Pointer to properly prepared lzma_stream
|
604
|
+
* \param i The decoded Index will be made available via
|
605
|
+
* this pointer. Initially this function will
|
606
|
+
* set *i to NULL (the old value is ignored). If
|
607
|
+
* decoding succeeds (lzma_code() returns
|
608
|
+
* LZMA_STREAM_END), *i will be set to point
|
609
|
+
* to a new lzma_index, which the application
|
610
|
+
* has to later free with lzma_index_end().
|
611
|
+
* \param memlimit How much memory the resulting lzma_index is
|
612
|
+
* allowed to require. liblzma 5.2.3 and earlier
|
613
|
+
* don't allow 0 here and return LZMA_PROG_ERROR;
|
614
|
+
* later versions treat 0 as if 1 had been specified.
|
615
|
+
*
|
616
|
+
* Valid `action' arguments to lzma_code() are LZMA_RUN and LZMA_FINISH.
|
617
|
+
* There is no need to use LZMA_FINISH, but it's allowed because it may
|
618
|
+
* simplify certain types of applications.
|
619
|
+
*
|
620
|
+
* \return - LZMA_OK: Initialization succeeded, continue with lzma_code().
|
621
|
+
* - LZMA_MEM_ERROR
|
622
|
+
* - LZMA_PROG_ERROR
|
623
|
+
*
|
624
|
+
* liblzma 5.2.3 and older list also LZMA_MEMLIMIT_ERROR here
|
625
|
+
* but that error code has never been possible from this
|
626
|
+
* initialization function.
|
627
|
+
*/
|
628
|
+
extern LZMA_API(lzma_ret) lzma_index_decoder(
|
629
|
+
lzma_stream *strm, lzma_index **i, uint64_t memlimit)
|
630
|
+
lzma_nothrow lzma_attr_warn_unused_result;
|
631
|
+
|
632
|
+
|
633
|
+
/**
|
634
|
+
* \brief Single-call .xz Index encoder
|
635
|
+
*
|
636
|
+
* \param i lzma_index to be encoded
|
637
|
+
* \param out Beginning of the output buffer
|
638
|
+
* \param out_pos The next byte will be written to out[*out_pos].
|
639
|
+
* *out_pos is updated only if encoding succeeds.
|
640
|
+
* \param out_size Size of the out buffer; the first byte into
|
641
|
+
* which no data is written to is out[out_size].
|
642
|
+
*
|
643
|
+
* \return - LZMA_OK: Encoding was successful.
|
644
|
+
* - LZMA_BUF_ERROR: Output buffer is too small. Use
|
645
|
+
* lzma_index_size() to find out how much output
|
646
|
+
* space is needed.
|
647
|
+
* - LZMA_PROG_ERROR
|
648
|
+
*
|
649
|
+
* \note This function doesn't take allocator argument since all
|
650
|
+
* the internal data is allocated on stack.
|
651
|
+
*/
|
652
|
+
extern LZMA_API(lzma_ret) lzma_index_buffer_encode(const lzma_index *i,
|
653
|
+
uint8_t *out, size_t *out_pos, size_t out_size) lzma_nothrow;
|
654
|
+
|
655
|
+
|
656
|
+
/**
|
657
|
+
* \brief Single-call .xz Index decoder
|
658
|
+
*
|
659
|
+
* \param i If decoding succeeds, *i will point to a new
|
660
|
+
* lzma_index, which the application has to
|
661
|
+
* later free with lzma_index_end(). If an error
|
662
|
+
* occurs, *i will be NULL. The old value of *i
|
663
|
+
* is always ignored and thus doesn't need to be
|
664
|
+
* initialized by the caller.
|
665
|
+
* \param memlimit Pointer to how much memory the resulting
|
666
|
+
* lzma_index is allowed to require. The value
|
667
|
+
* pointed by this pointer is modified if and only
|
668
|
+
* if LZMA_MEMLIMIT_ERROR is returned.
|
669
|
+
* \param allocator Pointer to lzma_allocator, or NULL to use malloc()
|
670
|
+
* \param in Beginning of the input buffer
|
671
|
+
* \param in_pos The next byte will be read from in[*in_pos].
|
672
|
+
* *in_pos is updated only if decoding succeeds.
|
673
|
+
* \param in_size Size of the input buffer; the first byte that
|
674
|
+
* won't be read is in[in_size].
|
675
|
+
*
|
676
|
+
* \return - LZMA_OK: Decoding was successful.
|
677
|
+
* - LZMA_MEM_ERROR
|
678
|
+
* - LZMA_MEMLIMIT_ERROR: Memory usage limit was reached.
|
679
|
+
* The minimum required memlimit value was stored to *memlimit.
|
680
|
+
* - LZMA_DATA_ERROR
|
681
|
+
* - LZMA_PROG_ERROR
|
682
|
+
*/
|
683
|
+
extern LZMA_API(lzma_ret) lzma_index_buffer_decode(lzma_index **i,
|
684
|
+
uint64_t *memlimit, const lzma_allocator *allocator,
|
685
|
+
const uint8_t *in, size_t *in_pos, size_t in_size)
|
686
|
+
lzma_nothrow;
|