public function seek($offset, $whence = SEEK_SET)
    {
        $pos = $offset;
        switch ($whence) {
            case SEEK_CUR:
                $pos = $this->position + $offset;
                break;
            case SEEK_END:
                $pos = $this->limit + $offset;
                break;
            default:
                break;
        }
        $this->doSeek($pos);
    }
public function seek($offset, $whence = SEEK_SET)
    {
        $pos = $offset;
        switch ($whence) {
            case SEEK_CUR:
                $pos = $this->position + $offset;
                break;
            case SEEK_END:
                $pos = $this->limit + $offset;
                break;
            default:
                break;
        }
        $this->doSeek($pos);
    }
public function seek ( $ offset , $ whence = SEEK_SET ) { $ pos = $ offset ; switch ( $ whence ) { case SEEK_CUR : $ pos = $ this -> position + $ offset ; break ; case SEEK_END : $ pos = $ this -> limit + $ offset ; break ; default : break ; } $ this -> doSeek ( $ pos ) ; }
Seeks to the passed position within the confines of the limited stream's
bounds.

For SeekingLimitStream, no actual seek is performed on the underlying
wrapped stream.  Instead, an internal pointer is set, and the stream is
'seeked' on read operations

@param int $offset
@param int $whence
Seeks to the passed position within the confines of the limited stream s bounds .