BufferStreamHandler
class BufferStreamHandler
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.
Properties
integer | $position | Stream position | |
string | $name | Buffer name | |
array | $buffers | Buffer hash |
Methods
static
void
stream_register()
Function to register the stream wrapper
boolean
stream_open(
string $path,
string $mode,
integer $options,
string $opened_path)
Function to open file or url
mixed
stream_read(
integer $count)
Read stream
integer
stream_write(
string $data)
Write stream
integer
stream_tell()
Function to get the current position of the stream
boolean
stream_eof()
Function to test for end of file pointer
boolean
stream_seek(
integer $offset,
integer $whence)
The read write position updates in response to $offset and $whence