]> 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>
Fri, 23 May 2025 11:38:49 +0000 (14:38 +0300)
commit7d57eb2526df2e285bdf51c38099afec04f20be8
tree65279b4e31993b675d0dda918a90519aacfa5ae0
parent1e26b7671d37e0f61f4d6173fb5b1f2de9398b54
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