mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 03:28:19 +00:00
13 lines
397 B
C
13 lines
397 B
C
|
#ifndef ENGINE_SHARED_COMPRESSION_H
|
||
|
#define ENGINE_SHARED_COMPRESSION_H
|
||
|
// variable int packing
|
||
|
class CVariableInt
|
||
|
{
|
||
|
public:
|
||
|
static unsigned char *Pack(unsigned char *pDst, int i);
|
||
|
static const unsigned char *Unpack(const unsigned char *pSrc, int *pInOut);
|
||
|
static long Compress(const void *pSrc, int Size, void *pDst);
|
||
|
static long Decompress(const void *pSrc, int Size, void *pDst);
|
||
|
};
|
||
|
#endif
|