ParagonIE\Halite\Stream\MutableFile::reset PHP Method

reset() public method

Set the current cursor position to the desired location
public reset ( integer $i ) : boolean
$i integer
return boolean
    public function reset(int $i = 0) : bool
    {
        $this->pos = $i;
        if (\fseek($this->fp, $i, SEEK_SET) === 0) {
            return true;
        }
        throw new CryptoException\CannotPerformOperation('fseek() failed');
    }