Podmiana LZ4 na ZSTD raw block. Podmiana CompressManager na ChunkManager
This commit is contained in:
parent
00d4b00209
commit
b3c317c914
10 changed files with 244 additions and 267 deletions
|
|
@ -137,24 +137,24 @@ bool ExtractCargo::HashValid(const std::vector<char>& data, const uint64_t& crc)
|
|||
//-----------------------------------------------------------------------------
|
||||
// Magiczna funkcja do dekompresji i deszyfracji danych
|
||||
//-----------------------------------------------------------------------------
|
||||
void ExtractCargo::computingBytes(const std::vector<char>& input, std::vector<char>& output, const int8_t& flag)
|
||||
void ExtractCargo::computingBytes(const std::vector<char>& input, std::vector<char>& output, const int16_t& flag)
|
||||
{
|
||||
CompressingManager cm;
|
||||
|
||||
CompressingManager cm(eman);
|
||||
|
||||
switch (flag)
|
||||
{
|
||||
case 1:
|
||||
output = cm.decompress(input);
|
||||
output = cm.decompress(input, false);
|
||||
break;
|
||||
|
||||
|
||||
case 2:
|
||||
output = eman.decrypt(input);
|
||||
break;
|
||||
|
||||
|
||||
case 3:
|
||||
output = cm.decompress(eman.decrypt(input));
|
||||
output = cm.decompress(input, false);
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
output = input;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue