VxWorks Reference Manual : Libraries
inflateLib - inflate code using public domain zlib functions
inflate( ) - inflate compressed code
This library is used to inflate a compressed data stream, primarily for boot ROM decompression. Compressed boot ROMs contain a compressed executable in the data segment between the symbols binArrayStart and binArrayEnd (the compressed data is generated by deflate( ) and binToAsm). The boot ROM startup code (in target/src/config/all/bootInit.c) calls inflate( ) to decompress the executable and then jump to it.
This library is based on the public domain zlib code, which has been modified by Wind River Systems. For more information, see the zlib home page at http://quest.jpl.nasa.gov/zlib/.
inflate( ) - inflate compressed code
int inflate ( Byte * src, Byte * dest, int nBytes )
This routine inflates nBytes of data starting at address src. The inflated code is copied starting at address dest. Two sanity checks are performed on the data being decompressed. First, we look for a magic number at the start of the data to verify that it is really a compressed stream. Second, the entire data is optionally checksummed to verify its integrity. By default, the checksum is not verified in order to speed up the booting process. To turn on checksum verification, set the global variable inflateCksum to TRUE in the BSP.
OK or ERROR.