<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.eventbuffer.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'eventbuffer.pullup.php',
    1 => 'EventBuffer::pullup',
    2 => 'Linearizes data within buffer
  and returns it\'s contents as a string',
  ),
  'up' => 
  array (
    0 => 'class.eventbuffer.php',
    1 => 'EventBuffer',
  ),
  'prev' => 
  array (
    0 => 'eventbuffer.prependbuffer.php',
    1 => 'EventBuffer::prependBuffer',
  ),
  'next' => 
  array (
    0 => 'eventbuffer.read.php',
    1 => 'EventBuffer::read',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/event/eventbuffer/pullup.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="eventbuffer.pullup" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">EventBuffer::pullup</h1>
  <p class="verinfo">(PECL event &gt;= 1.2.6-beta)</p><p class="refpurpose"><span class="refname">EventBuffer::pullup</span> &mdash; <span class="dc-title">Linearizes data within buffer
  and returns it&#039;s contents as a string</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-eventbuffer.pullup-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="methodname"><strong>EventBuffer::pullup</strong></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.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   &quot;Linearizes&quot; the first
   <code class="parameter">size</code>
   bytes of the buffer, copying or moving them as needed to ensure that they
   are all contiguous and occupying the same chunk of memory. If size is
   negative, the function linearizes the entire buffer.
  </p>
  <div class="warning"><strong class="warning">Увага</strong>
   <p class="para">
    Calling
    <span class="methodname"><strong>EventBuffer::pullup()</strong></span>
    with a large size can be quite slow, since it potentially needs to copy
    the entire buffer&#039;s contents.
   </p>
  </div>
 </div>

 <div class="refsect1 parameters" id="refsect1-eventbuffer.pullup-parameters">
  <h3 class="title">Параметри</h3>
  <dl>
   
    <dt>
     <code class="parameter">size</code>
    </dt>
    <dd>
     <p class="para">
      The number of bytes required to be contiguous within the buffer.
     </p>
    </dd>
   
  </dl>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-eventbuffer.pullup-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   If
   <code class="parameter">size</code>
   is greater than the number of bytes in the buffer, the function returns
   <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>. Otherwise,
   <span class="methodname"><strong>EventBuffer::pullup()</strong></span>
   returns string.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-eventbuffer.pullup-seealso">
  <h3 class="title">Прогляньте також</h3>
  <ul class="simplelist">
   <li>
    <span class="methodname"><a href="eventbuffer.copyout.php" class="methodname" rel="rdfs-seeAlso">EventBuffer::copyout()</a> - Copies out specified number of bytes from the front of the buffer</span>
   </li>
   <li>
    <span class="methodname"><a href="eventbuffer.drain.php" class="methodname" rel="rdfs-seeAlso">EventBuffer::drain()</a> - Removes specified number of bytes from the front of the buffer
  without copying it anywhere</span>
   </li>
   <li>
    <span class="methodname"><a href="eventbuffer.read.php" class="methodname" rel="rdfs-seeAlso">EventBuffer::read()</a> - Read data from an evbuffer and drain the bytes read</span>
   </li>
   <li>
    <span class="methodname"><a href="eventbuffer.readline.php" class="methodname" rel="rdfs-seeAlso">EventBuffer::readLine()</a> - Extracts a line from the front of the buffer</span>
   </li>
   <li>
    <span class="methodname"><a href="eventbuffer.appendfrom.php" class="methodname" rel="rdfs-seeAlso">EventBuffer::appendFrom()</a> - Moves the specified number of bytes from a source buffer to the
  end of the current buffer</span>
   </li>
  </ul>
 </div>

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