public function getWriteHash(): string
    {
        $hash = hash_final($this->write_hash, true);
        if ($this->rev) {
            $hash = strrev($hash);
        }
        $this->write_hash = null;
        $this->write_check_after = 0;
        $this->write_check_pos = 0;

        return $hash;
    }
public function getWriteHash(): string
    {
        $hash = hash_final($this->write_hash, true);
        if ($this->rev) {
            $hash = strrev($hash);
        }
        $this->write_hash = null;
        $this->write_check_after = 0;
        $this->write_check_pos = 0;

        return $hash;
    }
public function getWriteHash ( ) : string { $ hash = hash_final ( $ this -> write_hash , true ) ; if ( $ this -> rev ) { $ hash = strrev ( $ hash ) ; } $ this -> write_hash = null ; $ this -> write_check_after = 0 ; $ this -> write_check_pos = 0 ; return $ hash ; }
Stop write hashing and get final hash.

@return string
Stop write hashing and get final hash .