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 » InFilterStream::Out() is buggy: a possible bugfix
Re: InFilterStream::Out() is buggy: a possible bugfix [message #56804 is a reply to message #56800] Sat, 17 April 2021 06:27 Go to previous messageGo to previous message
zsolt is currently offline  zsolt
Messages: 698
Registered: December 2005
Location: Budapest, Hungary
Contributor
Zlib uses WhenOut to push the gzip header, so it is missing from the output:
void Zlib::Compress()
{
	Begin();
	if(deflateInit2(&z, compression_level, Z_DEFLATED,
	                hdr && !gzip ? MAX_WBITS : -MAX_WBITS, DEF_MEM_LEVEL,
	                Z_DEFAULT_STRATEGY) != Z_OK)
		Panic("deflateInit2 failed");
	mode = DEFLATE;
	if(gzip)
		WhenOut(sGZip_header, 10);
}

[Updated on: Sat, 17 April 2021 06:29]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Any Example of Inverse a Matrix in U++?
Next Topic: Public access to Argv0__[]
Goto Forum:
  


Current Time: Wed Jun 05 18:05:04 CEST 2024

Total time taken to generate the page: 0.01717 seconds