capsules_extra::net::util

Function matches_prefix

Source
pub fn matches_prefix(buf1: &[u8], buf2: &[u8], prefix_len: u8) -> bool
Expand description

Verifies that the prefixes of the two buffers match, where the length of the prefix is given in bits