MCPcopy Index your code
hub / github.com/antlr/codebuff / hash

Method hash

output/java_guava/1.4.17/ByteSource.java:343–347  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

copyToMethod · 0.95
asOutputStreamMethod · 0.95
hashMethod · 0.95
newHasherMethod · 0.65

Tested by

no test coverage detected