public function FnStream::seek in Lockr 7.3
Seek to a position in the stream.
@link http://www.php.net/manual/en/function.fseek.php
Parameters
int $offset Stream offset:
int $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.
Overrides StreamInterface::seek
File
- vendor/
guzzlehttp/ psr7/ src/ FnStream.php, line 124
Class
- FnStream
- Compose stream implementations based on a hash of functions.
Namespace
GuzzleHttp\Psr7Code
public function seek($offset, $whence = SEEK_SET) {
call_user_func($this->_fn_seek, $offset, $whence);
}