[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/joomla/filesystem/src/ -> Buffer.php (summary)

Part of the Joomla Framework Filesystem Package

Copyright: Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE
File Size: 187 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Buffer:: (6 methods):
  stream_open()
  stream_read()
  stream_write()
  stream_tell()
  stream_eof()
  stream_seek()


Class: Buffer  - X-Ref

Generic Buffer stream handler

This class provides a generic buffer stream.  It can be used to store/retrieve/manipulate
string buffers with the standard PHP filesystem I/O methods.

stream_open($path, $mode, $options, &$openedPath)   X-Ref
Function to open file or url

param: string   $path        The URL that was passed
param: string   $mode        Mode used to open the file @see fopen
param: integer  $options     Flags used by the API, may be STREAM_USE_PATH and STREAM_REPORT_ERRORS
param: string   $openedPath  Full path of the resource. Used with STREAN_USE_PATH option
return: boolean

stream_read($count)   X-Ref
Read stream

param: integer  $count  How many bytes of data from the current position should be returned.
return: mixed    The data from the stream up to the specified number of bytes (all data if

stream_write($data)   X-Ref
Write stream

param: string  $data  The data to write to the stream.
return: integer

stream_tell()   X-Ref
Function to get the current position of the stream

return: integer

stream_eof()   X-Ref
Function to test for end of file pointer

return: boolean  True if the pointer is at the end of the stream

stream_seek($offset, $whence)   X-Ref
The read write position updates in response to $offset and $whence

param: integer  $offset  The offset in bytes
param: integer  $whence  Position the offset is added to
return: boolean  True if updated



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer