JBuffer/stream read: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 34: | Line 34: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=stream_read | category=stream_read | ||
category=JBuffer | category=JBuffer | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 00:20, 25 March 2017
<! removed transcluded page call, red link never existed >
Syntax
stream_read($count)
| Parameter Name | Default Value | Description |
|---|---|---|
| $count |
Defined in
libraries/joomla/utilities/buffer.php
Importing
jimport( 'joomla.utilities.buffer' );
Source Body
function stream_read($count)
{
$ret = substr($this->_buffers[$this->name], $this->position, $count);
$this->position += strlen($ret);
return $ret;
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples