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 » U++ Library support » U++ Core » GZDecompress bug
Re: GZDecompress bug [message #22761 is a reply to message #22694] Wed, 12 August 2009 04:34 Go to previous messageGo to previous message
Novo is currently offline  Novo
Messages: 1430
Registered: December 2006
Ultimate Contributor
luzr wrote on Wed, 05 August 2009 14:21

Sorry about that. I hope to add docs soon.

Just a little note (for future ?), if I would like to give size to
out, I would use this signature:

int GZDecompress(Stream& out, int size, Stream& in, Gate2<int, int> progress)


I believe we are quite consistent with that...

Mirek



IMO the "out_size" name would be more informative.
At least you would know that it is related to "out".

I figured out how to reserve memory with StringStream.
StringStream strm;
String s;

s.Reserve(512);
strm.Open(s);


It looks like that should work, thought I'd prefer syntax below.
StringStream strm(String().Reserve(512));



Regards,
Novo
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Environment variables code page
Next Topic: ConvertInt > templatable Convert<T>
Goto Forum:
  


Current Time: Wed May 14 16:54:10 CEST 2025

Total time taken to generate the page: 0.01646 seconds