public function stream_seek($aOffset, $aWhence): bool
    {
        switch ($aWhence) {
            case SEEK_SET:
                $this->position = $aOffset;
                $this->truncate_after_seek();

                return true;
                break;

            case SEEK_CUR:
                $this->position += $aOffset;
                $this->truncate_after_seek();

                return true;
                break;

            case SEEK_END:
                $this->position = strlen($this->string) + $aOffset;
                $this->truncate_after_seek();

                return true;
                break;

            default:
                return false;
        }
    }
public function stream_seek($aOffset, $aWhence): bool
    {
        switch ($aWhence) {
            case SEEK_SET:
                $this->position = $aOffset;
                $this->truncate_after_seek();

                return true;
                break;

            case SEEK_CUR:
                $this->position += $aOffset;
                $this->truncate_after_seek();

                return true;
                break;

            case SEEK_END:
                $this->position = strlen($this->string) + $aOffset;
                $this->truncate_after_seek();

                return true;
                break;

            default:
                return false;
        }
    }
public function stream_seek ( $ aOffset , $ aWhence ) : bool { switch ( $ aWhence ) { case SEEK_SET : $ this -> position = $ aOffset ; $ this -> truncate_after_seek ( ) ; return true ; break ; case SEEK_CUR : $ this -> position += $ aOffset ; $ this -> truncate_after_seek ( ) ; return true ; break ; case SEEK_END : $ this -> position = strlen ( $ this -> string ) + $ aOffset ; $ this -> truncate_after_seek ( ) ; return true ; break ; default : return false ; } }
Seek to new position.

@param int $aOffset
@param int $aWhence

@return bool
Seek to new position .