hash

fun hash(start: Int): Int

Computes the hash of the BytesRef at the given start. This is equivalent of doing:

BytesRef bytes = new BytesRef();
fillTerm(bytes, start);
BytesRefHash.doHash(bytes.bytes, bytes.pos, bytes.len);
*

It just saves the work of filling the BytesRef.