JBuffer/stream write
From Joomla! Documentation
< API16:JBufferRevision as of 17:55, 22 March 2010 by Doxiki (talk | contribs) (New page:
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JBuffer/stream_writ...)
Revision as of 17:55, 22 March 2010 by Doxiki (talk | contribs) (New page:
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JBuffer/stream_writ...)
The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Template:Description:JBuffer/stream write
Syntax[edit]
stream_write($data)
Parameter Name | Default Value | Description |
---|---|---|
$data |
Defined in[edit]
libraries/joomla/utilities/buffer.php
Importing[edit]
jimport( 'joomla.utilities.buffer' );
Source Body[edit]
function stream_write($data)
{
$left = substr($this->_buffers[$this->name], 0, $this->position);
$right = substr($this->_buffers[$this->name], $this->position + strlen($data));
$this->_buffers[$this->name] = $left . $data . $right;
$this->position += strlen($data);
return strlen($data);
}
[Edit See Also] Template:SeeAlso:JBuffer/stream write
Examples[edit]
<CodeExamplesForm />