Last change
on this file since 367 was
367,
checked in by cxsong, 18 years ago
|
added compress/decompress using zlib
|
File size:
289 bytes
|
Line | |
---|
1 | #ifndef _RP_COMPRESSION_ |
---|
2 | #include <iostream> |
---|
3 | #include <vector> |
---|
4 | #include "zlib.h" |
---|
5 | #include "rp_types.h" |
---|
6 | |
---|
7 | using namespace std; |
---|
8 | |
---|
9 | class RpCompressor { |
---|
10 | public: |
---|
11 | static int compress(vector<char>& src, vector<char>& dst); |
---|
12 | static int decompress(vector<char>& src, vector<char>& dst); |
---|
13 | }; |
---|
14 | |
---|
15 | #endif |
---|
16 | |
---|
Note: See
TracBrowser
for help on using the repository browser.