<?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 => 'ja',
  ),
  'this' => 
  array (
    0 => 'eventbuffer.appendfrom.php',
    1 => 'EventBuffer::appendFrom',
    2 => 'Moves the specified number of bytes from a source buffer to the
  end of the current buffer',
  ),
  'up' => 
  array (
    0 => 'class.eventbuffer.php',
    1 => 'EventBuffer',
  ),
  'prev' => 
  array (
    0 => 'eventbuffer.addbuffer.php',
    1 => 'EventBuffer::addBuffer',
  ),
  'next' => 
  array (
    0 => 'eventbuffer.construct.php',
    1 => 'EventBuffer::__construct',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/event/eventbuffer/appendfrom.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="eventbuffer.appendfrom" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">EventBuffer::appendFrom</h1>
  <p class="verinfo">(PECL event &gt;= 1.6.0)</p><p class="refpurpose"><span class="refname">EventBuffer::appendFrom</span> &mdash; <span class="dc-title">Moves the specified number of bytes from a source buffer to the
  end of the current buffer</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-eventbuffer.appendfrom-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="methodname"><strong>EventBuffer::appendFrom</strong></span>(<span class="methodparam">
    
    <span class="type"><a href="class.eventbuffer.php" class="type EventBuffer">EventBuffer</a></span> <code class="parameter">$buf</code>
   </span>, <span class="methodparam">
    
    <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$len</code>
   </span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   Moves the specified number of bytes from a source buffer to the end of the
   current buffer. If there are fewer number of bytes, it moves all the bytes
   available from the source buffer.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-eventbuffer.appendfrom-parameters">
  <h3 class="title">パラメータ</h3>
  <dl>
   
    <dt>
     <code class="parameter">buf</code>
    </dt>
    <dd>
     <p class="para">
      Source buffer.
     </p>
    </dd>
   
   
    <dt>
     <code class="parameter">len</code>
    </dt>
    <dd>
     <p class="para"/>
    </dd>
   
  </dl>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-eventbuffer.appendfrom-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   Returns the number of bytes read.
  </p>
 </div>

 <div class="refsect1 changelog" id="refsect1-eventbuffer.appendfrom-changelog">
  <h3 class="title">変更履歴</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>バージョン</th>
      <th>説明</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>PECL event 1.6.0</td>
      <td>
       Renamed <span class="methodname"><strong>EventBuffer::appendFrom()</strong></span>(the old
         method name) to <span class="methodname"><strong>EventBuffer::appendFrom()</strong></span>.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>

 <div class="refsect1 seealso" id="refsect1-eventbuffer.appendfrom-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.pullup.php" class="methodname" rel="rdfs-seeAlso">EventBuffer::pullup()</a> - Linearizes data within buffer
  and returns it's contents as a string</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.read.php" class="methodname" rel="rdfs-seeAlso">EventBuffer::read()</a> - Read data from an evbuffer and drain the bytes read</span>
   </li>
  </ul>
 </div>

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