mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 05:26:57 +08:00
81 lines
2.5 KiB
HTML
81 lines
2.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.stream-set-chunk-size" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">stream_set_chunk_size</h1>
|
|
<p class="verinfo">(PHP 5 >= 5.4.0, PHP 7)</p><p class="refpurpose"><span class="refname">stream_set_chunk_size</span> — <span class="dc-title">设置资源流区块大小</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.stream-set-chunk-size-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>stream_set_chunk_size</strong></span>
|
|
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$fp</code></span>
|
|
, <span class="methodparam"><span class="type">int</span> <code class="parameter">$chunk_size</code></span>
|
|
) : <span class="type">int</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
设置资源流区块大小。
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.stream-set-chunk-size-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">fp</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
目标资源流。
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">chunk_size</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
想设置的新的区块大小。
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.stream-set-chunk-size-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
成功的情况下返回资源流之前的区块大小。
|
|
</p>
|
|
<p class="para">
|
|
如果 <code class="parameter">chunk_size</code> 比 1 小或者比 <strong><code>PHP_INT_MAX</code></strong> 还大,就将返回 <strong><code>FALSE</code></strong> 。
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 errors" id="refsect1-function.stream-set-chunk-size-errors">
|
|
<h3 class="title">错误/异常</h3>
|
|
<p class="para">
|
|
当 <code class="parameter">chunk_size</code> 比 1 小或者比 <strong><code>PHP_INT_MAX</code></strong> 还大的时候将会产生一个 <strong><code>E_WARNING</code></strong> 级别的错误。
|
|
</p>
|
|
</div>
|
|
|
|
|
|
</div></div></div></body></html> |