Main Page | Class List | Directories | File List | Class Members

XPCompression.h

00001 /* START_LICENSE_HEADER
00002 
00003 Copyright (C) 2000 Martin Piper, original design and program code
00004 Copyright (C) 2001-2005 Replica Software
00005 
00006 This program file is copyright (C) Replica Software and can only be used under license.
00007 For more information visit: http://www.replicanet.com/
00008 Or email: info@replicanet.com
00009 
00010 END_LICENSE_HEADER */
00011 #ifndef __XPCOMPRESSION_H__
00012 #define __XPCOMPRESSION_H__
00013 
00014 namespace RNReplicaNet
00015 {
00016 
00017 #define _XPCOMPRESSION_VERSION 5000
00018 
00022 class XPCompression
00023 {
00024 public:
00028     XPCompression();
00029 
00033     virtual ~XPCompression();
00034 
00040     int CalculateMaximumMemory(int size);
00041 
00051     bool Compress(void *source_data,int source_length,void *destination_data,int *destination_length,int level = 10);
00052 
00061     bool Decompress(void *source_data,int source_length,void *destination_data,int *destination_length);
00062 
00063 private:
00064 };
00065 
00066 } // namespace RNXPCompression
00067 
00068 #endif

Generated on Sun Oct 30 01:12:27 2005 for XPCompression by  doxygen 1.4.1