Logo name
Edit Discussion
> ZLIB Inflate

ZLIB Inflate is a member of the OpenG ZIP Tools (oglib_lvzip) library.

Image:ZLIB Inflate.png

Description

Inflates data previously deflated with ZLIB Deflate. "input" is the deflated data string and this vi returns the restored data in "inflated output". In order to return the restored data a buffer needs to be allocated. The user of this routine should have stored the size of the original data outside of the compressed data and provide this size to the "expected length" input. Alternatively if the original size is unknown, leaving that parameter open will initially try with double the input buffer size and then retry 3 times each time doubling the buffer size again. This should work for data compressible up to 94%. Since a new buffer is allocated each time again and the data is decompressed into this buffer each time again, it is a good idea to actually provide the correct buffer size whenever possible to improve performance. This VI uses the ZLIB compression routines.

Returns "Generic Error" (42) when the zlib routine encountered any errors.

Documentation

Download

Edit Discussion
This page was last modified 10:13, 11 May 2008.  This page has been accessed 323 times.  Content is available under Attribution 3.0 Privacy policy  About OpenG  Disclaimers 
Attribution 3.0
IpbWikiMediaWiki