<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc'; $TOC = array(); $TOC_DEPRECATED = array(); $PARENTS = array(); include_once dirname(__FILE__) ."/toc/class.swoole-mmap.inc"; $setup = array ( 'home' => array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'swoole-mmap.open.php', 1 => 'Swoole\\Mmap::open', 2 => 'Map a file into memory and return the stream resource which can be used by PHP stream operations.', ), 'up' => array ( 0 => 'class.swoole-mmap.php', 1 => 'Swoole\\Mmap', ), 'prev' => array ( 0 => 'class.swoole-mmap.php', 1 => 'Swoole\\Mmap', ), 'next' => array ( 0 => 'class.swoole-mysql.php', 1 => 'Swoole\\MySQL', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/swoole/swoole/mmap/open.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?> <div id="swoole-mmap.open" class="refentry"> <div class="refnamediv"> <h1 class="refname">Swoole\Mmap::open</h1> <p class="verinfo">(PECL swoole >= 1.9.0)</p><p class="refpurpose"><span class="refname">Swoole\Mmap::open</span> — <span class="dc-title">Map a file into memory and return the stream resource which can be used by PHP stream operations.</span></p> </div> <div class="refsect1 description" id="refsect1-swoole-mmap.open-description"> <h3 class="title">说明</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><strong>Swoole\Mmap::open</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$filename</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$size</code><span class="initializer"> = ?</span></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$offset</code><span class="initializer"> = ?</span></span>): <span class="type">ReturnType</span></div> <p class="para rdfs-comment"> </p> </div> <div class="refsect1 parameters" id="refsect1-swoole-mmap.open-parameters"> <h3 class="title">参数</h3> <dl> <dt><code class="parameter">filename</code></dt> <dd> <p class="para"> </p> </dd> <dt><code class="parameter">size</code></dt> <dd> <p class="para"> </p> </dd> <dt><code class="parameter">offset</code></dt> <dd> <p class="para"> </p> </dd> </dl> </div> <div class="refsect1 returnvalues" id="refsect1-swoole-mmap.open-returnvalues"> <h3 class="title">返回值</h3> <p class="para"> </p> </div> </div><?php manual_footer($setup); ?>