#pragma once

/**
 * \file Compression.h
 * \brief File containing compress utilities
 */

#include "DataBuffer.h"

/**
 * \brief Compress some data
 * \param buffer the data to compress
 * \return the compressed data
 */
DataBuffer Compress(const DataBuffer& buffer);

/**
 * \brief Uncompress some data
 * \param buffer the data to uncompress
 * \param packetLength lenght of data
 * \return the uncompressed data
 */
DataBuffer Decompress(DataBuffer& buffer, std::uint64_t packetLength);
