Add ByteBuffer support to xxhash.
Add missing check.