00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 #ifndef __DATA_COMPRESSOR_H 00011 #define __DATA_COMPRESSOR_H 00012 00013 #include "RakMemoryOverride.h" 00014 #include "DS_HuffmanEncodingTree.h" 00015 #include "Export.h" 00016 00018 class RAK_DLL_EXPORT DataCompressor 00019 { 00020 public: 00021 static void Compress( unsigned char *userData, unsigned sizeInBytes, RakNet::BitStream * output ); 00022 static unsigned DecompressAndAllocate( RakNet::BitStream * input, unsigned char **output ); 00023 }; 00024 00025 #endif