📄 inflatelib.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/inflateLib.html - generated by refgen from inflateLib.c --> <title> inflateLib </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.htm"><i>VxWorks API Reference : OS Libraries</i></a></p></blockquote><h1>inflateLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>inflateLib</strong> - inflate code using public domain zlib functions </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><a href="./inflateLib.html#inflate">inflate</a>( )</b> - inflate compressed code<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library is used to inflate a compressed data stream, primarilyfor boot ROM decompression.Compressed boot ROMs contain a compressed executable in the data segmentbetween the symbols <b>binArrayStart</b> and <b>binArrayEnd</b> (the compresseddata is generated by <b>deflate( )</b> and <b><a href="../../tornado/hutils/binToAsm.html#top" >binToAsm</a></b>).The boot ROM startup code (in <b>target/src/config/all/bootInit.c</b>) calls<b><a href="./inflateLib.html#inflate">inflate</a>( )</b> to decompress the executable and then jump to it.<p>This library is based on the public domain zlib code, which has beenmodified by Wind River Systems. For more information, seethe zlib home page at <b><a href="http://www.gzip.org/zlib/">http://www.gzip.org/zlib/</a></b>.<p><hr><a name="inflate"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>inflate( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>inflate( )</strong> - inflate compressed code</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int inflate ( Byte * src, Byte * dest, int nBytes )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine inflates <i>nBytes</i> of data starting at address <i>src</i>.The inflated code is copied starting at address <i>dest</i>.Two sanity checks are performed on the data being decompressed.First, we look for a magic number at the start of the data toverify that it is really a compressed stream.Second, the entire data is optionally checksummed to verify itsintegrity. By default, the checksum is not verified in order tospeed up the booting process. To turn on checksum verification,set the global variable <b>inflateCksum</b> to TRUE in the BSP.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./inflateLib.html#top">inflateLib</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -