• Zlib library是一个通用的数据压缩库兼容的gzip格式。 代码线是安全的,假定的标准图书馆y功能,使用的是线的安全,例如存分配程序。 它提供存储器的压缩解压功能,包括完整性检查的未压缩的数据。

    压缩可以在一个单一的步骤,如果在缓冲区是足够大,或可以通过反复呼吁的压缩的功能。 在后一种情况下,申请必须提供更多的投入和/或消费的产出(提供更多的产出空间)之前,每个电话。

    图书馆还支持阅读和书写的文件gzip(1)(用。gz),用于垫与接口相似的stdio的。 图书馆没有安装任何信号处理程序。 解码器检查的一致性所压缩的数据,所以图书馆y应该永远不会崩溃,甚至在这种情况下的损坏的输入。

  • के Zlib पुस्तकालय है एक सामान्य प्रयोजन डेटा संपीड़न पुस्तकालय के साथ संगत gzip स्वरूप है । कोड धागा सुरक्षित है, यह सोचते हैं कि मानक librar y कार्यों के लिए इस्तेमाल किया कर रहे हैं धागा सुरक्षित है, इस तरह के रूप में स्मृति आवंटन दिनचर्या है । यह प्रदान करता है में स्मृति संपीड़न और decompression के कार्यों सहित, अखंडता चेक के असम्पीडित डेटा.

    संपीड़न किया जा सकता है एक ही चरण में अगर बफ़र्स काफी बड़े हैं या द्वारा किया जा सकता है दोहराया कॉल के संपीड़न समारोह के साथ । उत्तरार्द्ध मामले में, आवेदन प्रदान करना चाहिए और अधिक इनपुट और/या उपभोग के उत्पादन में (और अधिक उपलब्ध कराने के उत्पादन अंतरिक्ष), प्रत्येक फोन से पहले.

    पुस्तकालय भी समर्थन करता है पढ़ने और लिखने में फ़ाइलों gzip(1) (.gz) के लिए चटाई के साथ एक इंटरफेस करने के लिए इसी तरह की है कि stdio. पुस्तकालय स्थापित नहीं है किसी भी संकेत हैंडलर है । डिकोडर जांच की स्थिरता संकुचित डेटा, तो librar y कभी नहीं करना चाहिए दुर्घटना के मामले में भी भ्रष्ट इनपुट.

  • The Zlib library is a general purpose data compression library compatible with the gzip format. The code is thread safe, assuming that the standard librar y functions used are thread safe, such as memory allocation routines. It provides in-memory compression and decompression functions, including integrity checks of the uncompressed data.

    Compression can be done in a single step if the buffers are large enough or can be done by repeated calls of the compression function. In the latter case, the application must provide more input and/or consume the output (providing more output space) before each call.

    The library also supports reading and writing files in gzip(1) (.gz) for mat with an interface similar to that of stdio. The library does not install any signal handler. The decoder checks the consistency of the compressed data, so the librar y should never crash even in the case of corrupted input.