1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:27:35 +00:00

LibCompress: Make LzmaHeader a POD-like type

This allows us to initialize the struct using an aggregate initializer.
This commit is contained in:
Tim Schumacher 2023-05-01 13:38:04 +02:00 committed by Andreas Kling
parent 440d8f908f
commit 4a37bac374
2 changed files with 7 additions and 8 deletions

View file

@ -41,10 +41,9 @@ struct [[gnu::packed]] LzmaHeader {
static ErrorOr<LzmaModelProperties> decode_model_properties(u8 input_bits);
private:
u8 m_encoded_model_properties;
u32 m_dictionary_size;
u64 m_uncompressed_size;
u8 encoded_model_properties;
u32 unchecked_dictionary_size;
u64 encoded_uncompressed_size;
};
static_assert(sizeof(LzmaHeader) == 13);