lz4_compression: Make use of std::span

Allows making the incoming data stream non-allocating.
This commit is contained in:
Lioncash 2021-05-24 05:28:45 -04:00
parent 5068279f23
commit 00213377b1
2 changed files with 4 additions and 4 deletions

View file

@ -4,6 +4,7 @@
#pragma once
#include <span>
#include <vector>
#include "common/common_types.h"
@ -53,7 +54,7 @@ namespace Common::Compression {
*
* @return the decompressed data.
*/
[[nodiscard]] std::vector<u8> DecompressDataLZ4(const std::vector<u8>& compressed,
[[nodiscard]] std::vector<u8> DecompressDataLZ4(std::span<const u8> compressed,
std::size_t uncompressed_size);
} // namespace Common::Compression
} // namespace Common::Compression