mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-17 21:16:57 +08:00
114 lines
3.8 KiB
HTML
114 lines
3.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<title>Incrementally inflate encoded data</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.inflate-add" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">inflate_add</h1>
|
|
<p class="verinfo">(PHP 7)</p><p class="refpurpose"><span class="refname">inflate_add</span> — <span class="dc-title">Incrementally inflate encoded data</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.inflate-add-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>inflate_add</strong></span>
|
|
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$context</code></span>
|
|
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$encoded_data</code></span>
|
|
[, <span class="methodparam"><span class="type">int</span> <code class="parameter">$flush_mode</code><span class="initializer"> = ZLIB_SYNC_FLUSH</span></span>
|
|
] ) : <span class="type">string</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
Incrementally inflates encoded data in the specified <code class="parameter">context</code>.
|
|
</p>
|
|
<p class="para">
|
|
Limitation: header information from GZIP compressed data are not made
|
|
available.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.inflate-add-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">context</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
A context created with <span class="function"><a href="inflate_init.html" class="function">inflate_init()</a></span>.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">encoded_data</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
A chunk of compressed data.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">flush_mode</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
One of <strong><code>ZLIB_BLOCK</code></strong>,
|
|
<strong><code>ZLIB_NO_FLUSH</code></strong>,
|
|
<strong><code>ZLIB_PARTIAL_FLUSH</code></strong>,
|
|
<strong><code>ZLIB_SYNC_FLUSH</code></strong> (default),
|
|
<strong><code>ZLIB_FULL_FLUSH</code></strong>, <strong><code>ZLIB_FINISH</code></strong>.
|
|
Normally you will want to set <strong><code>ZLIB_NO_FLUSH</code></strong> to
|
|
maximize compression, and <strong><code>ZLIB_FINISH</code></strong> to terminate
|
|
with the last chunk of data. See the <a href="http://www.zlib.net/manual.html" class="link external">» zlib manual</a> for a
|
|
detailed description of these constants.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.inflate-add-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
Returns a chunk of uncompressed data, 或者在失败时返回 <strong><code>FALSE</code></strong>.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 errors" id="refsect1-function.inflate-add-errors">
|
|
<h3 class="title">错误/异常</h3>
|
|
<p class="para">
|
|
If invalid parameters are given, inflating the data requires a preset
|
|
dictionary, but none is specified, the compressed stream is corrupt or has an
|
|
invalid checksum, an error of level <strong><code>E_WARNING</code></strong> is
|
|
generated.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 seealso" id="refsect1-function.inflate-add-seealso">
|
|
<h3 class="title">参见</h3>
|
|
<ul class="simplelist">
|
|
<li class="member"><span class="function"><a href="inflate_init.html" class="function" rel="rdfs-seeAlso">inflate_init()</a> - Initialize an incremental inflate context</span></li>
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
</div></div></div></body></html> |