mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
LibCompress: Mark some XZ-related variables and functions as const
This commit is contained in:
parent
e9789e9f36
commit
381da77ffb
2 changed files with 33 additions and 33 deletions
|
@ -61,7 +61,7 @@ struct [[gnu::packed]] XzStreamHeader {
|
|||
XzStreamFlags flags;
|
||||
LittleEndian<u32> flags_crc32;
|
||||
|
||||
ErrorOr<void> validate();
|
||||
ErrorOr<void> validate() const;
|
||||
};
|
||||
static_assert(sizeof(XzStreamHeader) == 12);
|
||||
|
||||
|
@ -72,8 +72,8 @@ struct [[gnu::packed]] XzStreamFooter {
|
|||
XzStreamFlags flags;
|
||||
u8 magic[2];
|
||||
|
||||
ErrorOr<void> validate();
|
||||
u32 backward_size();
|
||||
ErrorOr<void> validate() const;
|
||||
u32 backward_size() const;
|
||||
};
|
||||
static_assert(sizeof(XzStreamFooter) == 12);
|
||||
|
||||
|
@ -84,7 +84,7 @@ struct [[gnu::packed]] XzBlockFlags {
|
|||
bool compressed_size_present : 1;
|
||||
bool uncompressed_size_present : 1;
|
||||
|
||||
u8 number_of_filters();
|
||||
u8 number_of_filters() const;
|
||||
};
|
||||
static_assert(sizeof(XzBlockFlags) == 1);
|
||||
|
||||
|
@ -93,8 +93,8 @@ struct [[gnu::packed]] XzFilterLzma2Properties {
|
|||
u8 encoded_dictionary_size : 6;
|
||||
u8 reserved : 2;
|
||||
|
||||
ErrorOr<void> validate();
|
||||
u32 dictionary_size();
|
||||
ErrorOr<void> validate() const;
|
||||
u32 dictionary_size() const;
|
||||
};
|
||||
static_assert(sizeof(XzFilterLzma2Properties) == 1);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue