Skip to content

Commit

Permalink
Make Murmur3Hasher#update public (elastic#117961) (elastic#118002)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnhatn authored Dec 4, 2024
1 parent 70da167 commit edf4419
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ public void update(byte[] inputBytes) {
update(inputBytes, 0, inputBytes.length);
}

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

0 comments on commit edf4419

Please sign in to comment.