mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:47:44 +00:00
LibCompress: Move common LZMA end-of-file checks into helper functions
This commit is contained in:
parent
0016f63547
commit
b6f3b2f116
2 changed files with 19 additions and 4 deletions
|
@ -81,6 +81,8 @@ private:
|
|||
MaybeOwned<CircularBuffer> m_dictionary;
|
||||
u64 m_total_decoded_bytes { 0 };
|
||||
bool m_found_end_of_stream_marker { false };
|
||||
bool is_range_decoder_in_clean_state() const;
|
||||
bool has_reached_expected_data_size() const;
|
||||
Optional<u16> m_leftover_match_length;
|
||||
|
||||
// Range decoder state (initialized with stream data in LzmaDecompressor::create).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue