<?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 => 'es',
  ),
  'this' => 
  array (
    0 => 'function.stream-set-chunk-size.php',
    1 => 'stream_set_size',
    2 => 'Cambia el tama&ntilde;o del segmento del flujo',
  ),
  'up' => 
  array (
    0 => 'ref.stream.php',
    1 => 'Funciones de Flujos',
  ),
  'prev' => 
  array (
    0 => 'function.stream-set-blocking.php',
    1 => 'stream_set_blocking',
  ),
  'next' => 
  array (
    0 => 'function.stream-set-read-buffer.php',
    1 => 'stream_set_read_buffer',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'es',
    'path' => 'reference/stream/functions/stream-set-chunk-size.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.stream-set-chunk-size" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">stream_set_size</h1>
  <p class="verinfo">(No version information available, might only be in Git)</p><p class="refpurpose"><span class="refname">stream_set_size</span> &mdash; <span class="dc-title">Cambia el tamaño del segmento del flujo</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.stream-set-chunk-size-description">
  <h3 class="title">Descripción</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>stream_set_size</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">
   Cambia el tamaño del segmento del flujo.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.stream-set-chunk-size-parameters">
  <h3 class="title">Parámetros</h3>
  <dl>
   
    <dt><code class="parameter">stream</code></dt>
    <dd>
     <p class="para">
      El flujo en cuestión.
     </p>
    </dd>
   
   
    <dt><code class="parameter">size</code></dt>
    <dd>
     <p class="para">
      El nuevo tamaño de segmento deseado.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.stream-set-chunk-size-returnvalues">
  <h3 class="title">Valores devueltos</h3>
  <p class="para">
   Devuelve el tamaño anterior del segmento en caso de éxito.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.stream-set-chunk-size-errors">
  <h3 class="title">Errores/Excepciones</h3>
  <p class="para">
   Se lanza un <span class="classname"><a href="class.valueerror.php" class="classname">ValueError</a></span> si <code class="parameter">size</code>
   es inferior a 1 o mayor que <strong><code><a href="reserved.constants.php#constant.php-int-max">PHP_INT_MAX</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.stream-set-chunk-size-changelog">
  <h3 class="title">Historial de cambios</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Versión</th>
       <th>Descripción</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.0.0</td>
       <td>
        Ahora se lanza un <span class="classname"><a href="class.valueerror.php" class="classname">ValueError</a></span> si
        <code class="parameter">size</code> es inferior a 1 o superior a
        <strong><code><a href="reserved.constants.php#constant.php-int-max">PHP_INT_MAX</a></code></strong>. Anteriormente, se emitía un
        error de nivel <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> y se devolvía <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
</div>


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