mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-17 21:16:57 +08:00
110 lines
3.5 KiB
HTML
110 lines
3.5 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>向活跃的哈希运算上下文中填充数据</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.hash-update" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">hash_update</h1>
|
|
<p class="verinfo">(PHP 5 >= 5.1.2, PHP 7, PECL hash >= 1.1)</p><p class="refpurpose"><span class="refname">hash_update</span> — <span class="dc-title">向活跃的哈希运算上下文中填充数据</span></p>
|
|
|
|
</div>
|
|
<div class="refsect1 description" id="refsect1-function.hash-update-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>hash_update</strong></span>
|
|
( <span class="methodparam"><span class="type"><span class="type HashContext">HashContext</span></span> <code class="parameter">$context</code></span>
|
|
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>
|
|
) : <span class="type">bool</span></div>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.hash-update-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<p class="para">
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">context</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
由 <span class="function"><a href="hash_init.html" class="function">hash_init()</a></span> 函数返回的哈希运算上下文。
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">data</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
要向哈希摘要中追加的数据。
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.hash-update-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
返回 <strong><code>TRUE</code></strong>。
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 changelog" id="refsect1-function.hash-update-changelog">
|
|
<h3 class="title">更新日志</h3>
|
|
<p class="para">
|
|
<table class="doctable informaltable">
|
|
|
|
<thead>
|
|
<tr>
|
|
<th>版本</th>
|
|
<th>说明</th>
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody class="tbody">
|
|
<tr>
|
|
<td>7.2.0</td>
|
|
<td>
|
|
接收参数从资源类型修改为 <strong class="classname">HashContext</strong> 对象类型。
|
|
</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 seealso" id="refsect1-function.hash-update-seealso">
|
|
<h3 class="title">参见</h3>
|
|
<p class="para">
|
|
<ul class="simplelist">
|
|
<li class="member"><span class="function"><a href="hash_init.html" class="function" rel="rdfs-seeAlso">hash_init()</a> - 初始化增量哈希运算上下文</span></li>
|
|
<li class="member"><span class="function"><a href="hash_update_file.html" class="function" rel="rdfs-seeAlso">hash_update_file()</a> - 从文件向活跃的哈希运算上下文中填充数据</span></li>
|
|
<li class="member"><span class="function"><a href="hash_update_stream.html" class="function" rel="rdfs-seeAlso">hash_update_stream()</a> - 从打开的流向活跃的哈希运算上下文中填充数据</span></li>
|
|
<li class="member"><span class="function"><a href="hash_final.html" class="function" rel="rdfs-seeAlso">hash_final()</a> - 结束增量哈希,并且返回摘要结果</span></li>
|
|
</ul>
|
|
</p>
|
|
</div>
|
|
|
|
|
|
</div></div></div></body></html> |