API16

API16:JBuffer/stream write

From Joomla! Documentation

Revision as of 02:51, 13 May 2013 by JoomlaWikiBot (talk | contribs) (removing red link to edit, no existant pages)

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

stream_write($data)
Parameter Name Default Value Description
$data

Defined in

libraries/joomla/utilities/buffer.php

Importing

jimport( 'joomla.utilities.buffer' );

Source Body

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);
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />