MCPcopy Create free account
hub / github.com/e2wugui/zeze / hash64

Method hash64

ZezeJava/ZezeJava/src/main/java/Zeze/Util/BinaryPool.java:91–95  ·  view source on GitHub ↗
(long hash64, byte @NotNull [] bytes, int beginIndex, int endIndex)

Source from the content-addressed store, hash-verified

89 }
90
91 private static long hash64(long hash64, byte @NotNull [] bytes, int beginIndex, int endIndex) {
92 for (int i = beginIndex; i < endIndex; i++)
93 hash64 = (hash64 + bytes[i]) * 3074457345618258799L;
94 return hash64;
95 }
96
97 private static long hash64(long hash64, @NotNull java.nio.ByteBuffer bb, int beginIndex, int endIndex) {
98 for (int i = beginIndex; i < endIndex; i++)

Callers 1

internMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected