MCPcopy Create free account
hub / github.com/antlr/codebuff / fromBytesNoCopy

Method fromBytesNoCopy

output/java_guava/1.4.19/HashCode.java:272–274  ·  view source on GitHub ↗

Creates a HashCode from a byte array. The array is not copied defensively, so it must be handed-off so as to preserve the immutability contract of HashCode.

(byte[] bytes)

Source from the content-addressed store, hash-verified

270
271
272 static HashCode fromBytesNoCopy(byte[] bytes) {
273 return new BytesHashCode(bytes);
274 }
275
276 private static final class BytesHashCode extends HashCode implements Serializable {
277 final byte[] bytes;

Callers 8

hashMethod · 0.95
combineOrderedMethod · 0.95
combineUnorderedMethod · 0.95
makeHashMethod · 0.95
fromBytesMethod · 0.95
fromStringMethod · 0.95
makeHashMethod · 0.95
hashMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected