Hashes the contents of this byte source using the given hash function. @throws IOException if an I/O error occurs in the process of reading from this source
(HashFunction hashFunction)
| 341 | |
| 342 | |
| 343 | public HashCode hash(HashFunction hashFunction) throws IOException { |
| 344 | Hasher hasher = hashFunction.newHasher(); |
| 345 | copyTo(Funnels.asOutputStream(hasher)); |
| 346 | return hasher.hash(); |
| 347 | } |
| 348 | |
| 349 | /** |
| 350 | * Checks that the contents of this byte source are equal to the contents of the given byte |
nothing calls this directly
no test coverage detected