src/danog/MadelineProto/Stream/Common/HashedBufferedStream.php
public function setExtra($hash)
    {
        $rev = strpos($hash, '_rev');
        $this->rev = false;
        if ($rev !== false) {
            $hash = substr($hash, 0, $rev);
            $this->rev = true;
        }
        $this->hash_name = $hash;
    }
public function setExtra($hash)
    {
        $rev = strpos($hash, '_rev');
        $this->rev = false;
        if ($rev !== false) {
            $hash = substr($hash, 0, $rev);
            $this->rev = true;
        }
        $this->hash_name = $hash;
    }
public function setExtra ( $ hash ) { $ rev = strpos ( $ hash , '_rev' ) ; $ this -> rev = false ; if ( $ rev !== false ) { $ hash = substr ( $ hash , 0 , $ rev ) ; $ this -> rev = true ; } $ this -> hash_name = $ hash ; }
Set the hash algorithm.

@param string $hash Algorithm name

@return void
Set the hash algorithm .