includes/std: Added hex::dec::lz4_decompress()

This commit is contained in:
WerWolv
2024-07-07 15:51:38 +02:00
parent 23b3c2b5d0
commit 4299243e95
2 changed files with 13 additions and 2 deletions

View File

@@ -60,5 +60,16 @@ namespace auto hex::dec {
fn zstd_decompress(ref auto pattern, std::mem::Section section) {
return builtin::hex::dec::zstd_decompress(pattern, section);
};
/**
Decompresses the bytes of a pattern into a section using the lz4 algorithm
@param pattern The pattern whose bytes should be decompressed
@param section The section to decompress the data into
@param frame Whether the data is framed or not
@return true if successful, false otherwise
*/
fn lz4_decompress(ref auto pattern, std::mem::Section section, bool frame = true) {
return builtin::hex::dec::lz4_decompress(pattern, section, frame);
};
}

View File

@@ -317,8 +317,8 @@ namespace auto std::math {
*/
enum AccumulateOperation : u8 {
Add = 0,
Multiply = 1,
Modulo = 2,
Multiply = 1,
Modulo = 2,
Min = 3,
Max = 4
};