Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What easy zlib tutorials are there? [closed]

Tags:

c++

c

zlib

I'm looking for a good tutorial on zlib. I'm interested only in decompressing the archives. I also want to know how I can access a desired file inside an archive, preferably by filename alone, if that can be done in zlib at all.

like image 338
Paul Manta Avatar asked Mar 19 '11 13:03

Paul Manta


People also ask

Is zlib built in Python?

What is Python zlib. The Python zlib library provides a Python interface to the zlib C library, which is a higher-level abstraction for the DEFLATE lossless compression algorithm. The data format used by the library is specified in the RFC 1950 to 1952, which is available at http://www.ietf.org/rfc/rfc1950.txt.

Is zlib lossless?

zlib is a free, open source software library for lossless data compression and decompression . It was written by Jean-loup Gailly (compression) and Mark Adler (decompression), in C language. The first version of zlib was released in May 1995.


1 Answers

Well there are many zlib articles , tips and tutorials. Some of them are

1) Bobobobo's Blog

Website: http://bobobobo.wordpress.com/2008/02/23/how-to-use-zlib/

This article basically tells you how to use zlib, and there is a snippet of code that will get you going. This project shows you how to use zlib. Its a console project, because there's no need to create a window to demonstrate use of zlib.

2) zlib: Add Industrial Strength Compression to Your C/C++ Apps

Website: https://www.codeguru.com/cplusplus/zlib-add-industrial-strength-compression-to-your-c-c-apps/

For simplicity's sake, this tutorial covers only the basic C-style interface. All the concepts inherent there will be relevant to most other bindings. Since its in C language, it will be most beneficial to your requirements.

Last, you can use this too available in zlib ... Zlib contains them. Have a look in the manual under "Utility Functions".

ZEXTERN int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen,                                    const Bytef *source, uLong sourceLen)); 
like image 60
Muhammad Shahab Avatar answered Sep 29 '22 21:09

Muhammad Shahab