fix compression

This commit is contained in:
2025-02-26 15:09:23 +01:00
parent 68fcd514a3
commit 6a52b7fe2a
5 changed files with 25 additions and 31 deletions

View File

@@ -16,14 +16,7 @@ namespace zlib {
* \param buffer the data to compress
* \return the compressed data
*/
DataBuffer Compress(const DataBuffer& buffer);
/**
* \brief Reads the packet lenght and uncompress it
* \param buffer the data to uncompress
* \return the uncompressed data
*/
DataBuffer Decompress(DataBuffer& buffer);
DataBuffer Compress(const DataBuffer& buffer, std::size_t a_CompressionThreshold = 64);
/**
* \brief Uncompress some data