NoSeekStream
in package
implements
StreamInterface
Uses
AStreamDecoratorTrait
Interfaces, Classes, Traits and Enums
- StreamInterface
- Describes a data stream.
Table of Contents
- __call() : mixed
- __construct() : mixed
- __get() : mixed
- __toString() : mixed
- close() : mixed
- detach() : mixed
- eof() : bool
- getContents() : string
- getMetadata() : mixed
- getSize() : int|null
- isReadable() : bool
- isSeekable() : bool
- Returns whether or not the stream is seekable.
- isWritable() : bool
- read() : string
- rewind() : mixed
- seek() : mixed
- Seek to a position in the stream.
- tell() : int
- write() : int
- createStream() : mixed
Methods
__call()
public
__call(mixed $method, array<string|int, mixed> $args) : mixed
Parameters
- $method : mixed
- $args : array<string|int, mixed>
Return values
mixed —__construct()
public
__construct(StreamInterface $stream) : mixed
Parameters
- $stream : StreamInterface
Return values
mixed —__get()
public
__get(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —__toString()
public
__toString() : mixed
Return values
mixed —close()
public
close() : mixed
Return values
mixed —detach()
public
detach() : mixed
Return values
mixed —eof()
public
eof() : bool
Return values
bool —getContents()
public
getContents() : string
Return values
string —getMetadata()
public
getMetadata([mixed $key = null ]) : mixed
Parameters
- $key : mixed = null
Return values
mixed —getSize()
public
getSize() : int|null
Return values
int|null —isReadable()
public
isReadable() : bool
Return values
bool —isSeekable()
Returns whether or not the stream is seekable.
public
isSeekable() : bool
Return values
bool —isWritable()
public
isWritable() : bool
Return values
bool —read()
public
read(int $length) : string
Parameters
- $length : int
Return values
string —rewind()
public
rewind() : mixed
Return values
mixed —seek()
Seek to a position in the stream.
public
seek(int $offset[, int $whence = SEEK_SET ]) : mixed
Parameters
- $offset : int
-
Stream offset
- $whence : int = SEEK_SET
-
Specifies how the cursor position will be calculated based on the seek offset. Valid values are identical to the built-in PHP $whence values for
fseek()
. SEEK_SET: Set position equal to offset bytes SEEK_CUR: Set position to current location plus offset SEEK_END: Set position to end-of-stream plus offset.
Return values
mixed —tell()
public
tell() : int
Return values
int —write()
public
write(string $string) : int
Parameters
- $string : string
Return values
int —createStream()
protected
createStream() : mixed