Class NoSeekStream
- GuzzleHttp\Psr7\NoSeekStream implements Psr\Http\Message\StreamInterface uses GuzzleHttp\Psr7\StreamDecoratorTrait
- Namespace: GuzzleHttp\Psr7
- Located at NoSeekStream.php
Stream decorator that prevents a stream from being seeked.
Methods Summary
-
seek ( int $offset, int $whence = SEEK_SET )
Seek to a position in the stream.
-
isSeekable ( )
Returns whether or not the stream is seekable.
Methods inherited from Psr\Http\Message\StreamInterface
__toString()
,
close()
,
detach()
,
eof()
,
getContents()
,
getMetadata()
,
getSize()
,
isReadable()
,
isWritable()
,
read()
,
rewind()
,
tell()
,
write()
Methods used from GuzzleHttp\Psr7\StreamDecoratorTrait
Methods Details
seek ( integer $offset, integer $whence = SEEK_SET )
Seek to a position in the stream.
Parameters
integer | $offset | Stream offset |
integer | $whence = 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 |
Exceptions
RuntimeException on failure. |
Link
Implementation of
boolean isSeekable ( )
Returns whether or not the stream is seekable.
Returns
boolean |