Skip to main content

bytes_eq

Function bytes_eq 

Source
pub fn bytes_eq(a: &[u8], b: &[u8]) -> bool
Expand description

Byte-slice equality for short strings, done with word loads instead of a memcmp call (header names and values are mostly under 32 bytes).