summaryrefslogtreecommitdiffstats
path: root/src/common/lz4_compression.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-05-24 11:28:45 +0200
committerLioncash <mathew1800@gmail.com>2021-05-24 21:00:59 +0200
commit00213377b1b09fadce55cc3e3562adb5c4d1e1c4 (patch)
treeb5a8416fe37c9c78bfb2be53284ce8012df09014 /src/common/lz4_compression.cpp
parentMerge pull request #6248 from A-w-x/intelmesa (diff)
downloadyuzu-00213377b1b09fadce55cc3e3562adb5c4d1e1c4.tar
yuzu-00213377b1b09fadce55cc3e3562adb5c4d1e1c4.tar.gz
yuzu-00213377b1b09fadce55cc3e3562adb5c4d1e1c4.tar.bz2
yuzu-00213377b1b09fadce55cc3e3562adb5c4d1e1c4.tar.lz
yuzu-00213377b1b09fadce55cc3e3562adb5c4d1e1c4.tar.xz
yuzu-00213377b1b09fadce55cc3e3562adb5c4d1e1c4.tar.zst
yuzu-00213377b1b09fadce55cc3e3562adb5c4d1e1c4.zip
Diffstat (limited to '')
-rw-r--r--src/common/lz4_compression.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/lz4_compression.cpp b/src/common/lz4_compression.cpp
index 25700015a..dbb40da7c 100644
--- a/src/common/lz4_compression.cpp
+++ b/src/common/lz4_compression.cpp
@@ -59,8 +59,7 @@ std::vector<u8> CompressDataLZ4HCMax(const u8* source, std::size_t source_size)
return CompressDataLZ4HC(source, source_size, LZ4HC_CLEVEL_MAX);
}
-std::vector<u8> DecompressDataLZ4(const std::vector<u8>& compressed,
- std::size_t uncompressed_size) {
+std::vector<u8> DecompressDataLZ4(std::span<const u8> compressed, std::size_t uncompressed_size) {
std::vector<u8> uncompressed(uncompressed_size);
const int size_check = LZ4_decompress_safe(reinterpret_cast<const char*>(compressed.data()),
reinterpret_cast<char*>(uncompressed.data()),