|Linux Standard Base PDA Specification 3.0RC1|
|<<< Previous||Next >>>|
The uncompress() function shall attempt to uncompress sourceLen bytes of data in the buffer source, placing the result in the buffer dest.
On entry, destLen should point to a value describing the size of the dest buffer. The application should ensure that this value is large enough to hold the entire uncompressed data.
Note: The LSB does not describe any mechanism by which a compressor can communicate the size required to the uncompressor.
On success, uncompress() shall return Z_OK. Otherwise, uncompress() shall return a value to indicate the error.
On error, uncompress() shall return a value as described below:
The buffer dest was not large enough to hold the uncompressed data.
The compressed data (referenced by source) was corrupted.
|<<< Previous||Home||Next >>>|