Expand description
Byte search and field-value validation, eight bytes per step.
The fast paths read the input as little-endian u64 words and use the
classic “has zero byte” bit trick (SWAR: SIMD within a register), with no
unsafe. Each one agrees with the bytewise definition for every byte at
every position; the tests and property tests check exactly that.
Functions§
- check_
field_ value - Validates a field value per RFC 9110 section 5.5: every byte is
field-vchar, SP, HTAB, orobs-text. - find_
byte - The index of the first
needleinhay. - find_
either - The index of the first byte in
haythat equalsaorb. - first_
not_ in - The index of the first byte of
soutsideclass.