mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-19 19:53:56 +00:00
removed 'CHUNK' macro from global namespace
This commit is contained in:
@@ -58,7 +58,7 @@ namespace utils::compression
|
||||
|
||||
int ret{};
|
||||
size_t offset = 0;
|
||||
static thread_local uint8_t dest[CHUNK] = {0};
|
||||
static thread_local uint8_t dest[ZCHUNK_SIZE] = {0};
|
||||
auto& stream = stream_container.get();
|
||||
|
||||
do
|
||||
|
||||
@@ -4,12 +4,11 @@
|
||||
#include <vector>
|
||||
#include <cstdint>
|
||||
|
||||
#define CHUNK 16384u
|
||||
|
||||
namespace utils::compression
|
||||
{
|
||||
namespace zlib
|
||||
{
|
||||
constexpr unsigned int ZCHUNK_SIZE = 16384u;
|
||||
std::vector<std::uint8_t> compress(const std::vector<std::uint8_t>& data);
|
||||
std::vector<std::uint8_t> decompress(const std::vector<std::uint8_t>& data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user