<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Fixed size memory blocks allocation.</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="swoole-buffer.clear.html">Swoole\Buffer::clear</a></div> <div class="next" style="text-align: right; float: right;"><a href="swoole-buffer.destruct.html">Swoole\Buffer::__destruct</a></div> <div class="up"><a href="class.swoole-buffer.html">Swoole\Buffer</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="swoole-buffer.construct" class="refentry"> <div class="refnamediv"> <h1 class="refname">Swoole\Buffer::__construct</h1> <p class="verinfo">(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)</p><p class="refpurpose"><span class="refname">Swoole\Buffer::__construct</span> — <span class="dc-title">Fixed size memory blocks allocation.</span></p> </div> <div class="refsect1 description" id="refsect1-swoole-buffer.construct-description"> <h3 class="title">Description</h3> <div class="constructorsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><strong>Swoole\Buffer::__construct</strong></span> ([ <span class="methodparam"><span class="type">integer</span> <code class="parameter">$size</code></span> ] )</div> <p class="para rdfs-comment"> </p> </div> <div class="refsect1 parameters" id="refsect1-swoole-buffer.construct-parameters"> <h3 class="title">Parameters</h3> <dl> <dt> <code class="parameter">size</code></dt> <dd> <p class="para"> The size of the memory to allocate. </p> </dd> </dl> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="swoole-buffer.clear.html">Swoole\Buffer::clear</a></div> <div class="next" style="text-align: right; float: right;"><a href="swoole-buffer.destruct.html">Swoole\Buffer::__destruct</a></div> <div class="up"><a href="class.swoole-buffer.html">Swoole\Buffer</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>