diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2008-12-01 22:58:22 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2008-12-01 22:58:22 +0200 |
commit | c596fda40b62fe1683d0ac34d0c673dcaae2aa15 (patch) | |
tree | 1b099c2513d78705262672c25cf4cd4de01a84f7 /src/liblzma/lzma/lzma_decoder.h | |
parent | Added the changes for Delta filter that should have been (diff) | |
download | xz-c596fda40b62fe1683d0ac34d0c673dcaae2aa15.tar.xz |
Make the memusage functions of LZMA1 and LZMA2 decoders
to validate the filter options.
Diffstat (limited to '')
-rw-r--r-- | src/liblzma/lzma/lzma_decoder.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/liblzma/lzma/lzma_decoder.h b/src/liblzma/lzma/lzma_decoder.h index 3792f452..133d2608 100644 --- a/src/liblzma/lzma/lzma_decoder.h +++ b/src/liblzma/lzma/lzma_decoder.h @@ -49,6 +49,11 @@ extern bool lzma_lzma_lclppb_decode( extern lzma_ret lzma_lzma_decoder_create( lzma_lz_decoder *lz, lzma_allocator *allocator, const void *opt, size_t *dict_size); + +/// Gets memory usage without validating lc/lp/pb. This is used by LZMA2 +/// decoder, because raw LZMA2 decoding doesn't need lc/lp/pb. +extern uint64_t lzma_lzma_decoder_memusage_nocheck(const void *options); + #endif #endif |