We often get questions about how the deflate() and inflate() functions should be used. Users wonder when they should provide more input, when they should use more output, what to do with a Z_BUF_ERROR, how to make sure the process terminates properly, and so on. So for those who have read zlib.h (a few times), and would like further edification, below is an annotated example in C of simple routines to compress and decompress from an input file to an output file using deflate() and inflate() respectively. The annotations are interspersed between lines of the code. So please read between the lines. We hope this helps explain some of the intricacies of zlib.
标签: functions questions deflate inflate
上传时间: 2014-01-02
上传用户:zhuyibin
Zlib函数列表 We often get questions about how the deflate() and inflate() functions should be used. Users wonder when they should provide more input, when they should use more output, what to do with a Z_BUF_ERROR, how to make sure the process terminates properly, and so on. So for those who have read zlib.h (a few times), and would like further edification, below is an annotated example in C of simple routines to compress and decompress from an input file to an output file using deflate() and inflate() respectively. The annotations are interspersed between lines of the code. So please read between the lines. We hope this helps explain some of the intricacies of zlib.
标签: functions questions deflate inflate
上传时间: 2014-01-03
上传用户:lhc9102
MSP-FET430P140 Demo - Basic Clock, Output Buffered SMCLK, ACLK and MCLK
标签: Buffered MSP-FET Output Basic
上传时间: 2015-10-10
上传用户:wuyuying
Basic Differential Encoding/Decoding of input vector of numeric values
标签: Differential Decoding Encoding numeric
上传时间: 2013-12-20
上传用户:qiaoyue
KEY INPUT DEBUNCE VERILOG
上传时间: 2014-12-19
上传用户:er1219
Input/Data Acquisition System Design for Human Computer Interfacing
标签: Acquisition Interfacing Computer Design
上传时间: 2013-12-31
上传用户:sardinescn
HDOJ ACM input:The input consists of T test cases. The number of test cases ) (T is given in the first line of the input. Each test case begins with a line containing an integer N , 1<=N<=200 , that represents the number of tables to move. Each of the following N lines contains two positive integers s and t, representing that a table is to move from room number s to room number t (each room number appears at most once in the N lines). From the N+3-rd line, the remaining test cases are listed in the same manner as above.
上传时间: 2015-10-18
上传用户:三人用菜
这是CISS会议上发表的著名论文“Tensor Canonical decomposition based method for blind identification of MIMO system with 3-input 2-output case”的源程序,主要是讲基于张量规范分解的多天线系统的忙识别问题,里边包含了相应的文章,可以一起对照着看。
标签: identification decomposition Canonical Tensor
上传时间: 2015-10-21
上传用户:牛津鞋
Given an positive integer A (1 <= A <= 109), output the lowest bit of A. For example, given A = 26, we can write A in binary form as 11010, so the lowest bit of A is 10, so the output should be 2. Another example goes like this: given A = 88, we can write A in binary form as 1011000, so the lowest bit of A is 1000, so the output should be 8.
标签: A. positive integer example
上传时间: 2014-01-22
上传用户:rocketrevenge
This simulation script set allows for an OFDM transmission to be simulated. Imagetx.m generates the OFDM signal, saving it as a windows WAV file. This allows the OFDM signal to be played out a sound card and recorded back. Imagerx.m decodes the WAV to extract the data. settings.m contains all the common settings to specify all the simulation parameters such as FFT size, number of carriers, input data source file, input and output WAV files, etc.
标签: transmission simulation generates simulated
上传时间: 2013-12-15
上传用户:dyctj