]> git.ipfire.org Git - thirdparty/xz.git/commit
liblzma: Add lzma_index_iter_locate_block()
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 23 May 2025 11:38:49 +0000 (14:38 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 1 Oct 2025 10:05:09 +0000 (13:05 +0300)
commita94cce6e33925f6e2152ebb507f5b078a4d1ba4b
treec44e8cd0d3f455695ae8337a44480712373c6952
parent0f27c093f5513170ef7455324f78e436c02a22e9
liblzma: Add lzma_index_iter_locate_block()

It locates a Block using the Block number in the .xz file.
The first Block is 1.

Now there are two functions to locate a Block:
  - lzma_index_iter_locate() uses uncompressed offset.
  - lzma_index_iter_locate_block() uses Block number.
src/liblzma/api/lzma/index.h
src/liblzma/common/index.c
src/liblzma/liblzma_generic.map
src/liblzma/liblzma_linux.map