<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.stream.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.stream-set-read-buffer.php',
    1 => 'stream_set_read_buffer',
    2 => 'Set read file buffering on the given stream',
  ),
  'up' => 
  array (
    0 => 'ref.stream.php',
    1 => 'Stream Функції',
  ),
  'prev' => 
  array (
    0 => 'function.stream-set-chunk-size.php',
    1 => 'stream_set_chunk_size',
  ),
  'next' => 
  array (
    0 => 'function.stream-set-timeout.php',
    1 => 'stream_set_timeout',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/stream/functions/stream-set-read-buffer.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.stream-set-read-buffer" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">stream_set_read_buffer</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.3, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">stream_set_read_buffer</span> &mdash; <span class="dc-title">Set read file buffering on the given stream</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.stream-set-read-buffer-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>stream_set_read_buffer</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$stream</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$size</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   Sets the read buffer. It&#039;s the equivalent of <span class="function"><a href="function.stream-set-write-buffer.php" class="function">stream_set_write_buffer()</a></span>,
   but for read operations.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.stream-set-read-buffer-parameters">
  <h3 class="title">Параметри</h3>
  <dl>
   
    <dt><code class="parameter">stream</code></dt>
    <dd>
     <p class="para">
      The file pointer.
     </p>
    </dd>
   
   
    <dt><code class="parameter">size</code></dt>
    <dd>
     <p class="para">
      The number of bytes to buffer. If <code class="parameter">size</code>
      is 0 then read operations are unbuffered.  This ensures that all reads
      with <span class="function"><a href="function.fread.php" class="function">fread()</a></span> are completed before other processes are
      allowed to read from that input stream.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.stream-set-read-buffer-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Returns 0 on success, or another value if the request
   cannot be honored.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.stream-set-read-buffer-seealso">
  <h3 class="title">Прогляньте також</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.stream-set-write-buffer.php" class="function" rel="rdfs-seeAlso">stream_set_write_buffer()</a> - Sets write file buffering on the given stream</span></li>
  </ul>
 </div>

</div><?php manual_footer($setup); ?>