Skip to content

Commit cb35dc9

Browse files
authored
Make Murmur3Hasher#update public (#117961)
Closes #117883
1 parent bbf986d commit cb35dc9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

server/src/main/java/org/elasticsearch/common/hash/Murmur3Hasher.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ public void update(byte[] inputBytes) {
4040
update(inputBytes, 0, inputBytes.length);
4141
}
4242

43-
private void update(byte[] inputBytes, int offset, int length) {
43+
/**
44+
* Similar to {@link #update(byte[])}, but processes a specific portion of the input bytes
45+
* starting from the given {@code offset} for the specified {@code length}.
46+
* @see #update(byte[])
47+
*/
48+
public void update(byte[] inputBytes, int offset, int length) {
4449
if (remainderLength + length >= remainder.length) {
4550
if (remainderLength > 0) {
4651
// fill rest of remainder from inputBytes and hash remainder

0 commit comments

Comments
 (0)