diff --git a/includes/hex/dec.pat b/includes/hex/dec.pat index 7250fc7..7682de4 100644 --- a/includes/hex/dec.pat +++ b/includes/hex/dec.pat @@ -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); + }; } \ No newline at end of file diff --git a/includes/std/math.pat b/includes/std/math.pat index d95f466..5c1e8b0 100644 --- a/includes/std/math.pat +++ b/includes/std/math.pat @@ -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 };