Actions

API15

JBuffer/stream write

From Joomla! Documentation

< API15:JBuffer
Revision as of 16:25, 22 March 2010 by Doxiki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

[Edit Descripton]

Description:JBuffer/stream write

Contents

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

[Edit See Also] SeeAlso:JBuffer/stream write

Examples

<CodeExamplesForm />