Home » Community » U++ community news and announcements » Core: z.h improvements
Core: z.h improvements [message #41452] |
Wed, 18 December 2013 20:33 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
Streaming functions in z.h were refactored to allow 64bit sizes:
int64 ZCompress(Stream& out, Stream& in, int64 size, Gate2<int64, int64> progress = false);
int64 ZCompress(Stream& out, Stream& in, Gate2<int64, int64> progress = false);
String ZCompress(const void *data, int64 len, Gate2<int64, int64> progress = false);
String ZCompress(const String& s, Gate2<int64, int64> progress = false);
int64 ZDecompress(Stream& out, Stream& in, int64 size, Gate2<int64, int64> progress = false);
int64 ZDecompress(Stream& out, Stream& in, Gate2<int64, int64> progress = false);
String ZDecompress(const void *data, int64 len, Gate2<int64, int64> progress = false);
String ZDecompress(const String& s, Gate2<int64, int64> progress = false);
int64 GZCompress(Stream& out, Stream& in, int64 size, Gate2<int64, int64> progress = false);
int64 GZCompress(Stream& out, Stream& in, Gate2<int64, int64> progress = false);
String GZCompress(const void *data, int len, Gate2<int64, int64> progress = false);
String GZCompress(const String& s, Gate2<int64, int64> progress = false);
int64 GZDecompress(Stream& out, Stream& in, int64 size, Gate2<int64, int64> progress = false);
int64 GZDecompress(Stream& out, Stream& in, Gate2<int64, int64> progress = false);
String GZDecompress(const void *data, int len, Gate2<int64, int64> progress = false);
String GZDecompress(const String& s, Gate2<int64, int64> progress = false);
There are also new functions to handle files:
bool GZCompressFile(const char *dstfile, const char *srcfile, Gate2<int64, int64> progress = false);
bool GZCompressFile(const char *srcfile, Gate2<int64, int64> progress = false);
bool GZDecompressFile(const char *dstfile, const char *srcfile, Gate2<int64, int64> progress = false);
bool GZDecompressFile(const char *srcfile, Gate2<int64, int64> progress = false);
|
|
|
Goto Forum:
Current Time: Thu Apr 18 11:48:53 CEST 2024
Total time taken to generate the page: 0.02382 seconds
|