U++ framework
Do not panic. Ask here before giving up.

Home » Community » U++ community news and announcements » Core: z.h improvements
Core: z.h improvements [message #41452] Wed, 18 December 2013 20:33
mirek is currently offline  mirek
Messages: 14290
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);
 
Read Message
Previous Topic: NanoStrings, Fixed maps
Next Topic: POSIX debugging of console apps improved
Goto Forum:
  


Current Time: Tue Apr 28 14:59:54 GMT+2 2026

Total time taken to generate the page: 0.00673 seconds