ddnet/src/engine/shared/compression.h

15 lines
615 B
C
Raw Normal View History

2010-11-20 10:37:14 +00:00
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
2010-05-29 07:25:38 +00:00
#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);
2017-09-16 17:30:08 +00:00
static long Compress(const void *pSrc, int Size, void *pDst, int DstSize);
static long Decompress(const void *pSrc, int Size, void *pDst, int DstSize);
2010-05-29 07:25:38 +00:00
};
#endif