<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.swoole.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'class.swoole-buffer.php',
    1 => 'Swoole\\Buffer',
    2 => 'The Swoole\\Buffer class',
  ),
  'up' => 
  array (
    0 => 'book.swoole.php',
    1 => 'Swoole',
  ),
  'prev' => 
  array (
    0 => 'swoole-atomic.sub.php',
    1 => 'Swoole\\Atomic::sub',
  ),
  'next' => 
  array (
    0 => 'swoole-buffer.append.php',
    1 => 'Swoole\\Buffer::append',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/swoole/swoole.buffer.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.swoole-buffer.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="class.swoole-buffer" class="reference">

 <h1 class="title">The Swoole\Buffer class</h1>
 

 <div class="partintro"><p class="verinfo">(PECL swoole &gt;= 1.9.0)</p>


  <div class="section" id="swoole-buffer.intro">
   <h2 class="title">はじめに</h2>
   <p class="para">

   </p>
  </div>


  <div class="section" id="swoole-buffer.synopsis">
   <h2 class="title">クラス概要</h2>


   <div class="classsynopsis">
    <span class="ooclass"><strong class="classname"></strong></span>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">Swoole\Buffer</strong>
     </span>
     {</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* メソッド */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="swoole-buffer.append.php" class="methodname">append</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$data</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-buffer.clear.php" class="methodname">clear</a></span>(): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-buffer.destruct.php" class="methodname">__destruct</a></span>(): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-buffer.expand.php" class="methodname">expand</a></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>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-buffer.read.php" class="methodname">read</a></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$offset</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$length</code></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-buffer.recycle.php" class="methodname">recycle</a></span>(): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-buffer.substr.php" class="methodname">substr</a></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$offset</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$length</code><span class="initializer"> = ?</span></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$remove</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-buffer.tostring.php" class="methodname">__toString</a></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="swoole-buffer.write.php" class="methodname">write</a></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$offset</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$data</code></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

   }</div>


  </div>

 </div>

 






































































<h2>目次</h2><ul class="chunklist chunklist_reference"><li><a href="swoole-buffer.append.php">Swoole\Buffer::append</a> — Append the string or binary data at the end of the memory buffer and return the new size of memory allocated.</li><li><a href="swoole-buffer.clear.php">Swoole\Buffer::clear</a> — Reset the memory buffer.</li><li><a href="swoole-buffer.construct.php">Swoole\Buffer::__construct</a> — Fixed size memory blocks allocation.</li><li><a href="swoole-buffer.destruct.php">Swoole\Buffer::__destruct</a> — Destruct the Swoole memory buffer.</li><li><a href="swoole-buffer.expand.php">Swoole\Buffer::expand</a> — Expand the size of memory buffer.</li><li><a href="swoole-buffer.read.php">Swoole\Buffer::read</a> — Read data from the memory buffer based on offset and length.</li><li><a href="swoole-buffer.recycle.php">Swoole\Buffer::recycle</a> — Release the memory to OS which is not used by the memory buffer.</li><li><a href="swoole-buffer.substr.php">Swoole\Buffer::substr</a> — Read data from the memory buffer based on offset and length. Or remove data from the memory buffer.</li><li><a href="swoole-buffer.tostring.php">Swoole\Buffer::__toString</a> — Get the string value of the memory buffer.</li><li><a href="swoole-buffer.write.php">Swoole\Buffer::write</a> — Write data to the memory buffer. The memory allocated for the buffer will not be changed.</li></ul>
</div>
<?php manual_footer($setup); ?>