ddnet/src/engine/shared/compression.h
2010-05-29 07:25:38 +00:00

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