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

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: 1432
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: Tue Jun 23 21:30:57 GMT+2 2026

Total time taken to generate the page: 0.00743 seconds