API15

JBuffer/stream write

< API15:JBuffer

The "API15" 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.

<! 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 transcluded page call, red link never existed >

Examples

Code Examples


Advertisement