diff options
Diffstat (limited to 'src/liblzma/common/index.h')
-rw-r--r-- | src/liblzma/common/index.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/liblzma/common/index.h b/src/liblzma/common/index.h index 9f177b1b..64e97247 100644 --- a/src/liblzma/common/index.h +++ b/src/liblzma/common/index.h @@ -28,6 +28,12 @@ extern uint32_t lzma_index_padding_size(const lzma_index *i); +/// Set for how many Records to allocate memory the next time +/// lzma_index_append() needs to allocate space for a new Record. +/// This is used only by the Index decoder. +extern void lzma_index_prealloc(lzma_index *i, lzma_vli records); + + /// Round the variable-length integer to the next multiple of four. static inline lzma_vli vli_ceil4(lzma_vli vli) |