[−][src]Function yaca::memcmp
pub fn memcmp(first: &[u8], second: &[u8], length: usize) -> Result<bool>
Safely compares requested number of bytes of two buffers
- Returns
true
if the firstlength
bytes of compared buffers are equal,false
otherwise. - If
length
is longer than min(first.len(), second.len()), at most the common part will be checked, std::usize::MAX can safely be passed here.