mirror of
https://github.com/Squareville/TestEventServer.git
synced 2025-12-31 16:33:58 -06:00
Added ZLIB for Windows. Packets for character creation are now compressed on windows before sending and ZCompression can now be used on Windows.
13 lines
313 B
C++
13 lines
313 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
namespace ZCompression {
|
|
int32_t GetMaxCompressedLength(int32_t nLenSrc);
|
|
|
|
int32_t Compress(const uint8_t* abSrc, int32_t nLenSrc, uint8_t* abDst, int32_t nLenDst);
|
|
|
|
int32_t Decompress(const uint8_t* abSrc, int32_t nLenSrc, uint8_t* abDst, int32_t nLenDst, int32_t& nErr);
|
|
}
|
|
|