ReplicaNet and RNLobby  1
XPCompression.h
1 /* START_LICENSE_HEADER
2 
3 Copyright (C) 2000 Martin Piper, original design and program code
4 Copyright (C) 2001 Replica Software
5 
6 This program file is copyright (C) Replica Software and can only be used under license.
7 For more information visit: http://www.replicanet.com/
8 Or email: info@replicanet.com
9 
10 END_LICENSE_HEADER */
11 #include "RNPlatform/Inc/MemoryTracking.h"
12 #ifndef __XPCOMPRESSION_H__
13 #define __XPCOMPRESSION_H__
14 
15 namespace RNReplicaNet
16 {
17 
18 #define _XPCOMPRESSION_VERSION 5100
19 
24 {
25 public:
29  XPCompression();
30 
34  virtual ~XPCompression();
35 
41  int CalculateMaximumMemory(int size);
42 
52  bool Compress(void *source_data,int source_length,void *destination_data,int *destination_length,int level = 10);
53 
63  bool Decompress(void *source_data,int source_length,void *destination_data,int *destination_length,int max_buffer_size);
64 
65 private:
66 };
67 
68 } // namespace RNReplicaNet
69 
70 #endif
int CalculateMaximumMemory(int size)
bool Compress(void *source_data, int source_length, void *destination_data, int *destination_length, int level=10)
Definition: XPCompression.h:23
bool Decompress(void *source_data, int source_length, void *destination_data, int *destination_length, int max_buffer_size)