![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
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 00017 namespace RakNet 00018 { 00019 00021 class RAK_DLL_EXPORT DataCompressor 00022 { 00023 public: 00024 // GetInstance() and DestroyInstance(instance*) 00025 STATIC_FACTORY_DECLARATIONS(DataCompressor) 00026 00027 static void Compress( unsigned char *userData, unsigned sizeInBytes, RakNet::BitStream * output ); 00028 static unsigned DecompressAndAllocate( RakNet::BitStream * input, unsigned char **output ); 00029 }; 00030 00031 } // namespace RakNet 00032 00033 #endif
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.