00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __GZ_COMPRESS_H__
00024 #define __GZ_COMPRESS_H__
00025
00026 #include "gzTemplates.h"
00027 #include "gzSerialize.h"
00028
00036 GZ_BASE_EXPORT gzBool gzCompress(const gzArray<gzUByte> &from , gzArray<gzUByte> &to, gzDynamicArray<gzUByte> *buffer=NULL);
00037 GZ_BASE_EXPORT gzBool gzUnCompress(const gzArray<gzUByte> &from , gzArray<gzUByte> &to);
00038
00039 GZ_BASE_EXPORT gzBool gzCompress(const gzDynamicArray<gzUByte> &from , gzDynamicArray<gzUByte> &to, gzDynamicArray<gzUByte> *buffer=NULL);
00040 GZ_BASE_EXPORT gzBool gzUnCompress(const gzDynamicArray<gzUByte> &from , gzDynamicArray<gzUByte> &to);
00041
00042 GZ_BASE_EXPORT gzBool gzCompress(const gzUByte *from , gzULong len_in , gzUByte *to , gzULong &len_out);
00043
00044 GZ_BASE_EXPORT gzBool gzUnCompress(const gzUByte *from , gzULong len_in , gzUByte *to , gzULong &len_out);
00045
00047 GZ_BASE_EXPORT gzULong gzCRC32(gzULong crc,const gzUByte *buffer , gzULong len);
00048
00049
00050 #endif // __GZ_COMPRESS_H__