Definition at line 5 of file StreamHasher.php.
◆ __construct()
League\Flysystem\Util\StreamHasher::__construct |
( |
|
$algo | ) |
|
◆ hash()
League\Flysystem\Util\StreamHasher::hash |
( |
|
$resource | ) |
|
- Parameters
-
- Returns
- string
Definition at line 27 of file StreamHasher.php.
28 {
29 rewind($resource);
30 $context = hash_init($this->algo);
31 hash_update_stream($context, $resource);
32 fclose($resource);
33
34 return hash_final($context);
35 }
◆ $algo
League\Flysystem\Util\StreamHasher::$algo |
|
private |
The documentation for this class was generated from the following file: