freakyzoidberg commented on code in PR #675:
URL: https://github.com/apache/datasketches-java/pull/675#discussion_r2249264321
##########
src/main/java/org/apache/datasketches/hash/MurmurHash3.java:
##########
@@ -306,42 +308,34 @@ public static long[] hash(final byte[] key, final int
offsetBytes, final int len
//--Hash of ByteBuffer---------------------------------------------------
/**
- * Hash the remaining bytes of the given ByteBuffer starting at position().
+ * Hash the remaining bytes of the given ByteBuffer starting at position()
ending at limit (exclusive).
*
- * @param buf The input ByteBuffer. It must be non-null and non-empty.
+ * @param buf The input ByteBuffer. It must be non-null and non-empty and
using Little Endian.
Review Comment:
should we validate the endianess of the buffer here ?
```
if (buf.order() != ByteOrder.LITTLE_ENDIAN) {
throw new SketchesArgumentException("ByteBuffer must use LITTLE_ENDIAN
byte order");
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]