Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 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);
 
Read Message
Previous Topic: NanoStrings, Fixed maps
Next Topic: POSIX debugging of console apps improved
Goto Forum:
  


Current Time: Tue Apr 16 10:09:19 CEST 2024

Total time taken to generate the page: 0.04778 seconds