def xxh32
import bend-kit-hash@0.3.0.2/hash.bend as Hashimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
501def xxh32(b: Bytes.Bytes, +seed: U32) -> Bytes.Bytes & U32:
502 Bytes.Bytes{+len, buf} = b
503 x32.mid(len, x32.start(U32.is_le(16, len), len, seed, buf))