function _stream_seek($offset, $whence)
    {
        switch ($whence) {
            case SEEK_SET:
                if ($offset >= $this->size || $offset < 0) {
                    return false;
                }
                break;
            case SEEK_CUR:
                $offset+= $this->pos;
                break;
            case SEEK_END:
                $offset+= $this->size;
        }

        $this->pos = $offset;
        $this->eof = false;
        return true;
    }
function _stream_seek($offset, $whence)
    {
        switch ($whence) {
            case SEEK_SET:
                if ($offset >= $this->size || $offset < 0) {
                    return false;
                }
                break;
            case SEEK_CUR:
                $offset+= $this->pos;
                break;
            case SEEK_END:
                $offset+= $this->size;
        }

        $this->pos = $offset;
        $this->eof = false;
        return true;
    }
function _stream_seek ( $ offset , $ whence ) { switch ( $ whence ) { case SEEK_SET : if ( $ offset >= $ this -> size || $ offset < 0 ) { return false ; } break ; case SEEK_CUR : $ offset += $ this -> pos ; break ; case SEEK_END : $ offset += $ this -> size ; } $ this -> pos = $ offset ; $ this -> eof = false ; return true ; }
Seeks to specific location in a stream

@param int $offset
@param int $whence
@return bool
@access public
Seeks to specific location in a stream