bytesEquals

Expert: compares the bytes against another BytesRef, returning true if the bytes are equal.