diff options
Diffstat (limited to '')
| -rw-r--r-- | src/common/lz4_compression.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/common/lz4_compression.h b/src/common/lz4_compression.h index 173f9b9ad..088ff5c91 100644 --- a/src/common/lz4_compression.h +++ b/src/common/lz4_compression.h | |||
| @@ -18,7 +18,7 @@ namespace Common::Compression { | |||
| 18 | * | 18 | * |
| 19 | * @return the compressed data. | 19 | * @return the compressed data. |
| 20 | */ | 20 | */ |
| 21 | std::vector<u8> CompressDataLZ4(std::span<const u8> source); | 21 | [[nodiscard]] std::vector<u8> CompressDataLZ4(std::span<const u8> source); |
| 22 | 22 | ||
| 23 | /** | 23 | /** |
| 24 | * Utilizes the LZ4 subalgorithm LZ4HC with the specified compression level. Higher compression | 24 | * Utilizes the LZ4 subalgorithm LZ4HC with the specified compression level. Higher compression |
| @@ -31,7 +31,7 @@ std::vector<u8> CompressDataLZ4(std::span<const u8> source); | |||
| 31 | * | 31 | * |
| 32 | * @return the compressed data. | 32 | * @return the compressed data. |
| 33 | */ | 33 | */ |
| 34 | std::vector<u8> CompressDataLZ4HC(std::span<const u8> source, s32 compression_level); | 34 | [[nodiscard]] std::vector<u8> CompressDataLZ4HC(std::span<const u8> source, s32 compression_level); |
| 35 | 35 | ||
| 36 | /** | 36 | /** |
| 37 | * Utilizes the LZ4 subalgorithm LZ4HC with the highest possible compression level. | 37 | * Utilizes the LZ4 subalgorithm LZ4HC with the highest possible compression level. |
| @@ -40,7 +40,7 @@ std::vector<u8> CompressDataLZ4HC(std::span<const u8> source, s32 compression_le | |||
| 40 | * | 40 | * |
| 41 | * @return the compressed data. | 41 | * @return the compressed data. |
| 42 | */ | 42 | */ |
| 43 | std::vector<u8> CompressDataLZ4HCMax(std::span<const u8> source); | 43 | [[nodiscard]] std::vector<u8> CompressDataLZ4HCMax(std::span<const u8> source); |
| 44 | 44 | ||
| 45 | /** | 45 | /** |
| 46 | * Decompresses a source memory region with LZ4 and returns the uncompressed data in a vector. | 46 | * Decompresses a source memory region with LZ4 and returns the uncompressed data in a vector. |
| @@ -50,6 +50,7 @@ std::vector<u8> CompressDataLZ4HCMax(std::span<const u8> source); | |||
| 50 | * | 50 | * |
| 51 | * @return the decompressed data. | 51 | * @return the decompressed data. |
| 52 | */ | 52 | */ |
| 53 | std::vector<u8> DecompressDataLZ4(const std::vector<u8>& compressed, std::size_t uncompressed_size); | 53 | [[nodiscard]] std::vector<u8> DecompressDataLZ4(const std::vector<u8>& compressed, |
| 54 | std::size_t uncompressed_size); | ||
| 54 | 55 | ||
| 55 | } // namespace Common::Compression \ No newline at end of file | 56 | } // namespace Common::Compression \ No newline at end of file |