Changeset 9444 in orxonox.OLD for branches/proxy/src/lib/network/zip.h
- Timestamp:
- Jul 25, 2006, 8:15:01 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/zip.h
r8623 r9444 21 21 22 22 //! A class for compressing/uncompressing packes. 23 class Zip 23 class Zip 24 24 { 25 25 public: … … 27 27 /** @returns a Pointer to the only object of this Class */ 28 28 inline static Zip* getInstance(void) { if (!singletonRef) singletonRef = new Zip(); return singletonRef; }; 29 29 30 30 int loadDictionary( std::string name ); 31 31 int zip( byte * from, int fromLength, byte * to, int maxLength, int dict = 0 ); 32 32 int unZip( byte * from, int fromLength, byte * to, int maxLength ); 33 33 34 34 int getDictCount(){ return dicts.size(); } 35 35 … … 37 37 Zip(); 38 38 static Zip* singletonRef; 39 39 40 40 std::vector<DictionaryEntry> dicts; 41 41 }; 42 42 43 #endif /* _ PROTO_SINGLETON_H */43 #endif /* _ZIP_H */
Note: See TracChangeset
for help on using the changeset viewer.