Class NoSeekStream
Stream decorator that prevents a stream from being seeked
-
GuzzleHttp\Psr7\NoSeekStream
implements
Psr\Http\Message\StreamInterface
uses
GuzzleHttp\Psr7\StreamDecoratorTrait
Methods summary
public
|
#
seek( integer $offset, integer $whence = SEEK_SET )
Seek to a position in the stream.
Seek to a position in the stream.
Parameters
- $offset
- Stream offset
- $whence
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.
Throws
RuntimeException on failure.
Link
Implementation of
|
public
boolean
|
#
isSeekable( )
Returns whether or not the stream is seekable.
Returns whether or not the stream is seekable.
Returns
boolean
Implementation of
|
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
__call(),
__construct(),
__get(),
__toString(),
close(),
createStream(),
detach(),
eof(),
getContents(),
getMetadata(),
getSize(),
isReadable(),
isWritable(),
read(),
rewind(),
tell(),
write()
|