Click here to Skip to main content
15,913,282 members
Everything / ZLib

ZLib

ZLib

Great Reads

by Alberto M.
Zlib compress / decompress implementation using .NET 4.5.1, with no external DLLs

Latest Articles

by Alberto M.
Zlib compress / decompress implementation using .NET 4.5.1, with no external DLLs

All Articles

Sort by Score

ZLib 

26 Mar 2017 by Member 11405465
I'm working on an application which transfers huge data from server (Web API) to client (JavaScript) which takes some time over the network. So we decided to go with compression in server and decompression in client. I have used Zlib for .NET to compress my file. Below is the code which I have...
12 Apr 2018 by Member 12765642
How i can get the crc32 of a ULONGLONG using zlib? What I have tried: char * token; char * getcrc(ULONGLONG var) { unsigned long crc = crc32(0, (const Bytef*)&var, sizeof(__int64)); token = new char[1000]; sprintf(token, "CRC: %u", crc); return token; }
12 Apr 2018 by Jochen Arndt
It should work the way you are doing it. All you have to do is including zlib.h and linking your application with the zlib library. To be correct you should use the same type for the length: sizeof(ULONGLONG).
16 Feb 2018 by Alberto M.
Zlib compress / decompress implementation using .NET 4.5.1, with no external DLLs